nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 55 lines 1.1 kB view raw
1{ 2 lib, 3 stdenv, 4 pkg-config, 5 meson, 6 ninja, 7 openssl, 8 fetchFromGitHub, 9}: 10 11stdenv.mkDerivation (finalAttrs: { 12 pname = "open-isns"; 13 version = "0.103"; 14 15 src = fetchFromGitHub { 16 owner = "open-iscsi"; 17 repo = "open-isns"; 18 rev = "v${finalAttrs.version}"; 19 sha256 = "sha256-buqQMsoxRCbWiBDq0XAg93J7bjbdxeIernV8sDVxCAA="; 20 }; 21 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 ]; 33 propagatedBuildInputs = [ openssl ]; 34 outputs = [ 35 "out" 36 "lib" 37 "dev" 38 "man" 39 ]; 40 41 configureFlags = [ "--enable-shared" ]; 42 43 mesonFlags = [ 44 "-Dslp=disabled" # openslp is not maintained and labeled unsafe 45 "-Dsystemddir=${placeholder "out"}/lib/systemd" 46 ]; 47 48 meta = { 49 description = "iSNS server and client for Linux"; 50 license = lib.licenses.lgpl21Only; 51 homepage = "https://github.com/open-iscsi/open-isns"; 52 platforms = lib.platforms.linux; 53 maintainers = [ lib.maintainers.markuskowa ]; 54 }; 55})