Files
nixpkgs/pkgs/by-name/pt/ptouch-print/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

59 lines
1.0 KiB
Nix

{
cmake,
fetchgit,
gd,
gettext,
git,
lib,
libjpeg,
libpng,
libusb1,
pkg-config,
stdenv,
zlib,
}:
stdenv.mkDerivation {
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.unix;
};
}