1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/tools/misc/getopt/default.nix
Tuomas Tynkkynen 2258b21e4b treewide: Add lots of platforms to packages with no meta
Build-tested on x86_64 Linux and on Darwin.
2016-08-02 21:17:44 +03:00

18 lines
372 B
Nix

{stdenv, fetchurl}:
stdenv.mkDerivation {
name = "getopt-1.1.4";
builder = ./builder.sh;
src = fetchurl {
url = http://tarballs.nixos.org/getopt-1.1.4.tar.gz;
sha256 = "1arvjfzw6p310zbgv629w5hkyslrj44imf3r3s2r4ry2jfcks221";
};
preBuild = ''
export buildFlags=CC="$CC" # for darwin
'';
meta = {
platforms = stdenv.lib.platforms.unix;
};
}