diff options
author | Aleksana <me@aleksana.moe> | 2024-04-04 20:40:37 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-04 20:40:37 +0800 |
commit | d60c18c5d952bee043cc0aa1d0d1144bdee9e695 (patch) | |
tree | f7e2d6b57c435bf362f8e430d3ff41e85794bc73 /pkgs/by-name/an | |
parent | 06c84fe1d97f6a89ad9697c5d179529bec94705a (diff) | |
parent | 6f9d07551c5802d23f085300caece82d5e393a32 (diff) |
Merge pull request #270197 from eclairevoyant/anyrun
anyrun: init at 0-unstable-2023-12-01
Diffstat (limited to 'pkgs/by-name/an')
-rw-r--r-- | pkgs/by-name/an/anyrun/package.nix | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/pkgs/by-name/an/anyrun/package.nix b/pkgs/by-name/an/anyrun/package.nix new file mode 100644 index 0000000000000..8d0ee80d7e8a7 --- /dev/null +++ b/pkgs/by-name/an/anyrun/package.nix @@ -0,0 +1,74 @@ +{ lib +, rustPlatform +, fetchFromGitHub +, pkg-config +, wrapGAppsHook +, atk +, cairo +, gdk-pixbuf +, glib +, gtk3 +, pango +, stdenv +, darwin +, wayland +, gtk-layer-shell +, unstableGitUpdater +}: + +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 + wrapGAppsHook + ]; + + buildInputs = [ + atk + cairo + gdk-pixbuf + glib + gtk3 + gtk-layer-shell + pango + ] ++ lib.optionals stdenv.isDarwin [ + darwin.apple_sdk.frameworks.Security + ] ++ lib.optionals stdenv.isLinux [ + wayland + ]; + + preFixup = '' + gappsWrapperArgs+=( + --prefix ANYRUN_PLUGINS : $out/lib + ) + ''; + + postInstall = '' + install -Dm444 anyrun/res/style.css examples/config.ron -t $out/share/doc/${pname}/examples/ + ''; + + passthru.updateScript = unstableGitUpdater { }; + + meta = { + description = "A wayland-native, highly customizable runner"; + homepage = "https://github.com/kirottu/anyrun"; + license = lib.licenses.gpl3Only; + maintainers = with lib.maintainers; [ eclairevoyant NotAShelf ]; + mainProgram = "anyrun"; + }; +} |