Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
66 lines
1.4 KiB
Nix
66 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
dbus,
|
|
openssl,
|
|
gtk4,
|
|
gtk4-layer-shell,
|
|
mimalloc,
|
|
glib,
|
|
pkg-config,
|
|
wrapGAppsHook4,
|
|
installShellFiles,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "dynisland";
|
|
version = "0.1.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cr3eperall";
|
|
repo = "dynisland";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-gO6QniPcv/250CD/cjEJPKijb4cg5R1mUvdrOqamEzk=";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
cargoHash = "sha256-cvGsRFaqeMdp2cxgfZZcB2r67Si2K6En4or9HVG4WwA=";
|
|
|
|
buildFeatures = [ "completions" ];
|
|
|
|
buildInputs = [
|
|
dbus
|
|
openssl
|
|
gtk4
|
|
gtk4-layer-shell
|
|
mimalloc
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
glib
|
|
rustPlatform.bindgenHook
|
|
rustPlatform.cargoSetupHook
|
|
pkg-config
|
|
wrapGAppsHook4
|
|
installShellFiles
|
|
];
|
|
|
|
postInstall = ''
|
|
installShellCompletion --cmd dynisland \
|
|
--bash ./target/dynisland.bash \
|
|
--fish ./target/dynisland.fish \
|
|
--zsh ./target/_dynisland
|
|
'';
|
|
|
|
meta = {
|
|
description = "Dynamic and extensible GTK4 layer-shell, written in Rust";
|
|
homepage = "https://github.com/cr3eperall/dynisland";
|
|
changelog = "https://github.com/cr3eperall/dynisland/releases/tag/${finalAttrs.version}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ ryand56 ];
|
|
mainProgram = "dynisland";
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
})
|