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

10 lines
197 B
Nix
Raw Normal View History

* 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
{stdenv}: {pathname, md5}: derivation {
name = baseNameOf (toString url);
system = stdenv.system;
builder = ./builder.sh;
stdenv = stdenv;
pathname = pathname;
md5 = md5;
id = md5;
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.1 Page: 186ms Template: 2ms
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