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