mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 04:33:57 +00:00
de6977ffe3
Apparently, Darwin evaluation is somehow busted without this, although I can't verify it. Reported by @matthewbauer on IRC. I'll take the blame if this somehow makes life worse. /cc @vrthra as maintainer Signed-off-by: Austin Seipp <aseipp@pobox.com>
31 lines
674 B
Nix
31 lines
674 B
Nix
{ stdenv, fetchFromGitHub }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "unifdef-${version}";
|
|
version = "2.11";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "fanf2";
|
|
repo = "unifdef";
|
|
rev = "8697cc11a1bb67c1153ecc556b880d1fdc4b4e00";
|
|
sha256 = "0d842m4zqbl5h8qiga1bp3vdirs01wd878rz0dkf32illkimmg0y";
|
|
};
|
|
|
|
makeFlags = [
|
|
"prefix=$(out)"
|
|
"DESTDIR="
|
|
];
|
|
|
|
preBuild = ''
|
|
echo 'V="${name}"' > version.sh
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = "http://dotat.at/prog/unifdef/";
|
|
description = "Selectively remove C preprocessor conditionals";
|
|
license = licenses.bsd2;
|
|
platforms = platforms.unix;
|
|
maintainers = [ maintainers.vrthra ];
|
|
};
|
|
}
|