cups-ssi-slp-400-600: init at unstable-2021-12-09
This commit is contained in:
parent
4f77819df7
commit
3487b8ce24
46
cups-sii-slp-400-600/default.nix
Normal file
46
cups-sii-slp-400-600/default.nix
Normal file
|
@ -0,0 +1,46 @@
|
||||||
|
{ stdenv
|
||||||
|
, lib
|
||||||
|
, fetchzip
|
||||||
|
, fetchpatch
|
||||||
|
, cups
|
||||||
|
, perl
|
||||||
|
}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
pname = "cups-sii-slp-400-600";
|
||||||
|
version = "unstable-2021-12-09"; # Last-Modified HTTP header of zip file
|
||||||
|
|
||||||
|
src = fetchzip {
|
||||||
|
url = "https://siibusinessproducts.com/wp-content/uploads/2021/12/SLP-400-600-SeikoSLPLinuxCUPSDriver.zip";
|
||||||
|
hash = "sha256-ZBBuZ87zXkeDKS0HP6R0gCHiJHCwGUJZIkWOE9WZxOU=";
|
||||||
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
(fetchpatch {
|
||||||
|
name = "Fix-includes.patch";
|
||||||
|
url = "https://github.com/fawkesley/smart-label-printer-slp-linux-driver/commit/292e4b78b664379230c3a630e456bc5a696bf757.patch";
|
||||||
|
hash = "sha256-XHjMHCBbIEAtYUQj7o4y5U4OYzGtnyqxuMYlhfMng9g=";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
patchFlags = [ "-p2" ];
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
cups.dev
|
||||||
|
perl # required to patch paths in PPD files
|
||||||
|
];
|
||||||
|
|
||||||
|
makeFlags = [ "ppddir=$(out)/share/cups/model/seiko" "filterdir=$(out)/lib/cups/filter" ];
|
||||||
|
|
||||||
|
preInstall = ''
|
||||||
|
mkdir -p $out/{share/cups/model/seiko,lib/cups/filter}
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "CUPS Driver (PPD and filter) for Seiko Instruments Inc (SII) SLP100/410, SLP200/420, SLP240/430, SLP440, SLP450, SLP620, SLP650/SLP650SE";
|
||||||
|
homepage = "https://siibusinessproducts.com/support/linux-software-and-drivers/";
|
||||||
|
license = licenses.gpl2Plus;
|
||||||
|
maintainers = with maintainers; [ sbruder ];
|
||||||
|
platforms = platforms.unix;
|
||||||
|
};
|
||||||
|
}
|
10
cups-sii-slp-400-600/fix-includes.diff
Normal file
10
cups-sii-slp-400-600/fix-includes.diff
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
--- a/RasterToSIISLP.cxx
|
||||||
|
+++ b/RasterToSIISLP.cxx
|
||||||
|
@@ -38,6 +38,7 @@
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <fcntl.h>
|
||||||
|
#include <vector>
|
||||||
|
+#include <cstdio>
|
||||||
|
|
||||||
|
#include "SeikoSLPCommands.h"
|
||||||
|
#include "SeikoInstrumentsVendorID.h"
|
|
@ -23,6 +23,8 @@ rec {
|
||||||
|
|
||||||
colorchord2 = callPackage ./colorchord2 { };
|
colorchord2 = callPackage ./colorchord2 { };
|
||||||
|
|
||||||
|
cups-sii-slp-400-600 = callPackage ./cups-sii-slp-400-600 { };
|
||||||
|
|
||||||
fSpy = callPackage ./fSpy { };
|
fSpy = callPackage ./fSpy { };
|
||||||
|
|
||||||
face_morpher = callPythonPackage ./face_morpher { };
|
face_morpher = callPythonPackage ./face_morpher { };
|
||||||
|
|
Loading…
Reference in a new issue