summary refs log tree commit diff
path: root/pkgs/os-specific/linux/mdevctl/default.nix
blob: 9762011b7a304527b60efb91adbfdfdb8c372103 (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
{ lib, fetchFromGitHub
, rustPackages, pkg-config, docutils
}:

rustPackages.rustPlatform.buildRustPackage rec {

  pname = "mdevctl";
  version = "1.2.0";

  src = fetchFromGitHub {
    owner = pname;
    repo = pname;
    rev = "v" + version;
    hash = "sha256-Hgl+HsWAYIdabHJdPbCaBNnhY49vpuIjR3l6z2CAmx0=";
  };

  cargoPatches = [ ./lock.patch ];

  cargoHash = "sha256-PXVc7KUMPze06gCnD2gqzlySwPumOw/z31CTd0UHp9w=";

  nativeBuildInputs = [ pkg-config docutils ];

  meta = with lib; {
    homepage = "https://github.com/mdevctl/mdevctl";
    description = "A mediated device management utility for linux";
    license = licenses.lgpl21Only;
    maintainers = with maintainers; [ edwtjo ];
    platforms = platforms.linux;
  };
}