mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 16:53:21 +00:00
2258b21e4b
Build-tested on x86_64 Linux and on Darwin.
18 lines
372 B
Nix
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;
|
|
};
|
|
}
|