From d1ffd40bd7f6481c835dac005ce792a252b78d25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20M=C3=B6ller?= Date: Tue, 28 Jun 2022 12:56:50 +0200 Subject: [PATCH] openiscsi: fix systemd service location --- pkgs/os-specific/linux/open-iscsi/default.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkgs/os-specific/linux/open-iscsi/default.nix b/pkgs/os-specific/linux/open-iscsi/default.nix index ebeb3516f243..32b3e636ac56 100644 --- a/pkgs/os-specific/linux/open-iscsi/default.nix +++ b/pkgs/os-specific/linux/open-iscsi/default.nix @@ -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 = ''