Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, python3, fetchFromGitHub }:
2
3python3.pkgs.buildPythonApplication rec {
4 pname = "targetcli";
5 version = "2.1.56";
6
7 src = fetchFromGitHub {
8 owner = "open-iscsi";
9 repo = "${pname}-fb";
10 rev = "v${version}";
11 hash = "sha256-sWLwjfuy9WPnrGK0BxUGnNrhtGDoQyRFMY1OSlyxqs4=";
12 };
13
14 propagatedBuildInputs = with python3.pkgs; [ configshell rtslib ];
15
16 postInstall = ''
17 install -D targetcli.8 -t $out/share/man/man8/
18 install -D targetclid.8 -t $out/share/man/man8/
19 '';
20
21 meta = with lib; {
22 description = "A command shell for managing the Linux LIO kernel target";
23 homepage = "https://github.com/open-iscsi/targetcli-fb";
24 license = licenses.asl20;
25 platforms = platforms.linux;
26 };
27}