Revert "Merge pull request #16507 from vrthra/unifdef"
This reverts commitcab28503ad, reversing changes made to5313f1096a(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.
This commit is contained in:
@@ -1,23 +1,24 @@
|
|||||||
{ stdenv, fetchFromGitHub }:
|
{ fetchurl, stdenv }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "unifdef-${version}";
|
name = "unifdef-2.6";
|
||||||
version = "2.11";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchurl {
|
||||||
owner = "fanf2";
|
url = "https://github.com/fanf2/unifdef/archive/${name}.tar.gz";
|
||||||
repo = "unifdef";
|
sha256 = "1p5wr5ms9w8kijy9h7qs1mz36dlavdj6ngz2bks588w7a20kcqxj";
|
||||||
rev = "8697cc11a1bb67c1153ecc556b880d1fdc4b4e00";
|
|
||||||
sha256 = "0d842m4zqbl5h8qiga1bp3vdirs01wd878rz0dkf32illkimmg0y";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
makeFlags = [
|
postUnpack = ''
|
||||||
"prefix=$(out)"
|
substituteInPlace $sourceRoot/unifdef.c \
|
||||||
"DESTDIR="
|
--replace '#include "version.h"' ""
|
||||||
];
|
|
||||||
|
substituteInPlace $sourceRoot/Makefile \
|
||||||
|
--replace "unifdef.c: version.h" "unifdef.c:"
|
||||||
|
'';
|
||||||
|
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
echo 'V="${name}"' > version.sh
|
unset HOME
|
||||||
|
export DESTDIR=$out
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
|||||||
Reference in New Issue
Block a user