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.

51 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";
2023-01-29 11:32:19 +00:00
version = "0.3.8";
2021-07-18 14:57:50 +00:00
src = fetchFromGitHub {
owner = "nwg-piotr";
repo = pname;
rev = "v${version}";
2023-01-29 11:32:19 +00:00
sha256 = "sha256-34C0JmsPuDqR3QGmGf14naGOu9xPtPbpdWUvkbilkqs=";
2021-07-18 14:57:50 +00:00
};
2023-01-14 13:27:13 +00:00
vendorHash = "sha256-RehZ86XuFs1kbm9V3cgPz1SPG3izK7/6fHQjPTHOYZs=";
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 = ''
# make xdg-open overrideable at runtime
2022-01-15 15:23:11 +00:00
gappsWrapperArgs+=(
--suffix PATH : ${xdg-utils}/bin
2022-01-15 15:23:11 +00:00
--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 ];
};
}