cups-idprt-mt888: init at 1.2.0
This commit is contained in:
parent
bf98884720
commit
d298a66488
52
pkgs/by-name/cu/cups-idprt-mt888/package.nix
Normal file
52
pkgs/by-name/cu/cups-idprt-mt888/package.nix
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
{
|
||||||
|
stdenvNoCC,
|
||||||
|
lib,
|
||||||
|
fetchurl,
|
||||||
|
autoPatchelfHook,
|
||||||
|
cups,
|
||||||
|
unzip,
|
||||||
|
}:
|
||||||
|
|
||||||
|
stdenvNoCC.mkDerivation {
|
||||||
|
pname = "cups-idprt-mt888";
|
||||||
|
version = "1.2.0";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
name = "idprt_mt888_printer_linux_driver.zip";
|
||||||
|
url = "https://www.idprt.com/prt_v2/files/down_file/id/324/fid/780.html"; # NOTE: This is NOT an HTML page, but a ZIP file
|
||||||
|
hash = "sha256-fmKDRa6NOXMM6IuxRK8sjToGhdPiHO6ZdfUVvR1KKb0=";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ cups ];
|
||||||
|
nativeBuildInputs = [
|
||||||
|
autoPatchelfHook
|
||||||
|
unzip
|
||||||
|
];
|
||||||
|
|
||||||
|
installPhase =
|
||||||
|
let
|
||||||
|
arch = builtins.getAttr stdenvNoCC.hostPlatform.system {
|
||||||
|
x86_64-linux = "x64";
|
||||||
|
x86-linux = "x86";
|
||||||
|
};
|
||||||
|
in
|
||||||
|
''
|
||||||
|
runHook preInstall
|
||||||
|
mkdir -p $out/share/cups/model $out/lib/cups/filter
|
||||||
|
cp -r filter/${arch}/. $out/lib/cups/filter
|
||||||
|
cp -r ppd/. $out/share/cups/model
|
||||||
|
chmod +x $out/lib/cups/filter/*
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "CUPS driver for the iDPRT MT888";
|
||||||
|
platforms = [
|
||||||
|
"x86_64-linux"
|
||||||
|
"x86-linux"
|
||||||
|
];
|
||||||
|
license = lib.licenses.unfree;
|
||||||
|
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
|
||||||
|
maintainers = with lib.maintainers; [ pandapip1 ];
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user