1 { buildGoModule, avahi, libusb1, pkg-config, lib, fetchFromGitHub, ronn }:
6 src = fetchFromGitHub {
7 owner = "openprinting";
10 sha256 = "sha256-TBnEEH7GoOOFUh5zwJeb7c2nltaP7oCEZGnPWiK9sXk=";
14 # rebuild with patched paths
16 substituteInPlace Makefile --replace "install: all" "install: man"
17 substituteInPlace systemd-udev/ipp-usb.service --replace "/sbin" "$out/bin"
18 for i in Makefile paths.go ipp-usb.8.md; do
19 substituteInPlace $i --replace "/usr" "$out"
20 substituteInPlace $i --replace "/var/ipp-usb" "/var/lib/ipp-usb"
24 nativeBuildInputs = [ pkg-config ronn ];
25 buildInputs = [ libusb1 avahi ];
30 # to accomodate the makefile
32 make install DESTDIR=$out
36 description = "Daemon to use the IPP everywhere protocol with USB printers";
37 mainProgram = "ipp-usb";
38 homepage = "https://github.com/OpenPrinting/ipp-usb";
39 maintainers = [ lib.maintainers.symphorien ];
40 platforms = lib.platforms.linux;
41 license = lib.licenses.bsd2;