File tree Expand file tree Collapse file tree 2 files changed +33
-8
lines changed Expand file tree Collapse file tree 2 files changed +33
-8
lines changed Original file line number Diff line number Diff line change 1- { lib , stdenv , openssl , fetchFromGitHub } :
1+ {
2+ lib ,
3+ stdenv ,
4+ pkg-config ,
5+ meson ,
6+ ninja ,
7+ openssl ,
8+ fetchFromGitHub ,
9+ } :
210
311stdenv . 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" ;
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments