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