nixpkgs/pkgs/os-specific/linux/open-iscsi/default.nix

33 lines
788 B
Nix
Raw Normal View History

{ 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";
sha256 = "1nbwmj48xzy45h52917jbvyqpsfg9zm49nm8941mc5x4gpwz5nbx";
};
DESTDIR = "$(out)";
preConfigure = ''
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;
homepage = http://www.open-iscsi.org;
};
}