73 lines
1.3 KiB
Nix
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;
|
||
|
|
};
|
||
|
|
})
|