cups-zj-58: 2018-02-2 -> 0-unstable-2019-04-28 (#452734)

This commit is contained in:
Vladimír Čunát
2025-11-12 20:53:48 +00:00
committed by GitHub
2 changed files with 27 additions and 5 deletions
+6
View File
@@ -6171,6 +6171,12 @@
github = "deifactor";
githubId = 30192992;
};
deimelias = {
name = "Deim Elias";
github = "DeimElias";
email = "deimelias@gmail.com";
githubId = 100871962;
};
deinferno = {
name = "deinferno";
github = "deinferno";
+21 -5
View File
@@ -3,31 +3,47 @@
stdenv,
fetchFromGitHub,
cups,
cmake,
pkg-config,
}:
stdenv.mkDerivation {
pname = "cups-zj-58";
version = "2018-02-22";
version = "0-unstable-2019-04-28";
src = fetchFromGitHub {
owner = "klirichek";
repo = "zj-58";
rev = "e4212cd702113a4bd4d7013744291c9f60bc5273";
sha256 = "1w2qkspm4qqg5h8n6gmakzhiww7gag64chvy9kf89xsl3wsyp6pi";
rev = "64743565df4379098b68a197d074c86617a8fc0a";
hash = "sha256-4l9NRfp0hiPDC6dtFsq7jLf0Gn9tktGy6oZ4GHxSfbw=";
};
nativeBuildInputs = [
cmake
pkg-config
];
buildInputs = [ cups ];
patchPhase = ''
substituteInPlace CMakeLists.txt \
--replace-fail "cmake_minimum_required ( VERSION 3.0 )" "cmake_minimum_required ( VERSION 3.10 )"
'';
installPhase = ''
install -D ppd/zj80.ppd $out/share/cups/model/zjiang/zj80.ppd
install -D ppd/zj58.ppd $out/share/cups/model/zjiang/zj58.ppd
install -D rastertozj $out/lib/cups/filter/rastertozj
install -D ZJ-58.ppd $out/share/cups/model/zjiang/ZJ-58.ppd
'';
meta = with lib; {
description = "CUPS filter for thermal printer Zjiang ZJ-58";
homepage = "https://github.com/klirichek/zj-58";
platforms = platforms.linux;
maintainers = with maintainers; [ makefu ];
maintainers = with maintainers; [
makefu
deimelias
];
license = licenses.bsd2;
};
}