2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
2024-05-15 15:35:15 +00:00
|
|
|
, wrapGAppsHook3
|
2023-07-15 17:15:38 +00:00
|
|
|
, gtk-layer-shell
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "nwg-dock-hyprland";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "0.1.9";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nwg-piotr";
|
2024-06-20 14:57:18 +00:00
|
|
|
repo = "nwg-dock-hyprland";
|
2023-07-15 17:15:38 +00:00
|
|
|
rev = "v${version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
hash = "sha256-pzOdWv98tHZg6Xn58z5DlM1H0IOQ+ohfXEZRLZr8mz0=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
vendorHash = "sha256-bK3SpydIO943e7zti6yWQ+JqmdF4NkAAtelNBt4Q/+s=";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
nativeBuildInputs = [ pkg-config wrapGAppsHook3 ];
|
2023-07-15 17:15:38 +00:00
|
|
|
buildInputs = [ gtk-layer-shell ];
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
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 = {
|
2023-07-15 17:15:38 +00:00
|
|
|
description = "GTK3-based dock for Hyprland";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "nwg-dock-hyprland";
|
2023-07-15 17:15:38 +00:00
|
|
|
homepage = "https://github.com/nwg-piotr/nwg-dock-hyprland";
|
2024-06-20 14:57:18 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
maintainers = with lib.maintainers; [ aleksana ];
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
}
|