mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 06:31:02 +00:00
f5fa5fa4d6
* pkgs: refactor needless quoting of homepage meta attribute A lot of packages are needlessly quoting the homepage meta attribute (about 1400, 22%), this commit refactors all of those instances. * pkgs: Fixing some links that were wrongfully unquoted in the previous commit * Fixed some instances
32 lines
765 B
Nix
32 lines
765 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 ];
|
|
};
|
|
}
|