2016-06-26 02:34:57 +01:00
|
|
|
{ stdenv, fetchFromGitHub }:
|
2008-08-29 14:53:28 +01:00
|
|
|
|
2015-02-08 06:32:32 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2016-06-26 02:34:57 +01:00
|
|
|
name = "unifdef-${version}";
|
|
|
|
version = "2.11";
|
2008-08-29 14:53:28 +01:00
|
|
|
|
2016-06-26 02:34:57 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fanf2";
|
|
|
|
repo = "unifdef";
|
|
|
|
rev = "8697cc11a1bb67c1153ecc556b880d1fdc4b4e00";
|
|
|
|
sha256 = "0d842m4zqbl5h8qiga1bp3vdirs01wd878rz0dkf32illkimmg0y";
|
2008-08-29 14:53:28 +01:00
|
|
|
};
|
|
|
|
|
2016-06-26 02:34:57 +01:00
|
|
|
makeFlags = [
|
|
|
|
"prefix=$(out)"
|
|
|
|
"DESTDIR="
|
|
|
|
];
|
2008-08-29 14:53:28 +01:00
|
|
|
|
2015-02-08 06:32:32 +00:00
|
|
|
preBuild = ''
|
2016-06-26 02:34:57 +01:00
|
|
|
echo 'V="${name}"' > version.sh
|
2008-08-29 14:53:28 +01:00
|
|
|
'';
|
|
|
|
|
2016-06-26 02:34:57 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "http://dotat.at/prog/unifdef/";
|
2015-02-08 06:32:32 +00:00
|
|
|
description = "Selectively remove C preprocessor conditionals";
|
2016-06-26 02:34:57 +01:00
|
|
|
license = licenses.bsd2;
|
2016-06-28 05:38:25 +01:00
|
|
|
platforms = platforms.unix;
|
2016-06-26 02:34:57 +01:00
|
|
|
maintainers = [ maintainers.vrthra ];
|
2008-08-29 14:53:28 +01:00
|
|
|
};
|
|
|
|
}
|