mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-11-10 01:33:11 +01:00
ipp-usb: fix man page being installed into double PREFIX, use --replace-fail everywhere (#459857)
This commit is contained in:
commit
b5e7365ef7
|
|
@ -21,11 +21,13 @@ buildGoModule rec {
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
# rebuild with patched paths
|
# rebuild with patched paths
|
||||||
rm ipp-usb.8
|
rm ipp-usb.8
|
||||||
substituteInPlace Makefile --replace "install: all" "install: man"
|
substituteInPlace Makefile \
|
||||||
substituteInPlace systemd-udev/ipp-usb.service --replace "/sbin" "$out/bin"
|
--replace-fail "install: all" "install: man" \
|
||||||
for i in Makefile paths.go ipp-usb.8.md; do
|
--replace-fail "/usr/" "/"
|
||||||
substituteInPlace $i --replace "/usr" "$out"
|
substituteInPlace systemd-udev/ipp-usb.service --replace-fail "/sbin" "$out/bin"
|
||||||
substituteInPlace $i --replace "/var/ipp-usb" "/var/lib/ipp-usb"
|
for i in paths.go ipp-usb.8.md; do
|
||||||
|
substituteInPlace $i --replace-fail "/usr" "$out"
|
||||||
|
substituteInPlace $i --replace-fail "/var/ipp-usb" "/var/lib/ipp-usb"
|
||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
@ -43,7 +45,7 @@ buildGoModule rec {
|
||||||
doInstallCheck = true;
|
doInstallCheck = true;
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
# to accomodate the makefile
|
# to accommodate the makefile
|
||||||
cp $out/bin/ipp-usb .
|
cp $out/bin/ipp-usb .
|
||||||
make install DESTDIR=$out
|
make install DESTDIR=$out
|
||||||
'';
|
'';
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue