dotfiles/pkgs/programs/ly/default.nix

48 lines
882 B
Nix
Raw Normal View History

2025-02-11 21:28:25 +00:00
{
stdenv,
lib,
fetchFromGitHub,
linux-pam,
libxcb,
makeBinaryWrapper,
zig_0_12,
callPackage,
nixosTests,
}:
stdenv.mkDerivation {
pname = "ly";
version = "1.0.2";
src = fetchFromGitHub {
2025-02-11 21:33:14 +00:00
owner = "peterc-s";
2025-02-11 21:28:25 +00:00
repo = "ly";
2025-02-11 21:33:14 +00:00
rev = "e6d8bea236dd0097adb1c22e9a23d95102ebe9d9";
2025-02-12 02:23:49 +00:00
sha256 = "w9YdNVD+8UhrEbPJ7xqsd/WoxU2rlo2GXFtc9JpWHxo=";
2025-02-11 21:28:25 +00:00
};
nativeBuildInputs = [
makeBinaryWrapper
zig_0_12.hook
];
buildInputs = [
libxcb
linux-pam
];
postPatch = ''
ln -s ${callPackage ./deps.nix { }} $ZIG_GLOBAL_CACHE_DIR/p
'';
passthru.tests = { inherit (nixosTests) ly; };
meta = with lib; {
description = "TUI display manager";
license = licenses.wtfpl;
homepage = "https://github.com/fairyglade/ly";
maintainers = [ maintainers.vidister ];
platforms = platforms.linux;
mainProgram = "ly";
};
}