nixpkgs/pkgs/misc/ptouch-print/default.nix
Tom Kirchner 57f9cc103f ptouch-print: 1.4.3 -> 1.5-unstable-2024-02-11
The old upstream homepage and repo are dead; this moves them to the new home.

The latest release version is 1.5, but that does not contain several
important commits, including support for Brother's latest "standard"
label makers, so this moves to the latest commit.  Log here:
https://git.familie-radermacher.ch/linux/ptouch-print.git/log/

See original effort to update to 1.5 here; most of the changes are
from this original PR:
https://github.com/NixOS/nixpkgs/pull/197981
2024-04-03 15:47:27 -07:00

57 lines
1 KiB
Nix

{ cmake
, fetchgit
, gd
, gettext
, git
, lib
, libjpeg
, libpng
, libusb1
, pkg-config
, stdenv
, zlib
}:
stdenv.mkDerivation rec {
pname = "ptouch-print";
version = "1.5-unstable-2024-02-11";
src = fetchgit {
url = "https://git.familie-radermacher.ch/linux/ptouch-print.git";
rev = "8aaeecd84b619587dc3885dd4fea4b7310c82fd4";
hash = "sha256-IIq3SmMfsgwSYbgG1w/wrBnFtb6xdFK2lkK27Qqk6mw=";
};
nativeBuildInputs = [
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;
mainProgram = "ptouch-print";
maintainers = with maintainers; [ shamilton ];
platforms = platforms.linux;
};
}