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