mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 17:23:08 +00:00
42 lines
1.0 KiB
Nix
42 lines
1.0 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 ];
|
|
};
|
|
}
|