btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / by-name / cu / cups-zj-58 / package.nix
blob0e2534997e350a71f2f88e95d0e312c1190f22aa
1 {lib, stdenv, fetchFromGitHub, cups}:
3 stdenv.mkDerivation {
4   pname = "cups-zj-58";
5   version = "2018-02-22";
7   src = fetchFromGitHub {
8     owner = "klirichek";
9     repo = "zj-58";
10     rev = "e4212cd";
11     sha256 = "1w2qkspm4qqg5h8n6gmakzhiww7gag64chvy9kf89xsl3wsyp6pi";
12   };
14   buildInputs = [ cups ];
16   installPhase = ''
17     install -D rastertozj $out/lib/cups/filter/rastertozj
18     install -D ZJ-58.ppd $out/share/cups/model/zjiang/ZJ-58.ppd
19   '';
21   meta = with lib; {
22     description = "CUPS filter for thermal printer Zjiang ZJ-58";
23     homepage = "https://github.com/klirichek/zj-58";
24     platforms = platforms.linux;
25     maintainers = with maintainers; [ makefu ];
26     license = licenses.bsd2;
27   };