Skip to content

Commit

Permalink
unifdef: 2.6 -> 2.11
Browse files Browse the repository at this point in the history
  • Loading branch information
vrthra committed Jun 26, 2016
1 parent 9ef6dce commit c6980b2
Showing 1 changed file with 18 additions and 15 deletions.
33 changes: 18 additions & 15 deletions pkgs/development/tools/misc/unifdef/default.nix
@@ -1,27 +1,30 @@
{ fetchurl, stdenv }:
{ stdenv, fetchFromGitHub }:

stdenv.mkDerivation rec {
name = "unifdef-2.6";
name = "unifdef-${version}";
version = "2.11";

src = fetchurl {
url = "https://github.com/fanf2/unifdef/archive/${name}.tar.gz";
sha256 = "1p5wr5ms9w8kijy9h7qs1mz36dlavdj6ngz2bks588w7a20kcqxj";
src = fetchFromGitHub {
owner = "fanf2";
repo = "unifdef";
rev = "8697cc11a1bb67c1153ecc556b880d1fdc4b4e00";
sha256 = "0d842m4zqbl5h8qiga1bp3vdirs01wd878rz0dkf32illkimmg0y";
};

postUnpack = ''
substituteInPlace $sourceRoot/unifdef.c \
--replace '#include "version.h"' ""
substituteInPlace $sourceRoot/Makefile \
--replace "unifdef.c: version.h" "unifdef.c:"
'';
makeFlags = [
"prefix=$(out)"
"DESTDIR="
];

preBuild = ''
unset HOME
export DESTDIR=$out
echo 'V="${name}"' > version.sh
'';

meta = {
meta = with stdenv.lib; {
homepage = "http://dotat.at/prog/unifdef/";
description = "Selectively remove C preprocessor conditionals";
license = licenses.bsd2;
platforms = platforms.linux;

This comment has been minimized.

Copy link
@matthewbauer

matthewbauer Jun 28, 2016

Member

this should be platforms.unix, I think

maintainers = [ maintainers.vrthra ];
};
}

0 comments on commit c6980b2

Please sign in to comment.