btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / by-name / un / unl0kr / package.nix
blob8bedd9fc689fd633e7fb8fa18eda7a548ea181b8
1 { lib
2 , nixosTests
3 , stdenv
4 , fetchFromGitLab
5 , inih
6 , libdrm
7 , libinput
8 , libxkbcommon
9 , meson
10 , ninja
11 , pkg-config
12 , scdoc
15 stdenv.mkDerivation (finalAttrs: {
16   pname = "unl0kr";
17   version = "2.0.0";
19   src = fetchFromGitLab {
20     domain = "gitlab.com";
21     owner = "cherrypicker";
22     repo = "unl0kr";
23     rev = finalAttrs.version;
24     fetchSubmodules = true;
25     hash = "sha256-KPP4Ol1GCAWqdQYlNtKQD/jx8A/xuHdvKjcocPMqWa0=";
26   };
28   nativeBuildInputs = [
29     meson
30     ninja
31     pkg-config
32     scdoc
33   ];
35   buildInputs = [
36     inih
37     libdrm
38     libinput
39     libxkbcommon
40   ];
42   propagatedBuildInputs = [
43     libxkbcommon
44   ];
46   passthru = {
47     tests.unl0kr = nixosTests.systemd-initrd-luks-unl0kr;
48   };
50   meta = with lib; {
51     description = "Framebuffer-based disk unlocker for the initramfs based on LVGL";
52     mainProgram = "unl0kr";
53     homepage = "https://gitlab.com/cherrypicker/unl0kr";
54     license = licenses.gpl3Plus;
55     maintainers = with maintainers; [ hustlerone ];
56     platforms = platforms.linux;
57   };