nixpkgs/pkgs/os-specific/linux/targetcli/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
1011 B
Nix
Raw Normal View History

{ lib, python3, fetchFromGitHub, nixosTests, wrapGAppsNoGuiHook, gobject-introspection, glib }:
2018-06-24 13:54:16 +00:00
python3.pkgs.buildPythonApplication rec {
2018-06-24 13:54:16 +00:00
pname = "targetcli";
version = "2.1.58";
2018-06-24 13:54:16 +00:00
src = fetchFromGitHub {
owner = "open-iscsi";
repo = "${pname}-fb";
rev = "v${version}";
hash = "sha256-9QYo7jGk9iWr26j0qPQCqYsJ+vLXAsO4Xs7+7VT9/yc=";
2018-06-24 13:54:16 +00:00
};
nativeBuildInputs = [ wrapGAppsNoGuiHook gobject-introspection ];
buildInputs = [ glib ];
propagatedBuildInputs = with python3.pkgs; [ configshell rtslib pygobject3 ];
2018-06-24 13:54:16 +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/
'';
2023-11-08 17:35:23 +00:00
passthru.tests = {
inherit (nixosTests) iscsi-root;
};
meta = with lib; {
2018-06-24 13:54:16 +00:00
description = "Command shell for managing the Linux LIO kernel target";
homepage = "https://github.com/open-iscsi/targetcli-fb";
2018-06-24 13:54:16 +00:00
license = licenses.asl20;
maintainers = lib.teams.helsinki-systems.members;
2018-06-24 13:54:16 +00:00
platforms = platforms.linux;
};
}