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-09-19 14:19:46 +00:00
|
|
|
version = "0.2.2";
|
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-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-iamDOQcQJRdFVnwffWPIXHlY0J4orfrEbfLzaoeV+KM=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
vendorHash = "sha256-cZ5w7B8bi0faOVWoQ6eeW5ejCZJgnNB91DQalC75mPo=";
|
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
|
|
|
};
|
|
|
|
}
|