mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 00:53:57 +00:00
5951e31121
Why did the hash change as well? svn path=/nixpkgs/trunk/; revision=15029
25 lines
476 B
Nix
25 lines
476 B
Nix
{ fetchurl, stdenv }:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "unifdef-1.0";
|
|
|
|
src = fetchurl {
|
|
url = http://www.cs.cmu.edu/~ajw/public/dist/unifdef-1.0.tar.gz;
|
|
sha256 = "1bcxq7qgf6r98m6l277fx6s0gn9sr4vn7f3s0r5mwx79waqk0k6i";
|
|
};
|
|
|
|
buildPhase = ''
|
|
make unifdef
|
|
'';
|
|
|
|
installPhase = ''
|
|
ensureDir $out/bin
|
|
cp unifdef $out/bin
|
|
'';
|
|
|
|
meta = {
|
|
description = "useful for removing #ifdef'ed lines from a file while otherwise leaving the file alone";
|
|
|
|
};
|
|
}
|