uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
54
pkgs/misc/cups/drivers/splix/default.nix
Normal file
54
pkgs/misc/cups/drivers/splix/default.nix
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
{ lib, stdenv, fetchsvn, fetchurl, cups, cups-filters, jbigkit, zlib }:
|
||||
|
||||
let
|
||||
|
||||
color-profiles = stdenv.mkDerivation {
|
||||
pname = "splix-color-profiles";
|
||||
version = "unstable-2007-06-25";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://splix.ap2c.org/samsung_cms.tar.bz2";
|
||||
sha256 = "1156flics5m9m7a4hdmcc2nphbdyary6dfmbcrmsp9xb7ivsypdl";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/cups/profiles/samsung
|
||||
cp * $out/share/cups/profiles/samsung/
|
||||
'';
|
||||
};
|
||||
|
||||
in stdenv.mkDerivation rec {
|
||||
pname = "splix-svn";
|
||||
version = "315";
|
||||
|
||||
src = fetchsvn {
|
||||
# We build this from svn, because splix hasn't been in released in several years
|
||||
# although the community has been adding some new printer models.
|
||||
url = "svn://svn.code.sf.net/p/splix/code/splix";
|
||||
rev = version;
|
||||
sha256 = "16wbm4xnz35ca3mw2iggf5f4jaxpyna718ia190ka6y4ah932jxl";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
mv -v *.ppd ppd/
|
||||
substituteInPlace src/pstoqpdl.cpp \
|
||||
--replace "RASTERDIR \"/\" RASTERTOQPDL" "\"$out/lib/cups/filter/rastertoqpdl\"" \
|
||||
--replace "RASTERDIR" "\"${cups-filters}/lib/cups/filter\"" \
|
||||
'';
|
||||
|
||||
makeFlags = [
|
||||
"CUPSFILTER=$(out)/lib/cups/filter"
|
||||
"CUPSPPD=$(out)/share/cups/model"
|
||||
"CUPSPROFILE=${color-profiles}/share/cups/profiles"
|
||||
];
|
||||
|
||||
buildInputs = [ cups zlib jbigkit ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "CUPS drivers for SPL (Samsung Printer Language) printers";
|
||||
homepage = "http://splix.ap2c.org";
|
||||
license = licenses.gpl2;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ jfrankenau ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue