nixpkgs/pkgs/misc/ptouch-print/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

58 lines
1.0 KiB
Nix
Raw Normal View History

{ cmake
2020-10-30 13:00:15 +00:00
, fetchgit
, gd
, gettext
, git
, lib
, libjpeg
, libpng
2020-10-30 13:00:15 +00:00
, libusb1
, pkg-config
, stdenv
, zlib
2020-10-30 13:00:15 +00:00
}:
stdenv.mkDerivation rec {
pname = "ptouch-print";
version = "1.5-unstable-2024-02-11";
2020-10-30 13:00:15 +00:00
src = fetchgit {
url = "https://git.familie-radermacher.ch/linux/ptouch-print.git";
rev = "8aaeecd84b619587dc3885dd4fea4b7310c82fd4";
hash = "sha256-IIq3SmMfsgwSYbgG1w/wrBnFtb6xdFK2lkK27Qqk6mw=";
2020-10-30 13:00:15 +00:00
};
nativeBuildInputs = [
cmake
git
pkg-config
2020-10-30 13:00:15 +00:00
];
buildInputs = [
gd
gettext
libjpeg
libpng
zlib
2020-10-30 13:00:15 +00:00
libusb1
];
installPhase = ''
runHook preInstall
mkdir -p $out/bin
mv ptouch-print $out/bin
runHook postInstall
'';
meta = with lib; {
2020-10-30 13:00:15 +00:00
description = "Command line tool to print labels on Brother P-Touch printers on Linux";
homepage = "https://dominic.familie-radermacher.ch/projekte/ptouch-print/";
2020-10-30 13:00:15 +00:00
license = licenses.gpl3Plus;
mainProgram = "ptouch-print";
2020-10-30 13:00:15 +00:00
maintainers = with maintainers; [ shamilton ];
platforms = platforms.linux;
};
}