Logo
Explore Help
Sign In
talexander/nixpkgs
1
0
Fork 0
You've already forked nixpkgs
Code Issues Pull Requests Releases Activity
nixpkgs/pkgs/build-support/fetchfile/default.nix

8 lines
166 B
Nix
Raw Normal View History

* Remove trivial builders. * Make builders unexecutable by removing the hash-bang line and execute permission. * Convert calls to `derivation' to `mkDerivation'. * Remove `system' and `stdenv' attributes from calls to `mkDerivation'. These transformations were all done automatically, so it is quite possible I broke stuff. * Put the `mkDerivation' function in stdenv/generic. svn path=/nixpkgs/trunk/; revision=874
2004-03-29 17:23:01 +00:00
{stdenv}: {pathname, md5}: stdenv.mkDerivation {
Fixed error in build-support/fetchfile Replaced undefined variable 'url' by the correct one 'pathname' svn path=/nixpkgs/trunk/; revision=28424
2011-08-09 12:28:49 +00:00
name = baseNameOf (toString pathname);
* Added the j2sdk of Sun for Linux. Downloading this thing is a big problem, so I decided to require to user to get the file and put it in some location in the file system. wget doesn't seem to accept the file scheme however, so I had to move the copying into the builder itself. The builder checks the md5 hash of the downloaded file. Maybe having a separate 'fetchfile' would be useful to make a file in the outside world pure. I tried to add this to build-support, but this obviously did not work. I still committed it. Just remove it if you think that it sucks. svn path=/nixpkgs/trunk/; revision=716
2004-01-24 23:46:00 +00:00
builder = ./builder.sh;
pathname = pathname;
md5 = md5;
id = md5;
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.1 Page: 2222ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API