add a wip lucem package

This commit is contained in:
cswimr 2025-01-28 06:41:56 -06:00
parent e4f615089c
commit bc08be1fd1
Signed by: cswimr
GPG key ID: 0EC431A8DA8F8087

55
packages/lucem.nix Normal file
View file

@ -0,0 +1,55 @@
{
pkgs,
lib,
...
}:
pkgs.stdenv.mkDerivation rec {
pname = "lucem";
version = "2.1.2";
src = pkgs.fetchFromGitHub {
owner = "xTrayambak";
repo = "lucem";
rev = version;
hash = "sha256-31EdtCQftxhpp2b7fpM5XqRh+r0rBE/k9SpYEPpGpV0=";
};
nativeBuildInputs = with pkgs; [
gtk4.dev
libadwaita.dev
pkg-config
openssl.dev
curl.dev
xorg.libX11
xorg.libXcursor.dev
xorg.libXrender
xorg.libXext
libxkbcommon
libGL.dev
wayland.dev
wayland-protocols
wayland-scanner.dev
nimble
];
buildPhase = ''
runHook preBuild
nimble build
runHook postBuild
'';
installPhase = ''
runHook preInstall
runHook postInstall
'';
meta = {
description = "An open-source bootstrapper for Sober, similar to Bloxstrap.";
homepage = "https://github.com/xTrayambak/lucem";
downloadPage = "https://github.com/xTrayambak/lucem/releases/tag/${version}";
license = lib.licenses.mit; # https://github.com/xTrayambak/lucem/blob/31f996b64edafba1d75e16130bcb14576a326ebd/lucem.nimble#L6
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ cswimr ];
mainProgram = "lucem";
};
}