Files
nixpkgs/pkgs/by-name/an/anyrun/package.nix
Dark Steveneq 646b892680
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
push sheeet
2025-10-09 14:15:47 +02:00

73 lines
1.3 KiB
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
wrapGAppsHook4,
cairo,
gdk-pixbuf,
glib,
gtk4,
pango,
wayland,
gtk4-layer-shell,
nix-update-script,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "anyrun";
version = "25.9.3";
src = fetchFromGitHub {
owner = "anyrun-org";
repo = "anyrun";
tag = "v${finalAttrs.version}";
hash = "sha256-IlnFA/a9Clgbt+FuavIKWtauhtH4Fo/rGJIjJDDeYRs=";
};
cargoHash = "sha256-gP324zqfoNSYKIuTJFTWRr2fKBreVZFfZNR+jUasp/8=";
strictDeps = true;
enableParallelBuilding = true;
doCheck = true;
nativeBuildInputs = [
pkg-config
wrapGAppsHook4
];
buildInputs = [
cairo
gdk-pixbuf
glib
gtk4
gtk4-layer-shell
pango
wayland
];
preFixup = ''
gappsWrapperArgs+=(
--prefix ANYRUN_PLUGINS : $out/lib
)
'';
postInstall = ''
install -Dm444 anyrun/res/style.css examples/config.ron -t $out/share/doc/anyrun/examples/
'';
passthru.updateScript = nix-update-script { };
meta = {
description = "Wayland-native, highly customizable runner";
homepage = "https://github.com/anyrun-org/anyrun";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [
khaneliman
NotAShelf
];
mainProgram = "anyrun";
platforms = lib.platforms.linux;
};
})