openiscsi: fix systemd service location

This commit is contained in:
Fabian Möller 2022-06-28 12:56:50 +02:00
parent 16de63fcc5
commit d1ffd40bd7
No known key found for this signature in database
GPG key ID: 70B29D65DD8A7E31

View file

@ -22,8 +22,6 @@ stdenv.mkDerivation rec {
NIX_CFLAGS_COMPILE = "-DUSE_KMOD";
preConfigure = ''
sed -i 's|/usr|/|' Makefile
# Remove blanket -Werror. Fails for minor error on gcc-11.
substituteInPlace usr/Makefile --replace ' -Werror ' ' '
'';
@ -32,11 +30,12 @@ stdenv.mkDerivation rec {
makeFlags = [
"INSTALL=install"
"SED=sed"
"prefix=/"
"manprefix=/share"
];
installFlags = [
"install"
"install_systemd"
];
postInstall = ''