mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 16:53:21 +00:00
eb04659fc2
This was achieved using the following command: sd 'wrapGAppsHook\b' wrapGAppsHook3 (rg -l 'wrapGAppsHook\b') And then manually reverted the following changes: - alias in top-level.nix - function name in wrap-gapps-hook.sh - comment in postFixup of at-spi2-core - comment in gtk4 - comment in preFixup of 1password-gui/linux.nix - comment in postFixup of qgis/unwrapped-ltr.nix and qgis/unwrapped.nix - comment in postFixup of telegram-desktop - comment in postFixup of fwupd - buildCommand of mongodb-compass - postFixup of xflux-gui - comment in a patch in kdePackages.kde-gtk-config and plasma5Packages.kde-gtk-config - description of programs.sway.wrapperFeatures.gtk NixOS option (manual rebuild)
75 lines
1.4 KiB
Nix
75 lines
1.4 KiB
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, wrapGAppsHook3
|
|
, 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
|
|
wrapGAppsHook3
|
|
];
|
|
|
|
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";
|
|
};
|
|
}
|