lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 23.11-beta 67 lines 1.4 kB view raw
1{ stdenv 2, lib 3, fetchFromGitHub 4, meson 5, pkg-config 6, ninja 7, perl 8, util-linux 9, open-isns 10, openssl 11, kmod 12, systemd 13, runtimeShell 14, nixosTests }: 15 16stdenv.mkDerivation rec { 17 pname = "open-iscsi"; 18 version = "2.1.9"; 19 20 src = fetchFromGitHub { 21 owner = "open-iscsi"; 22 repo = "open-iscsi"; 23 rev = version; 24 hash = "sha256-y0NIb/KsKpCd8byr/SXI7nwTKXP2/bSSoW8QgeL5xdc="; 25 }; 26 27 nativeBuildInputs = [ 28 meson 29 pkg-config 30 ninja 31 perl 32 ]; 33 buildInputs = [ 34 kmod 35 (lib.getLib open-isns) 36 openssl 37 systemd 38 util-linux 39 ]; 40 41 preConfigure = '' 42 patchShebangs . 43 ''; 44 45 prePatch = '' 46 substituteInPlace etc/systemd/iscsi-init.service.template \ 47 --replace /usr/bin/sh ${runtimeShell} 48 sed -i '/install_dir: db_root/d' meson.build 49 ''; 50 51 mesonFlags = [ 52 "-Discsi_sbindir=${placeholder "out"}/sbin" 53 "-Drulesdir=${placeholder "out"}/etc/udev/rules.d" 54 "-Dsystemddir=${placeholder "out"}/lib/systemd" 55 "-Ddbroot=/etc/iscsi" 56 ]; 57 58 passthru.tests = { inherit (nixosTests) iscsi-root; }; 59 60 meta = with lib; { 61 description = "A high performance, transport independent, multi-platform implementation of RFC3720"; 62 license = licenses.gpl2Plus; 63 homepage = "https://www.open-iscsi.com"; 64 platforms = platforms.linux; 65 maintainers = with maintainers; [ cleverca22 zaninime ]; 66 }; 67}