3
0
Fork 0
forked from mirrors/nixpkgs

Revert "Merge pull request #16507 from vrthra/unifdef"

This reverts commit cab28503ad, reversing
changes made to 5313f1096a (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:
Joachim Fasting 2016-06-28 18:48:25 +02:00
parent 5cec134c70
commit 96a3bbd86f
No known key found for this signature in database
GPG key ID: 4330820E1E04DCF4

View file

@ -1,23 +1,24 @@
{ stdenv, fetchFromGitHub }:
{ fetchurl, stdenv }:
stdenv.mkDerivation rec {
name = "unifdef-${version}";
version = "2.11";
name = "unifdef-2.6";
src = fetchFromGitHub {
owner = "fanf2";
repo = "unifdef";
rev = "8697cc11a1bb67c1153ecc556b880d1fdc4b4e00";
sha256 = "0d842m4zqbl5h8qiga1bp3vdirs01wd878rz0dkf32illkimmg0y";
src = fetchurl {
url = "https://github.com/fanf2/unifdef/archive/${name}.tar.gz";
sha256 = "1p5wr5ms9w8kijy9h7qs1mz36dlavdj6ngz2bks588w7a20kcqxj";
};
makeFlags = [
"prefix=$(out)"
"DESTDIR="
];
postUnpack = ''
substituteInPlace $sourceRoot/unifdef.c \
--replace '#include "version.h"' ""
substituteInPlace $sourceRoot/Makefile \
--replace "unifdef.c: version.h" "unifdef.c:"
'';
preBuild = ''
echo 'V="${name}"' > version.sh
unset HOME
export DESTDIR=$out
'';
meta = with stdenv.lib; {