2008-08-29 15:53:28 +02:00
|
|
|
{ fetchurl, stdenv }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "unifdef-1.0";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2009-04-14 15:03:43 +02:00
|
|
|
url = http://www.cs.cmu.edu/~ajw/public/dist/unifdef-1.0.tar.gz;
|
|
|
|
sha256 = "1bcxq7qgf6r98m6l277fx6s0gn9sr4vn7f3s0r5mwx79waqk0k6i";
|
2008-08-29 15:53:28 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
make unifdef
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/bin
|
2008-08-29 15:53:28 +02:00
|
|
|
cp unifdef $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "useful for removing #ifdef'ed lines from a file while otherwise leaving the file alone";
|
|
|
|
|
|
|
|
};
|
|
|
|
}
|