2024-11-12 18:15:33 -07:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
rustPlatform,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pkg-config,
|
|
|
|
wrapGAppsHook3,
|
|
|
|
atk,
|
|
|
|
cairo,
|
|
|
|
gdk-pixbuf,
|
|
|
|
glib,
|
|
|
|
gtk3,
|
|
|
|
pango,
|
|
|
|
stdenv,
|
|
|
|
wayland,
|
|
|
|
gtk-layer-shell,
|
|
|
|
unstableGitUpdater,
|
2023-11-26 10:02:10 -07:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "anyrun";
|
|
|
|
version = "0-unstable-2023-12-01";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kirottu";
|
|
|
|
repo = "anyrun";
|
|
|
|
rev = "e14da6c37337ffa3ee1bc66965d58ef64c1590e5";
|
|
|
|
hash = "sha256-hI9+KBShsSfvWX7bmRa/1VI20WGat3lDXmbceMZzMS4=";
|
|
|
|
};
|
|
|
|
|
|
|
|
cargoHash = "sha256-apOQc9Z6YANoaeKcbNxBfAv7mmGFB+CagrYRPgC5wLY=";
|
|
|
|
|
|
|
|
strictDeps = true;
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
2024-04-26 14:24:03 -06:00
|
|
|
wrapGAppsHook3
|
2023-11-26 10:02:10 -07:00
|
|
|
];
|
|
|
|
|
2024-11-12 18:17:58 -07:00
|
|
|
buildInputs = [
|
|
|
|
atk
|
|
|
|
cairo
|
|
|
|
gdk-pixbuf
|
|
|
|
glib
|
|
|
|
gtk3
|
|
|
|
gtk-layer-shell
|
|
|
|
pango
|
|
|
|
wayland
|
|
|
|
];
|
2023-11-26 10:02:10 -07:00
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
gappsWrapperArgs+=(
|
|
|
|
--prefix ANYRUN_PLUGINS : $out/lib
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
2024-08-20 16:56:55 -06:00
|
|
|
install -Dm444 anyrun/res/style.css examples/config.ron -t $out/share/doc/anyrun/examples/
|
2023-11-26 10:02:10 -07:00
|
|
|
'';
|
|
|
|
|
|
|
|
passthru.updateScript = unstableGitUpdater { };
|
|
|
|
|
|
|
|
meta = {
|
2024-06-07 01:46:46 -06:00
|
|
|
description = "Wayland-native, highly customizable runner";
|
2023-11-26 10:02:10 -07:00
|
|
|
homepage = "https://github.com/kirottu/anyrun";
|
|
|
|
license = lib.licenses.gpl3Only;
|
2024-10-23 22:49:47 -06:00
|
|
|
maintainers = with lib.maintainers; [
|
|
|
|
khaneliman
|
|
|
|
NotAShelf
|
|
|
|
];
|
2023-11-26 10:02:10 -07:00
|
|
|
mainProgram = "anyrun";
|
2024-11-12 18:17:58 -07:00
|
|
|
platforms = lib.platforms.linux;
|
2023-11-26 10:02:10 -07:00
|
|
|
};
|
|
|
|
}
|