Skip to content

Commit c91af3b

Browse files
committed
open-isns: 0.102 -> 0.103
switch to meson/ninja builds and fix split output openiscsi: fix open-isns input
1 parent 8091ea3 commit c91af3b

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

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

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,32 @@
1-
{ lib, stdenv, openssl, fetchFromGitHub }:
1+
{ lib, stdenv, pkg-config, meson, ninja, openssl, fetchFromGitHub }:
22

33
stdenv.mkDerivation rec {
44
pname = "open-isns";
5-
version = "0.102";
5+
version = "0.103";
66

77
src = fetchFromGitHub {
88
owner = "open-iscsi";
99
repo = "open-isns";
1010
rev = "v${version}";
11-
sha256 = "sha256-Vz6VqqvEr0f8AdN9NcVnruapswmoOgvAXxXSfrM3yRA=";
11+
sha256 = "sha256-buqQMsoxRCbWiBDq0XAg93J7bjbdxeIernV8sDVxCAA=";
1212
};
1313

14+
# The location of /var/lib is not made configurable in the meson.build file
15+
postPatch = ''
16+
substituteInPlace meson.build \
17+
--replace-fail "/var/lib" "$out/var/lib" \
18+
'';
19+
20+
nativeBuildInputs = [ meson ninja pkg-config ];
1421
propagatedBuildInputs = [ openssl ];
15-
outputs = [ "out" "lib" ];
16-
outputInclude = "lib";
22+
outputs = [ "out" "lib" "dev" "man" ];
1723

1824
configureFlags = [ "--enable-shared" ];
1925

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

2331
meta = with lib; {
2432
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)