mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01: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)
64 lines
1.3 KiB
Nix
64 lines
1.3 KiB
Nix
{ lib
|
|
, buildGoModule
|
|
, cairo
|
|
, fetchFromGitHub
|
|
, gobject-introspection
|
|
, gtk-layer-shell
|
|
, gtk3
|
|
, pkg-config
|
|
, wrapGAppsHook3
|
|
, xdg-utils
|
|
}:
|
|
|
|
let
|
|
pname = "nwg-drawer";
|
|
version = "0.4.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nwg-piotr";
|
|
repo = "nwg-drawer";
|
|
rev = "v${version}";
|
|
hash = "sha256-rBb2ArjllCBO2+9hx3f/c+uUQD1nCZzzfQGz1Wovy/0=";
|
|
};
|
|
|
|
vendorHash = "sha256-L8gdJd5cPfQrcSXLxFx6BAVWOXC8HRuk5fFQ7MsKpIc=";
|
|
in
|
|
buildGoModule {
|
|
inherit pname version src vendorHash;
|
|
|
|
nativeBuildInputs = [
|
|
gobject-introspection
|
|
pkg-config
|
|
wrapGAppsHook3
|
|
];
|
|
|
|
buildInputs = [
|
|
cairo
|
|
gtk-layer-shell
|
|
gtk3
|
|
];
|
|
|
|
doCheck = false; # Too slow
|
|
|
|
preInstall = ''
|
|
mkdir -p $out/share/nwg-drawer
|
|
cp -r desktop-directories drawer.css $out/share/nwg-drawer
|
|
'';
|
|
|
|
preFixup = ''
|
|
# make xdg-open overrideable at runtime
|
|
gappsWrapperArgs+=(
|
|
--suffix PATH : ${xdg-utils}/bin
|
|
--prefix XDG_DATA_DIRS : $out/share
|
|
)
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Application drawer for sway Wayland compositor";
|
|
homepage = "https://github.com/nwg-piotr/nwg-drawer";
|
|
license = with lib.licenses; [ mit ];
|
|
mainProgram = "nwg-drawer";
|
|
maintainers = with lib.maintainers; [ AndersonTorres ];
|
|
platforms = with lib.platforms; linux;
|
|
};
|
|
}
|