96a3bbd86f
This reverts commit cab28503ad5e6fb516845890a06e4f8693d0ea16, reversing changes made to 5313f1096a3c634e116bf3f5a71772103b7c4178 (but retaining the meta updates). The update to 2.11 breaks the darwin toolchain, see discussion at https://github.com/NixOS/nixpkgs/pull/16507 Once the issues with 2.11 are worked out, this revert can be reverted.
32 lines
767 B
Nix
32 lines
767 B
Nix
{ fetchurl, stdenv }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "unifdef-2.6";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/fanf2/unifdef/archive/${name}.tar.gz";
|
|
sha256 = "1p5wr5ms9w8kijy9h7qs1mz36dlavdj6ngz2bks588w7a20kcqxj";
|
|
};
|
|
|
|
postUnpack = ''
|
|
substituteInPlace $sourceRoot/unifdef.c \
|
|
--replace '#include "version.h"' ""
|
|
|
|
substituteInPlace $sourceRoot/Makefile \
|
|
--replace "unifdef.c: version.h" "unifdef.c:"
|
|
'';
|
|
|
|
preBuild = ''
|
|
unset HOME
|
|
export DESTDIR=$out
|
|
'';
|
|
|
|
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 ];
|
|
};
|
|
}
|