nixpkgs/pkgs/os-specific/linux/nvmet-cli/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

27 lines
717 B
Nix

{ lib, python3Packages, fetchurl }:
python3Packages.buildPythonApplication rec {
pname = "nvmet-cli";
version = "0.7";
src = fetchurl {
url = "ftp://ftp.infradead.org/pub/nvmetcli/nvmetcli-${version}.tar.gz";
sha256 = "051y1b9w46azy35118154c353v3mhjkdzh6h59brdgn5054hayj2";
};
buildInputs = with python3Packages; [ nose2 ];
propagatedBuildInputs = with python3Packages; [ configshell ];
# This package requires the `nvmet` kernel module to be loaded for tests.
doCheck = false;
meta = with lib; {
description = "NVMe target CLI";
mainProgram = "nvmetcli";
license = licenses.asl20;
platforms = platforms.linux;
maintainers = with maintainers; [ hoverbear ];
};
}