about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2018-02-23 16:38:26 +0000
committerJörg Thalheim <joerg@thalheim.io>2018-02-23 16:38:26 +0000
commit1fbf33b78e7124d659189a52e88be620e920572b (patch)
treece15ad655c2a79802f9cdcc994fa5fc79b194d33
parent7ca25bdfcf503c26aa9cb1e69010d459c61ddb0d (diff)
zj-58: nitpicks
-rw-r--r--pkgs/misc/cups/drivers/zj-58/default.nix17
1 files changed, 7 insertions, 10 deletions
diff --git a/pkgs/misc/cups/drivers/zj-58/default.nix b/pkgs/misc/cups/drivers/zj-58/default.nix
index 3f806c48ec6ee..9321cf526bee6 100644
--- a/pkgs/misc/cups/drivers/zj-58/default.nix
+++ b/pkgs/misc/cups/drivers/zj-58/default.nix
@@ -12,21 +12,18 @@ stdenv.mkDerivation rec {
     sha256 = "1w2qkspm4qqg5h8n6gmakzhiww7gag64chvy9kf89xsl3wsyp6pi";
   };
 
-  buildInputs = [cups];
+  buildInputs = [ cups ];
 
   installPhase = ''
-    mkdir -p $out/lib/cups/filter
-    cp rastertozj $out/lib/cups/filter
-
-    mkdir -p $out/share/cups/model/zjiang
-    cp ZJ-58.ppd $out/share/cups/model/zjiang/
+    install -D rastertozj $out/lib/cups/filter/rastertozj
+    install -D ZJ-58.ppd $out/share/cups/model/zjiang/ZJ-58.ppd
   '';
 
-  meta = {
+  meta = with stdenv.lib; {
     description = "CUPS filter for thermal printer Zjiang ZJ-58";
     homepage = https://github.com/klirichek/zj-58;
-    platforms = stdenv.lib.platforms.linux;
-    maintainers = with stdenv.lib.maintainers; [ makefu ];
-    license = stdenv.lib.licenses.bsd2;
+    platforms = platforms.linux;
+    maintainers = with maintainers; [ makefu ];
+    license = licenses.bsd2;
   };
 }