openiscsi: fix systemd service location
This commit is contained in:
parent
16de63fcc5
commit
d1ffd40bd7
1 changed files with 2 additions and 3 deletions
|
@ -22,8 +22,6 @@ stdenv.mkDerivation rec {
|
||||||
NIX_CFLAGS_COMPILE = "-DUSE_KMOD";
|
NIX_CFLAGS_COMPILE = "-DUSE_KMOD";
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
sed -i 's|/usr|/|' Makefile
|
|
||||||
|
|
||||||
# Remove blanket -Werror. Fails for minor error on gcc-11.
|
# Remove blanket -Werror. Fails for minor error on gcc-11.
|
||||||
substituteInPlace usr/Makefile --replace ' -Werror ' ' '
|
substituteInPlace usr/Makefile --replace ' -Werror ' ' '
|
||||||
'';
|
'';
|
||||||
|
@ -32,11 +30,12 @@ stdenv.mkDerivation rec {
|
||||||
makeFlags = [
|
makeFlags = [
|
||||||
"INSTALL=install"
|
"INSTALL=install"
|
||||||
"SED=sed"
|
"SED=sed"
|
||||||
|
"prefix=/"
|
||||||
|
"manprefix=/share"
|
||||||
];
|
];
|
||||||
|
|
||||||
installFlags = [
|
installFlags = [
|
||||||
"install"
|
"install"
|
||||||
"install_systemd"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
|
|
Loading…
Reference in a new issue