depot/pkgs/by-name/nw/nwg-dock-hyprland/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

49 lines
1 KiB
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
pkg-config,
wrapGAppsHook3,
gtk-layer-shell,
}:
buildGoModule rec {
pname = "nwg-dock-hyprland";
version = "0.3.2";
src = fetchFromGitHub {
owner = "nwg-piotr";
repo = "nwg-dock-hyprland";
rev = "refs/tags/v${version}";
hash = "sha256-Vp8JmRQf71vezdknzifxlK7zTlorwiEHsyXpmy6mxIE=";
};
vendorHash = "sha256-RBU0l4YRtV5JPH1dLT+lZ05jmxRwyn3glMUKHw1Eg8g=";
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 ];
};
}