diff options
author | Seong Yong-ju <sei40kr@gmail.com> | 2022-01-16 01:26:33 +0900 |
---|---|---|
committer | Seong Yong-ju <sei40kr@gmail.com> | 2022-03-10 23:26:01 +0900 |
commit | 512483d9108b430db9d6fba09ae2676b095c5473 (patch) | |
tree | 03d54640bc6b8cf54483dcaf5e8d515873725598 /pkgs/applications/misc/nwg-bar/default.nix | |
parent | 9548cdc0a529b3df4baba3f34f631e404d0d1b22 (diff) |
nwg-bar: init at unstable-2021-09-23
Diffstat (limited to 'pkgs/applications/misc/nwg-bar/default.nix')
-rw-r--r-- | pkgs/applications/misc/nwg-bar/default.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/applications/misc/nwg-bar/default.nix b/pkgs/applications/misc/nwg-bar/default.nix new file mode 100644 index 0000000000000..28e736b008fb4 --- /dev/null +++ b/pkgs/applications/misc/nwg-bar/default.nix @@ -0,0 +1,39 @@ +{ lib, buildGoModule, fetchFromGitHub, pkg-config, gtk3, gtk-layer-shell }: + +buildGoModule rec { + pname = "nwg-bar"; + version = "unstable-2021-09-23"; + + src = fetchFromGitHub { + owner = "nwg-piotr"; + repo = pname; + rev = "7dd7df3cd9a9e78fe477e88e0f3cb97309d50ff5"; + sha256 = "sha256-piysF19WDjb/EGI9MBepYrOrQL9C1fsoq05AP8CYN58="; + }; + + patches = [ ./fix-paths.patch ]; + postPatch = '' + substituteInPlace config/bar.json --subst-var out + substituteInPlace tools.go --subst-var out + ''; + + vendorSha256 = "sha256-dgOwflNRb+11umFykozL8DQ50dLbhbMCmCyKmLlW7rw="; + + nativeBuildInputs = [ pkg-config ]; + + buildInputs = [ gtk3 gtk-layer-shell ]; + + preInstall = '' + mkdir -p $out/share/nwg-bar + cp -r config/* images $out/share/nwg-bar + ''; + + meta = with lib; { + description = + "GTK3-based button bar for sway and other wlroots-based compositors"; + homepage = "https://github.com/nwg-piotr/nwg-bar"; + license = licenses.mit; + platforms = platforms.linux; + maintainers = with maintainers; [ sei40kr ]; + }; +} |