diff options
author | Clemens Fruhwirth <clemens@endorphin.org> | 2016-04-24 14:37:38 +0200 |
---|---|---|
committer | Clemens Fruhwirth <clemens@endorphin.org> | 2016-04-29 14:02:17 +0200 |
commit | e091d27944406668c6c366d429daa7bfd67f6a23 (patch) | |
tree | 8ea0f0d76ae1c506149a3a276050c17a95ec147b | |
parent | 82dd20a14d19659ee5ae678c6a6def41aa00d2e6 (diff) | |
download | nixpkgs-e091d27944406668c6c366d429daa7bfd67f6a23.tar nixpkgs-e091d27944406668c6c366d429daa7bfd67f6a23.tar.gz nixpkgs-e091d27944406668c6c366d429daa7bfd67f6a23.tar.bz2 nixpkgs-e091d27944406668c6c366d429daa7bfd67f6a23.tar.lz nixpkgs-e091d27944406668c6c366d429daa7bfd67f6a23.tar.xz nixpkgs-e091d27944406668c6c366d429daa7bfd67f6a23.tar.zst nixpkgs-e091d27944406668c6c366d429daa7bfd67f6a23.zip |
open-iscsi: from 2.0.873 to a git snapshot
The last release was in May 2012 with many fixes hitting git since then. Also open-iscsi has broken out the open-isns part as extra library, so we have that as new dependency.
-rw-r--r-- | pkgs/os-specific/linux/open-iscsi/default.nix | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/pkgs/os-specific/linux/open-iscsi/default.nix b/pkgs/os-specific/linux/open-iscsi/default.nix index d004328a10b..6d1b11fe888 100644 --- a/pkgs/os-specific/linux/open-iscsi/default.nix +++ b/pkgs/os-specific/linux/open-iscsi/default.nix @@ -1,18 +1,16 @@ -{ stdenv, fetchurl, nukeReferences }: -let - pname = "open-iscsi-2.0-873"; -in stdenv.mkDerivation { - name = pname; +{ stdenv, fetchFromGitHub, nukeReferences, automake, autoconf, libtool, gettext, utillinux, openisns, openssl }: +stdenv.mkDerivation rec { + name = "open-iscsi-${version}"; + version = "2.0-873-${stdenv.lib.substring 0 7 src.rev}"; outputs = [ "out" "iscsistart" ]; - buildInputs = [ nukeReferences ]; + buildInputs = [ nukeReferences automake autoconf libtool gettext utillinux openisns.lib openssl ]; - src = fetchurl { - urls = [ - "http://www.open-iscsi.org/bits/${pname}.tar.gz" - "http://pkgs.fedoraproject.org/repo/pkgs/iscsi-initiator-utils/${pname}.tar.gz/8b8316d7c9469149a6cc6234478347f7/${pname}.tar.gz" - ]; - sha256 = "1nbwmj48xzy45h52917jbvyqpsfg9zm49nm8941mc5x4gpwz5nbx"; + src = fetchFromGitHub { + owner = "open-iscsi"; + repo = "open-iscsi"; + rev = "4c1f2d90ef1c73e33d9f1e4ae9c206ffe015a8f9"; + sha256 = "0h030zk4zih3l8z5662b3kcifdxlakbwwkz1afb7yf0cicds7va8"; }; DESTDIR = "$(out)"; @@ -30,7 +28,7 @@ in stdenv.mkDerivation { meta = with stdenv.lib; { description = "A high performance, transport independent, multi-platform implementation of RFC3720"; license = licenses.gpl2Plus; - homepage = http://www.open-iscsi.org; + homepage = http://www.open-iscsi.com; platforms = platforms.linux; }; } |