20 gobject-introspection,
33 stdenv.mkDerivation rec {
34 pname = "system-config-printer";
37 src = fetchFromGitHub {
38 owner = "openPrinting";
41 sha256 = "sha256-l3HEnYycP56vZWREWkAyHmcFgtu09dy4Ds65u7eqNZk=";
46 touch README ChangeLog
48 substituteInPlace Makefile.am --replace /bin/bash ${bash}/bin/bash
52 ./detect_serverbindir.patch
53 # fix typeerror, remove on next release
55 url = "https://github.com/OpenPrinting/system-config-printer/commit/399b3334d6519639cfe7f1c0457e2475b8ee5230.patch";
56 sha256 = "sha256-JCdGmZk2vRn3X1BDxOJaY3Aw8dr0ODVzi0oY20ZWfRs=";
57 excludes = [ "NEWS" ];
60 # switch to pep517 build tools
69 python3Packages.python
88 python3Packages.wrapPython
90 python3Packages.installer
91 python3Packages.setuptools
100 requiredPythonModules [
111 "--with-udevdir=${placeholder "out"}/etc/udev"
112 "--with-systemdsystemunitdir=${placeholder "out"}/etc/systemd/system"
124 buildPythonPath "$out $pythonPath"
126 --prefix PATH : "$program_PATH"
127 --set CUPS_DATADIR "${libcupsfilters}/share/cups"
130 find $out/share/system-config-printer -name \*.py -type f -perm -0100 -print0 | while read -d "" f; do
131 patchPythonScript "$f"
133 patchPythonScript $out/etc/udev/udev-add-printer
135 substituteInPlace $out/etc/udev/rules.d/70-printers.rules \
136 --replace "udev-configure-printer" "$out/etc/udev/udev-configure-printer"
140 homepage = "https://github.com/openprinting/system-config-printer";
141 platforms = lib.platforms.linux;
142 license = lib.licenses.gpl2Plus;