biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / applications / misc / nwg-dock-hyprland / default.nix
blob34bbf45e8ebd2823ff5f7470213241e9e9adc7a1
1 { lib
2 , buildGoModule
3 , fetchFromGitHub
4 , pkg-config
5 , wrapGAppsHook3
6 , gtk-layer-shell
7 }:
9 buildGoModule rec {
10   pname = "nwg-dock-hyprland";
11   version = "0.2.2";
13   src = fetchFromGitHub {
14     owner = "nwg-piotr";
15     repo = "nwg-dock-hyprland";
16     rev = "v${version}";
17     hash = "sha256-iamDOQcQJRdFVnwffWPIXHlY0J4orfrEbfLzaoeV+KM=";
18   };
20   vendorHash = "sha256-cZ5w7B8bi0faOVWoQ6eeW5ejCZJgnNB91DQalC75mPo=";
22   ldflags = [ "-s" "-w" ];
24   nativeBuildInputs = [ pkg-config wrapGAppsHook3 ];
25   buildInputs = [ gtk-layer-shell ];
27   postInstall = ''
28     install -d $out/share/nwg-dock-hyprland
29     cp -r images $out/share/nwg-dock-hyprland/images
30     install -Dm644 config/style.css $out/share/nwg-dock-hyprland/style.css
31   '';
33   meta = {
34     description = "GTK3-based dock for Hyprland";
35     mainProgram = "nwg-dock-hyprland";
36     homepage = "https://github.com/nwg-piotr/nwg-dock-hyprland";
37     license = lib.licenses.mit;
38     platforms = lib.platforms.linux;
39     maintainers = with lib.maintainers; [ aleksana ];
40   };