vifm: 0.13 -> 0.14 (#380559)
[NixPkgs.git] / pkgs / by-name / nw / nwg-dock-hyprland / package.nix
blob2cc7265359e6271a9c81b921328fdd261c9ecb0c
2   lib,
3   buildGoModule,
4   fetchFromGitHub,
5   pkg-config,
6   wrapGAppsHook3,
7   gobject-introspection,
8   gtk-layer-shell,
9 }:
11 buildGoModule rec {
12   pname = "nwg-dock-hyprland";
13   version = "0.4.3";
15   src = fetchFromGitHub {
16     owner = "nwg-piotr";
17     repo = "nwg-dock-hyprland";
18     tag = "v${version}";
19     hash = "sha256-l2JB+CmdQg/bDXneJ+rjv4z6xjB+BERh0rLZFETCMtE=";
20   };
22   vendorHash = "sha256-3ubDvtl/FvVyoRMRNBhwCoIJkJNFvlrWue+cNNGe5eI=";
24   ldflags = [
25     "-s"
26     "-w"
27   ];
29   nativeBuildInputs = [
30     gobject-introspection
31     pkg-config
32     wrapGAppsHook3
33   ];
35   buildInputs = [ gtk-layer-shell ];
37   postInstall = ''
38     install -d $out/share/nwg-dock-hyprland
39     cp -r images $out/share/nwg-dock-hyprland/images
40     install -Dm644 config/style.css $out/share/nwg-dock-hyprland/style.css
41   '';
43   meta = {
44     description = "GTK3-based dock for Hyprland";
45     mainProgram = "nwg-dock-hyprland";
46     homepage = "https://github.com/nwg-piotr/nwg-dock-hyprland";
47     license = lib.licenses.mit;
48     platforms = lib.platforms.linux;
49     maintainers = with lib.maintainers; [ aleksana ];
50   };