about summary refs log tree commit diff
path: root/nixpkgs/pkgs/by-name/nv/nvmetcfg/package.nix
blob: 5edd436ba62106fc65f77ef37bf9e26ad65ee9af (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ lib
, rustPlatform
, fetchFromGitHub
, nixosTests
}:

rustPlatform.buildRustPackage rec {
  pname = "nvmetcfg";
  version = "0.1.0";

  src = fetchFromGitHub {
    owner = "vifino";
    repo = "nvmetcfg";
    rev = "v${version}";
    hash = "sha256-LoQTcHM6czzQ5ZwXcklFXf/7WlRsoJTF61UhQ56aleQ=";
  };

  cargoHash = "sha256-yZ4UAx95f/cjeObBtzpiYtwDjgOgkKnD64yGe6ouVGw=";

  passthru.tests = {
    inherit (nixosTests) nvmetcfg;
  };

  meta = with lib; {
    description = "NVMe-oF Target Configuration Utility for Linux";
    homepage = "https://github.com/vifino/nvmetcfg";
    license = licenses.isc;
    maintainers = with maintainers; [ nickcao ];
    mainProgram = "nvmetcfg";
    platforms = platforms.linux;
  };
}