Skip to content

Commit f94eeaa

Browse files
authored
open-isns: 0.102 -> 0.103 (#354804)
2 parents 69c085d + 789fc00 commit f94eeaa

File tree

2 files changed

+33
-8
lines changed

2 files changed

+33
-8
lines changed

pkgs/by-name/op/open-isns/package.nix

Lines changed: 32 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,49 @@
1-
{ lib, stdenv, openssl, fetchFromGitHub }:
1+
{
2+
lib,
3+
stdenv,
4+
pkg-config,
5+
meson,
6+
ninja,
7+
openssl,
8+
fetchFromGitHub,
9+
}:
210

311
stdenv.mkDerivation rec {
412
pname = "open-isns";
5-
version = "0.102";
13+
version = "0.103";
614

715
src = fetchFromGitHub {
816
owner = "open-iscsi";
917
repo = "open-isns";
1018
rev = "v${version}";
11-
sha256 = "sha256-Vz6VqqvEr0f8AdN9NcVnruapswmoOgvAXxXSfrM3yRA=";
19+
sha256 = "sha256-buqQMsoxRCbWiBDq0XAg93J7bjbdxeIernV8sDVxCAA=";
1220
};
1321

22+
# The location of /var/lib is not made configurable in the meson.build file
23+
postPatch = ''
24+
substituteInPlace meson.build \
25+
--replace-fail "/var/lib" "$out/var/lib" \
26+
'';
27+
28+
nativeBuildInputs = [
29+
meson
30+
ninja
31+
pkg-config
32+
];
1433
propagatedBuildInputs = [ openssl ];
15-
outputs = [ "out" "lib" ];
16-
outputInclude = "lib";
34+
outputs = [
35+
"out"
36+
"lib"
37+
"dev"
38+
"man"
39+
];
1740

1841
configureFlags = [ "--enable-shared" ];
1942

20-
installFlags = [ "etcdir=$(out)/etc" "vardir=$(out)/var/lib/isns" ];
21-
installTargets = [ "install" "install_hdrs" "install_lib" ];
43+
mesonFlags = [
44+
"-Dslp=disabled" # openslp is not maintained and labeled unsafe
45+
"-Dsystemddir=${placeholder "out"}/lib/systemd"
46+
];
2247

2348
meta = with lib; {
2449
description = "iSNS server and client for Linux";

pkgs/by-name/op/openiscsi/package.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ stdenv.mkDerivation rec {
3232
];
3333
buildInputs = [
3434
kmod
35-
(lib.getLib open-isns)
35+
open-isns
3636
openssl
3737
systemd
3838
util-linux

0 commit comments

Comments
 (0)