depot/third_party/nixpkgs/pkgs/applications/misc/nwg-dock-hyprland/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

41 lines
1 KiB
Nix

{ lib
, buildGoModule
, fetchFromGitHub
, pkg-config
, wrapGAppsHook3
, gtk-layer-shell
}:
buildGoModule rec {
pname = "nwg-dock-hyprland";
version = "0.1.9";
src = fetchFromGitHub {
owner = "nwg-piotr";
repo = "nwg-dock-hyprland";
rev = "v${version}";
hash = "sha256-pzOdWv98tHZg6Xn58z5DlM1H0IOQ+ohfXEZRLZr8mz0=";
};
vendorHash = "sha256-bK3SpydIO943e7zti6yWQ+JqmdF4NkAAtelNBt4Q/+s=";
ldflags = [ "-s" "-w" ];
nativeBuildInputs = [ pkg-config wrapGAppsHook3 ];
buildInputs = [ gtk-layer-shell ];
postInstall = ''
install -d $out/share/nwg-dock-hyprland
cp -r images $out/share/nwg-dock-hyprland/images
install -Dm644 config/style.css $out/share/nwg-dock-hyprland/style.css
'';
meta = {
description = "GTK3-based dock for Hyprland";
mainProgram = "nwg-dock-hyprland";
homepage = "https://github.com/nwg-piotr/nwg-dock-hyprland";
license = lib.licenses.mit;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ aleksana ];
};
}