diff options
author | Tom Fitzhenry <tom@tom-fitzhenry.me.uk> | 2023-02-27 00:29:19 +1100 |
---|---|---|
committer | Tom Fitzhenry <tom@tom-fitzhenry.me.uk> | 2023-10-02 01:28:57 +1100 |
commit | 46b1742febfea021b949d3dc02567dd7a5896abe (patch) | |
tree | 9f1c0cf81c9da0a75b4406af007d7e55decd1ad0 /pkgs/by-name/un | |
parent | 8a86b98f0ba1c405358f1b71ff8b5e1d317f5db2 (diff) | |
download | nixlib-46b1742febfea021b949d3dc02567dd7a5896abe.tar nixlib-46b1742febfea021b949d3dc02567dd7a5896abe.tar.gz nixlib-46b1742febfea021b949d3dc02567dd7a5896abe.tar.bz2 nixlib-46b1742febfea021b949d3dc02567dd7a5896abe.tar.lz nixlib-46b1742febfea021b949d3dc02567dd7a5896abe.tar.xz nixlib-46b1742febfea021b949d3dc02567dd7a5896abe.tar.zst nixlib-46b1742febfea021b949d3dc02567dd7a5896abe.zip |
unl0kr: init
Co-authored-by: Anderson Torres <torres.anderson.85@protonmail.com>
Diffstat (limited to 'pkgs/by-name/un')
-rw-r--r-- | pkgs/by-name/un/unl0kr/package.nix | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/pkgs/by-name/un/unl0kr/package.nix b/pkgs/by-name/un/unl0kr/package.nix new file mode 100644 index 000000000000..fa72e2af5c18 --- /dev/null +++ b/pkgs/by-name/un/unl0kr/package.nix @@ -0,0 +1,57 @@ +{ lib +, nixosTests +, stdenv +, fetchFromGitLab +, inih +, libdrm +, libinput +, libxkbcommon +, meson +, ninja +, pkg-config +, scdoc +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "unl0kr"; + version = "2.0.0"; + + src = fetchFromGitLab { + domain = "gitlab.com"; + owner = "cherrypicker"; + repo = "unl0kr"; + rev = finalAttrs.version; + fetchSubmodules = true; + hash = "sha256-KPP4Ol1GCAWqdQYlNtKQD/jx8A/xuHdvKjcocPMqWa0="; + }; + + nativeBuildInputs = [ + meson + ninja + pkg-config + scdoc + ]; + + buildInputs = [ + inih + libdrm + libinput + libxkbcommon + ]; + + propagatedBuildInputs = [ + libxkbcommon + ]; + + passthru = { + tests.unl0kr = nixosTests.systemd-initrd-luks-unl0kr; + }; + + meta = with lib; { + description = "Framebuffer-based disk unlocker for the initramfs based on LVGL"; + homepage = "https://gitlab.com/cherrypicker/unl0kr"; + license = licenses.gpl3Plus; + maintainers = with maintainers; [ tomfitzhenry ]; + platforms = platforms.linux; + }; +}) |