diff options
author | makefu <github@syntax-fehler.de> | 2022-06-06 21:27:50 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2022-06-06 21:27:50 +0200 |
commit | 1f4f51cbf154fbb0eb688c5eba32d2e182f55c93 (patch) | |
tree | 35f0204b737d648a044dfe270ab25e11ac1bd806 | |
parent | 68441cd9bcefc2aa94006abdb272b9803c588aac (diff) |
ma pkgs.ptouch-print: init at 1.5-master
-rw-r--r-- | makefu/5pkgs/ptouch-print/default.nix | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/makefu/5pkgs/ptouch-print/default.nix b/makefu/5pkgs/ptouch-print/default.nix new file mode 100644 index 000000000..9bac9bb35 --- /dev/null +++ b/makefu/5pkgs/ptouch-print/default.nix @@ -0,0 +1,45 @@ +{ lib, stdenv +, fetchgit +, cmake +, gd +, git +, libusb1 +, gettext +, pkg-config +}: + +stdenv.mkDerivation rec { + pname = "ptouch-print"; + version = "1.5-master"; + + src = fetchgit { + url = "https://git.familie-radermacher.ch/cgi/cgit/linux/ptouch-print.git"; + rev = "674e0da5fb6254c4f015c6c910377b6f4f04e0f3"; + sha256 = "04a3kp01mvf538l9d6bw2b54azn64xh605qwaq1ig8imjphrn82s"; + }; + + nativeBuildInputs = [ + cmake + git + ]; + + installPhase = '' + install -D ptouch-print $out/bin/ptouch-print + install -D $src/ptouch-print.1 $out/share/man/man1/ptouch-print.1 + ''; + + buildInputs = [ + gd + pkg-config + gettext + libusb1 + ]; + + meta = with lib; { + description = "Command line tool to print labels on Brother P-Touch printers on Linux"; + license = licenses.gpl3Plus; + homepage = "https://mockmoon-cybernetics.ch/computer/p-touch2430pc/"; + maintainers = with maintainers; [ shamilton ]; + platforms = platforms.linux; + }; +} |