depot/third_party/nixpkgs/pkgs/by-name/an/anyrun/package.nix
Luke Granger-Brown f92e137cfb
Some checks failed
/ combine-systems (push) Blocked by required conditions
/ build (x86_64-linux) (push) Failing after 11m44s
/ build (aarch64-linux) (push) Failing after 11m50s
/ build (push) Failing after 16m42s
Merge commit '1e2ed035f4bebc9adad02b365508ad96f7df87c1' into HEAD
2025-03-02 02:23:32 +00:00

75 lines
1.4 KiB
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
wrapGAppsHook3,
atk,
cairo,
gdk-pixbuf,
glib,
gtk3,
pango,
wayland,
gtk-layer-shell,
nix-update-script,
}:
rustPlatform.buildRustPackage {
pname = "anyrun";
version = "0-unstable-2024-12-27";
src = fetchFromGitHub {
owner = "kirottu";
repo = "anyrun";
rev = "06017e753c8886d5296768dca80745ee09402a2d";
hash = "sha256-jU88Q9tP4vuvWYGQcmOdFwI9e2uMPVYJHbXdiklIH9o=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-ouAeoSCmkvWgxAUA/VYITm9/XvxmN+TdyZgEGgBGdKI=";
strictDeps = true;
enableParallelBuilding = true;
doCheck = true;
nativeBuildInputs = [
pkg-config
wrapGAppsHook3
];
buildInputs = [
atk
cairo
gdk-pixbuf
glib
gtk3
gtk-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 { extraArgs = [ "--version=branch" ]; };
meta = {
description = "Wayland-native, highly customizable runner";
homepage = "https://github.com/kirottu/anyrun";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [
khaneliman
NotAShelf
];
mainProgram = "anyrun";
platforms = lib.platforms.linux;
};
}