diff --git a/pkgs/os-specific/linux/open-iscsi/default.nix b/pkgs/os-specific/linux/open-iscsi/default.nix index c4e39e45cade..e6682aec6c64 100644 --- a/pkgs/os-specific/linux/open-iscsi/default.nix +++ b/pkgs/os-specific/linux/open-iscsi/default.nix @@ -1,8 +1,11 @@ -{ stdenv, fetchurl }: +{ stdenv, fetchurl, nukeReferences }: let pname = "open-iscsi-2.0-873"; in stdenv.mkDerivation { name = "${pname}"; + outputs = [ "out" "iscsistart" ]; + + buildInputs = [ nukeReferences ]; src = fetchurl { url = "http://www.open-iscsi.org/bits/${pname}.tar.gz"; @@ -15,6 +18,12 @@ in stdenv.mkDerivation { sed -i 's|/usr/|/|' Makefile ''; + postInstall = '' + mkdir -pv $iscsistart/bin/ + cp -v usr/iscsistart $iscsistart/bin/ + nuke-refs $iscsistart/bin/iscsistart + ''; + meta = { description = "A high performance, transport independent, multi-platform implementation of RFC3720"; license = stdenv.lib.licenses.gpl2Plus;