veila: init at 0.4.0 (#511803)

This commit is contained in:
Sandro
2026-05-25 21:20:05 +00:00
committed by GitHub
2 changed files with 75 additions and 0 deletions
+6
View File
@@ -19244,6 +19244,12 @@
name = "Naufal Fikri";
keys = [ { fingerprint = "1575 D651 E31EC 6117A CF0AA C1A3B 8BBC A515 8835"; } ];
};
naurissteins = {
name = "Nauris Steins";
email = "me@naurissteins.com";
github = "naurissteins";
githubId = 5653746;
};
naxdy = {
name = "Naxdy";
email = "naxdy@naxdy.org";
+69
View File
@@ -0,0 +1,69 @@
{
lib,
rustPlatform,
fetchFromGitHub,
makeWrapper,
nix-update-script,
pkg-config,
pam,
wayland,
libxkbcommon,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "veila";
version = "0.4.0";
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "naurissteins";
repo = "Veila";
tag = finalAttrs.version;
hash = "sha256-SrYG5rvywiPEfIjTbZfXOlXqnmdn0fZcOR16fxHJ0Ns=";
};
cargoHash = "sha256-jcZ33dJwvK94YqMFpXb9QXURjtOGrY4QdZh0I9LTwUU=";
nativeBuildInputs = [
makeWrapper
pkg-config
];
buildInputs = [
pam
wayland
libxkbcommon
];
cargoBuildFlags = [ "--workspace" ];
postInstall = ''
pushd assets
for assetDir in fonts icons systemd themes; do
find "$assetDir" -type d -exec install -d "$out/share/veila/{}" ';'
find "$assetDir" -type f -exec install -Dm644 "{}" "$out/share/veila/{}" ';'
done
popd
wrapProgram "$out/bin/veila" \
--set VEILA_ASSET_DIR "$out/share/veila"
wrapProgram "$out/bin/veila-curtain" \
--set VEILA_ASSET_DIR "$out/share/veila"
wrapProgram "$out/bin/veilad" \
--set VEILA_ASSET_DIR "$out/share/veila" \
--set VEILA_CURTAIN_BIN "$out/bin/veila-curtain"
'';
passthru.updateScript = nix-update-script { };
meta = {
description = "Screen locker for Wayland compositors";
homepage = "https://naurissteins.com/veila";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ naurissteins ];
platforms = lib.platforms.linux;
mainProgram = "veila";
};
})