From 159a634719166fe15b24f13d1f102a4704942cb9 Mon Sep 17 00:00:00 2001 From: Mostly Void <7rat13@gmail.com> Date: Wed, 16 Nov 2022 00:54:37 +0530 Subject: [PATCH] nwg-dock: init at 0.3.2 --- pkgs/applications/misc/nwg-dock/default.nix | 34 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 36 insertions(+) create mode 100644 pkgs/applications/misc/nwg-dock/default.nix diff --git a/pkgs/applications/misc/nwg-dock/default.nix b/pkgs/applications/misc/nwg-dock/default.nix new file mode 100644 index 000000000000..32361b276b20 --- /dev/null +++ b/pkgs/applications/misc/nwg-dock/default.nix @@ -0,0 +1,34 @@ +{ lib +, buildGoModule +, fetchFromGitHub +, pkg-config +, gtk3 +, gtk-layer-shell +}: + +buildGoModule rec { + pname = "nwg-dock"; + version = "0.3.2"; + + src = fetchFromGitHub { + owner = "nwg-piotr"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-X2AhzQsgUWHkPp1YoAxcbq+Oni9C6Yrnyt+Plxya8OI="; + }; + + vendorSha256 = "sha256-5vGfWEBiC3ZJzVTHaOPbaaK/9+yg7Nj0mpbJbYpbY/A="; + + ldflags = [ "-s" "-w" ]; + + nativeBuildInputs = [ pkg-config ]; + buildInputs = [ gtk3 gtk-layer-shell ]; + + meta = with lib; { + description = "GTK3-based dock for sway"; + homepage = "https://github.com/nwg-piotr/nwg-dock"; + license = licenses.mit; + platforms = platforms.linux; + maintainers = with maintainers; [ dit7ya ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index cc052e938a44..16b5aae1207f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -30682,6 +30682,8 @@ with pkgs; nwg-bar = callPackage ../applications/misc/nwg-bar { }; + nwg-dock = callPackage ../applications/misc/nwg-dock { }; + nwg-drawer = callPackage ../applications/misc/nwg-drawer { }; nwg-launchers = callPackage ../applications/misc/nwg-launchers { };