2021-02-02 21:01:52 +01:00
|
|
|
{ lib, stdenv, openssl, fetchFromGitHub }:
|
2017-02-02 04:08:14 +01:00
|
|
|
|
2016-04-24 14:29:33 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "open-isns";
|
2021-02-02 21:01:52 +01:00
|
|
|
version = "0.101";
|
2016-04-24 14:29:33 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-01-28 12:47:22 +01:00
|
|
|
owner = "open-iscsi";
|
2016-04-24 14:29:33 +02:00
|
|
|
repo = "open-isns";
|
|
|
|
rev = "v${version}";
|
2021-02-02 21:01:52 +01:00
|
|
|
sha256 = "1g7kp1j2f8afsach6sbl4k05ybz1yz2s8yg073bv4gnv48gyxb2p";
|
2016-04-24 14:29:33 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ openssl ];
|
2017-02-02 04:08:14 +01:00
|
|
|
outputs = [ "out" "lib" ];
|
2016-04-24 14:29:33 +02:00
|
|
|
outputInclude = "lib";
|
|
|
|
|
2017-03-01 01:43:44 +01:00
|
|
|
configureFlags = [ "--enable-shared" ];
|
|
|
|
|
2019-11-05 02:10:31 +01:00
|
|
|
installFlags = [ "etcdir=$(out)/etc" "vardir=$(out)/var/lib/isns" ];
|
|
|
|
installTargets = [ "install" "install_hdrs" "install_lib" ];
|
2016-04-24 14:29:33 +02:00
|
|
|
|
2021-01-28 12:47:22 +01:00
|
|
|
meta = with lib; {
|
2016-04-24 14:29:33 +02:00
|
|
|
description = "iSNS server and client for Linux";
|
2021-01-28 12:47:22 +01:00
|
|
|
license = licenses.lgpl21Only;
|
|
|
|
homepage = "https://github.com/open-iscsi/open-isns";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.markuskowa ];
|
2016-04-24 14:29:33 +02:00
|
|
|
};
|
|
|
|
}
|