2021-02-19 19:06:45 +00:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-02-19 19:06:45 +00:00
|
|
|
pname = "unifdef";
|
|
|
|
version = "2.12";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-02-19 19:06:45 +00:00
|
|
|
url = "https://dotat.at/prog/unifdef/unifdef-${version}.tar.xz";
|
|
|
|
sha256 = "00647bp3m9n01ck6ilw6r24fk4mivmimamvm4hxp5p6wxh10zkj3";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-19 19:06:45 +00:00
|
|
|
makeFlags = [
|
|
|
|
"prefix=$(out)"
|
|
|
|
"DESTDIR="
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2021-02-19 19:06:45 +00:00
|
|
|
homepage = "https://dotat.at/prog/unifdef/";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Selectively remove C preprocessor conditionals";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
platforms = platforms.unix;
|
2024-07-27 06:49:29 +00:00
|
|
|
maintainers = with maintainers; [ orivej ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|