mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 15:56:50 +01:00
2258b21e4b
Build-tested on x86_64 Linux and on Darwin.
17 lines
372 B
Nix
17 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;
|
|
};
|
|
}
|