nixpkgs/pkgs/applications/misc/nwg-dock-hyprland/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
1.0 KiB
Nix
Raw Normal View History

2023-06-01 21:18:11 +03:00
{ lib
, buildGoModule
, fetchFromGitHub
, pkg-config
, wrapGAppsHook3
2023-06-01 21:18:11 +03:00
, gtk-layer-shell
}:
buildGoModule rec {
pname = "nwg-dock-hyprland";
2024-08-24 07:46:14 +03:00
version = "0.2.2";
2023-06-01 21:18:11 +03:00
src = fetchFromGitHub {
owner = "nwg-piotr";
2024-06-03 12:22:01 +03:00
repo = "nwg-dock-hyprland";
2023-06-01 21:18:11 +03:00
rev = "v${version}";
2024-08-24 07:46:14 +03:00
hash = "sha256-iamDOQcQJRdFVnwffWPIXHlY0J4orfrEbfLzaoeV+KM=";
2023-06-01 21:18:11 +03:00
};
2024-08-16 13:30:29 +03:00
vendorHash = "sha256-cZ5w7B8bi0faOVWoQ6eeW5ejCZJgnNB91DQalC75mPo=";
2023-06-01 21:18:11 +03:00
ldflags = [ "-s" "-w" ];
nativeBuildInputs = [ pkg-config wrapGAppsHook3 ];
2023-06-01 21:18:11 +03:00
buildInputs = [ gtk-layer-shell ];
2024-06-03 12:22:01 +03: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-06-01 21:18:11 +03:00
description = "GTK3-based dock for Hyprland";
mainProgram = "nwg-dock-hyprland";
2023-06-01 21:18:11 +03:00
homepage = "https://github.com/nwg-piotr/nwg-dock-hyprland";
2024-06-03 12:22:01 +03:00
license = lib.licenses.mit;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ aleksana ];
2023-06-01 21:18:11 +03:00
};
}