mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
open-iscsi: save the staticly linked binary in its own output for use in the initrd
This commit is contained in:
parent
f5c0d29c58
commit
95e3c4f51c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user