2021-07-24 12:14:16 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cairo
|
|
|
|
, gobject-introspection
|
|
|
|
, gtk3
|
|
|
|
, gtk-layer-shell
|
2022-03-10 19:12:11 +00:00
|
|
|
, pkg-config
|
|
|
|
, wrapGAppsHook
|
|
|
|
, xdg-utils }:
|
2021-07-24 12:14:16 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "nwg-drawer";
|
2022-03-10 19:12:11 +00:00
|
|
|
version = "0.2.8";
|
2021-07-24 12:14:16 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nwg-piotr";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-03-10 19:12:11 +00:00
|
|
|
sha256 = "sha256-YhCMOktfsSb7GrKA8reZb+QHcNS/Lpd0hCaPqnWvL7w=";
|
2021-07-24 12:14:16 +00:00
|
|
|
};
|
|
|
|
|
2022-03-10 19:12:11 +00:00
|
|
|
vendorSha256 = "sha256-Twipdrt3XZVrzJvElEGbKaJRMnop8fIFMFnriPTSS14=";
|
2021-07-24 12:14:16 +00:00
|
|
|
|
|
|
|
buildInputs = [ cairo gobject-introspection gtk3 gtk-layer-shell ];
|
2022-03-10 19:12:11 +00:00
|
|
|
nativeBuildInputs = [ pkg-config wrapGAppsHook ];
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
mkdir -p $out/share/nwg-drawer
|
|
|
|
cp -r desktop-directories drawer.css $out/share/nwg-drawer
|
|
|
|
'';
|
|
|
|
|
|
|
|
preFixup = ''
|
2022-08-21 13:32:41 +00:00
|
|
|
# make xdg-open overrideable at runtime
|
2022-03-10 19:12:11 +00:00
|
|
|
gappsWrapperArgs+=(
|
2022-08-21 13:32:41 +00:00
|
|
|
--suffix PATH : ${xdg-utils}/bin
|
2022-03-10 19:12:11 +00:00
|
|
|
--prefix XDG_DATA_DIRS : $out/share
|
|
|
|
)
|
|
|
|
'';
|
2021-07-24 12:14:16 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Application drawer for sway Wayland compositor";
|
|
|
|
homepage = "https://github.com/nwg-piotr/nwg-drawer";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ plabadens ];
|
|
|
|
};
|
|
|
|
}
|