2024-09-19 14:19:46 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, linux-pam, libxcb, makeBinaryWrapper, zig_0_12
|
|
|
|
, callPackage, nixosTests }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
stdenv.mkDerivation {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "ly";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "1.0.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2023-07-15 17:15:38 +00:00
|
|
|
owner = "fairyglade";
|
2020-04-24 23:36:52 +00:00
|
|
|
repo = "ly";
|
2024-09-19 14:19:46 +00:00
|
|
|
rev = "v1.0.2";
|
|
|
|
hash = "sha256-VUtNEL7Te/ba+wvL0SsUHlyv2NPmkYKs76TnW8r3ysw=";
|
2021-01-15 22:18:51 +00:00
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
nativeBuildInputs = [ makeBinaryWrapper zig_0_12.hook ];
|
2023-07-15 17:15:38 +00:00
|
|
|
buildInputs = [ libxcb linux-pam ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
postPatch = ''
|
|
|
|
ln -s ${callPackage ./deps.nix { }} $ZIG_GLOBAL_CACHE_DIR/p
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
passthru.tests = { inherit (nixosTests) ly; };
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "TUI display manager";
|
|
|
|
license = licenses.wtfpl;
|
2023-07-15 17:15:38 +00:00
|
|
|
homepage = "https://github.com/fairyglade/ly";
|
2021-08-25 08:27:29 +00:00
|
|
|
maintainers = [ maintainers.vidister ];
|
2023-07-15 17:15:38 +00:00
|
|
|
platforms = platforms.linux;
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "ly";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|