2024-06-20 14:57:18 +00:00
|
|
|
{ lib, python3, fetchFromGitHub, nixosTests, wrapGAppsNoGuiHook, gobject-introspection, glib }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "targetcli";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "2.1.58";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "open-iscsi";
|
|
|
|
repo = "${pname}-fb";
|
|
|
|
rev = "v${version}";
|
2024-02-07 01:22:34 +00:00
|
|
|
hash = "sha256-9QYo7jGk9iWr26j0qPQCqYsJ+vLXAsO4Xs7+7VT9/yc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
nativeBuildInputs = [ wrapGAppsNoGuiHook gobject-introspection ];
|
|
|
|
buildInputs = [ glib ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [ configshell rtslib pygobject3 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
install -D targetcli.8 -t $out/share/man/man8/
|
|
|
|
install -D targetclid.8 -t $out/share/man/man8/
|
|
|
|
'';
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
passthru.tests = {
|
|
|
|
inherit (nixosTests) iscsi-root;
|
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Command shell for managing the Linux LIO kernel target";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/open-iscsi/targetcli-fb";
|
|
|
|
license = licenses.asl20;
|
2024-02-07 01:22:34 +00:00
|
|
|
maintainers = lib.teams.helsinki-systems.members;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|