nixpkgs/pkgs/by-name/un/unl0kr/package.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

59 lines
1.0 KiB
Nix

{ 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";
mainProgram = "unl0kr";
homepage = "https://gitlab.com/cherrypicker/unl0kr";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ tomfitzhenry ];
platforms = platforms.linux;
};
})