diff options
author | éclairevoyant <848000+eclairevoyant@users.noreply.github.com> | 2024-02-20 22:03:41 -0500 |
---|---|---|
committer | éclairevoyant <848000+eclairevoyant@users.noreply.github.com> | 2024-02-26 21:57:42 -0500 |
commit | 051c623791f67f362b1fb538ca749e9135840a58 (patch) | |
tree | 34d84367ff225f014390906b706cfae43514e8af /pkgs/by-name/hy | |
parent | 043e316272533249bd27d4dc580d6357b5def7b9 (diff) |
hyprlock: init at 0.1.0
Diffstat (limited to 'pkgs/by-name/hy')
-rw-r--r-- | pkgs/by-name/hy/hyprlock/package.nix | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/pkgs/by-name/hy/hyprlock/package.nix b/pkgs/by-name/hy/hyprlock/package.nix new file mode 100644 index 0000000000000..29d34b8ad83a4 --- /dev/null +++ b/pkgs/by-name/hy/hyprlock/package.nix @@ -0,0 +1,80 @@ +{ lib +, stdenv +, fetchFromGitHub +, cmake +, pkg-config +, libGL +, libxkbcommon +, hyprlang +, pam +, wayland +, wayland-protocols +, cairo +, pango +, libdrm +, mesa +, nix-update-script +, expat +, libXdmcp +, pcre2 +, util-linux +, libselinux +, libsepol +, pcre +, fribidi +, libthai +, libdatrie +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "hyprlock"; + version = "0.1.0"; + + src = fetchFromGitHub { + owner = "hyprwm"; + repo = "hyprlock"; + rev = "v${finalAttrs.version}"; + hash = "sha256-SX3VRcewkqeAIY6ptgfk9+C6KB9aCEUOacb2pKl3kO0="; + }; + + strictDeps = true; + + nativeBuildInputs = [ + cmake + pkg-config + ]; + + buildInputs = [ + cairo + expat + fribidi + hyprlang + libdatrie + libdrm + libGL + libselinux + libsepol + libthai + libXdmcp + libxkbcommon + mesa + pam + pango + pcre + pcre2 + util-linux + wayland + wayland-protocols + ]; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "Hyprland's GPU-accelerated screen locking utility"; + homepage = "https://github.com/hyprwm/hyprlock"; + license = lib.licenses.bsd3; + maintainers = with lib.maintainers; [ eclairevoyant ]; + mainProgram = "hyprlock"; + platforms = [ "aarch64-linux" "x86_64-linux" ]; + }; +}) |