mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-06-24 11:41:24 +02:00
Add nwg-dock-hyprland
Based on https://github.com/NixOS/nixpkgs/pull/201362
This commit is contained in:
parent
ff1abe7eec
commit
908a1c922f
@ -9,6 +9,7 @@
|
|||||||
./gtk
|
./gtk
|
||||||
./hyprland
|
./hyprland
|
||||||
./mozc
|
./mozc
|
||||||
|
./nwg-dock
|
||||||
./pipewire
|
./pipewire
|
||||||
./rofi
|
./rofi
|
||||||
./stylix
|
./stylix
|
||||||
|
7
desktop/nwg-dock/default.nix
Normal file
7
desktop/nwg-dock/default.nix
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
(pkgs.callPackage ./package {})
|
||||||
|
];
|
||||||
|
}
|
34
desktop/nwg-dock/package/default.nix
Normal file
34
desktop/nwg-dock/package/default.nix
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
{ lib
|
||||||
|
, buildGoModule
|
||||||
|
, fetchFromGitHub
|
||||||
|
, pkg-config
|
||||||
|
, gtk3
|
||||||
|
, gtk-layer-shell
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildGoModule rec {
|
||||||
|
pname = "nwg-dock-hyprland";
|
||||||
|
version = "0.1.2";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "nwg-piotr";
|
||||||
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "sha256-7vdfxE3X2J7bDLzose0dKmjxNQhS5+/ROky9wkK1gc0=";
|
||||||
|
};
|
||||||
|
|
||||||
|
vendorSha256 = "sha256-GhcrIVnZRbiGTfeUAWvslOVWDZmoL0ZRnjgTtQgxe2Q=";
|
||||||
|
|
||||||
|
ldflags = [ "-s" "-w" ];
|
||||||
|
|
||||||
|
nativeBuildInputs = [ pkg-config ];
|
||||||
|
buildInputs = [ gtk3 gtk-layer-shell ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "GTK3-based dock for hyprland";
|
||||||
|
homepage = "https://github.com/nwg-piotr/nwg-dock-hyprland";
|
||||||
|
license = licenses.mit;
|
||||||
|
platforms = platforms.linux;
|
||||||
|
maintainers = with maintainers; [ dit7ya ];
|
||||||
|
};
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user