* Clean up foomatic-filters.
svn path=/nixpkgs/trunk/; revision=27470
This commit is contained in:
parent
22b9fd78a4
commit
614e5a525c
@ -1,54 +1,32 @@
|
|||||||
x@{builderDefsPackage
|
{ stdenv, fetchurl, perl, cups, coreutils, gnused }:
|
||||||
, perl, cups
|
|
||||||
, ...}:
|
|
||||||
builderDefsPackage
|
|
||||||
(a :
|
|
||||||
let
|
|
||||||
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
|
|
||||||
[];
|
|
||||||
|
|
||||||
buildInputs = map (n: builtins.getAttr n x)
|
stdenv.mkDerivation rec {
|
||||||
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
|
name = "foomatic-filters-4.0.6";
|
||||||
sourceInfo = rec {
|
|
||||||
baseName="foomatic-filters";
|
src = fetchurl {
|
||||||
version="4.0.6";
|
|
||||||
name="${baseName}-${version}";
|
|
||||||
url = "http://www.openprinting.org/download/foomatic/${name}.tar.gz";
|
url = "http://www.openprinting.org/download/foomatic/${name}.tar.gz";
|
||||||
hash="0wa9hlq7s99sh50kl6bj8j0vxrz7pcbwdnqs1yfjjhqshfh7hsav";
|
sha256 = "0wa9hlq7s99sh50kl6bj8j0vxrz7pcbwdnqs1yfjjhqshfh7hsav";
|
||||||
};
|
|
||||||
in
|
|
||||||
rec {
|
|
||||||
src = a.fetchurl {
|
|
||||||
url = sourceInfo.url;
|
|
||||||
sha256 = sourceInfo.hash;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
inherit (sourceInfo) name version;
|
buildInputs = [ perl cups ];
|
||||||
inherit buildInputs;
|
|
||||||
|
|
||||||
phaseNames = ["doConfigure" "fixPaths" "doMakeInstall"];
|
preConfigure =
|
||||||
|
''
|
||||||
|
substituteInPlace foomaticrip.c --replace /bin/bash /bin/sh
|
||||||
|
'';
|
||||||
|
|
||||||
fixPaths = a.fullDepEntry ''
|
installTargets = "install-cups";
|
||||||
sed -e "s@= .*/store/[^/]\+/lib/cups/filter@= $out/lib/cups/filter@" -i Makefile
|
|
||||||
sed -e "s@= .*/store/[^/]\+/lib/cups/backend@= $out/lib/cups/backend@" -i Makefile
|
installFlags =
|
||||||
sed -e "s@= /usr/@= $out/@" -i Makefile
|
''
|
||||||
sed -e "s@/bin/bash@/bin/sh@g" -i foomaticrip.c
|
CUPS_FILTERS=$(out)/lib/cups/filter
|
||||||
'' ["doConfigure" "minInit"];
|
CUPS_BACKENDS=$(out)/lib/cups/backend
|
||||||
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Foomatic printing filters";
|
description = "Foomatic printing filters";
|
||||||
maintainers = with a.lib.maintainers;
|
maintainers = stdenv.lib.maintainers.raskin;
|
||||||
[
|
platforms = stdenv.lib.platforms.linux;
|
||||||
raskin
|
license = stdenv.lib.licenses.gpl2Plus;
|
||||||
];
|
|
||||||
platforms = with a.lib.platforms;
|
|
||||||
linux;
|
|
||||||
license = a.lib.licenses.gpl2Plus;
|
|
||||||
};
|
};
|
||||||
passthru = {
|
}
|
||||||
updateInfo = {
|
|
||||||
downloadPage = "http://www.openprinting.org/download/foomatic/";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}) x
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user