diff options
author | Guillaume Girol <symphorien@users.noreply.github.com> | 2024-04-13 16:45:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-13 16:45:18 +0200 |
commit | d3644d8d681f7ffa10c0c1cf4541df0280a8216e (patch) | |
tree | bda7cc535b645bf2413efdd6b9fc94fb4f876438 /pkgs/misc | |
parent | 59e8caa7279e2be72429049f416a337453fc0f69 (diff) | |
parent | 57f9cc103f1e62ee1b27e73051d78f2acf2bce17 (diff) |
Merge pull request #300353 from tjkirch/ptouch-print-1.5-unstable
ptouch-print: 1.4.3 -> 1.5-unstable-2024-02-11
Diffstat (limited to 'pkgs/misc')
-rw-r--r-- | pkgs/misc/ptouch-print/default.nix | 40 |
1 files changed, 31 insertions, 9 deletions
diff --git a/pkgs/misc/ptouch-print/default.nix b/pkgs/misc/ptouch-print/default.nix index da0d3c8c97d35..e8c51514e0a99 100644 --- a/pkgs/misc/ptouch-print/default.nix +++ b/pkgs/misc/ptouch-print/default.nix @@ -1,35 +1,57 @@ -{ lib, stdenv +{ cmake , fetchgit -, autoreconfHook , gd +, gettext +, git +, lib +, libjpeg +, libpng , libusb1 +, pkg-config +, stdenv +, zlib }: stdenv.mkDerivation rec { pname = "ptouch-print"; - version = "1.4.3"; + version = "1.5-unstable-2024-02-11"; src = fetchgit { - url = "https://mockmoon-cybernetics.ch/cgi/cgit/linux/ptouch-print.git"; - rev = "v${version}"; - sha256 = "0i57asg2hj1nfwy5lcb0vhrpvb9dqfhf81vh4i929h1kiqhlw2hx"; + url = "https://git.familie-radermacher.ch/linux/ptouch-print.git"; + rev = "8aaeecd84b619587dc3885dd4fea4b7310c82fd4"; + hash = "sha256-IIq3SmMfsgwSYbgG1w/wrBnFtb6xdFK2lkK27Qqk6mw="; }; nativeBuildInputs = [ - autoreconfHook + cmake + git + pkg-config ]; buildInputs = [ gd + gettext + libjpeg + libpng + zlib libusb1 ]; + installPhase = '' + runHook preInstall + + mkdir -p $out/bin + mv ptouch-print $out/bin + + runHook postInstall + ''; + meta = with lib; { description = "Command line tool to print labels on Brother P-Touch printers on Linux"; + homepage = "https://dominic.familie-radermacher.ch/projekte/ptouch-print/"; license = licenses.gpl3Plus; - homepage = "https://mockmoon-cybernetics.ch/computer/p-touch2430pc/"; + mainProgram = "ptouch-print"; maintainers = with maintainers; [ shamilton ]; platforms = platforms.linux; - mainProgram = "ptouch-print"; }; } |