nixpkgs-suyu/pkgs/applications/misc/nwg-drawer/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

50 lines
1.1 KiB
Nix
Raw Normal View History

2021-07-18 16:57:50 +02:00
{ lib
, buildGoModule
, fetchFromGitHub
, cairo
, gobject-introspection
, gtk3
, gtk-layer-shell
2022-01-15 16:23:11 +01:00
, pkg-config
, wrapGAppsHook
, xdg-utils }:
2021-07-18 16:57:50 +02:00
buildGoModule rec {
pname = "nwg-drawer";
2022-01-15 16:23:11 +01:00
version = "0.2.8";
2021-07-18 16:57:50 +02:00
src = fetchFromGitHub {
owner = "nwg-piotr";
repo = pname;
rev = "v${version}";
2022-01-15 16:23:11 +01:00
sha256 = "sha256-YhCMOktfsSb7GrKA8reZb+QHcNS/Lpd0hCaPqnWvL7w=";
2021-07-18 16:57:50 +02:00
};
2022-01-15 16:23:11 +01:00
vendorSha256 = "sha256-Twipdrt3XZVrzJvElEGbKaJRMnop8fIFMFnriPTSS14=";
2021-07-18 16:57:50 +02:00
buildInputs = [ cairo gobject-introspection gtk3 gtk-layer-shell ];
2022-01-15 16:23:11 +01: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 = ''
gappsWrapperArgs+=(
--prefix PATH : ${xdg-utils}/bin
--prefix XDG_DATA_DIRS : $out/share
)
'';
2021-07-18 16:57:50 +02: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 ];
};
}