1{
2 stdenv,
3 lib,
4 fetchFromGitHub,
5 autoreconfHook,
6 pkg-config,
7 openssl,
8 efivar,
9 keyutils,
10 libxcrypt,
11}:
12
13stdenv.mkDerivation rec {
14 pname = "mokutil";
15 version = "0.7.2";
16
17 src = fetchFromGitHub {
18 owner = "lcp";
19 repo = "mokutil";
20 rev = version;
21 sha256 = "sha256-DO3S1O0AKoI8gssnUyBTRj5lDNs6hhisc/5dTIqmbzM=";
22 };
23
24 nativeBuildInputs = [
25 autoreconfHook
26 pkg-config
27 ];
28
29 buildInputs = [
30 openssl
31 efivar
32 keyutils
33 libxcrypt
34 ];
35
36 meta = with lib; {
37 homepage = "https://github.com/lcp/mokutil";
38 description = "Utility to manipulate machines owner keys";
39 mainProgram = "mokutil";
40 license = licenses.gpl3Plus;
41 maintainers = with maintainers; [ nickcao ];
42 platforms = platforms.linux;
43 };
44}