diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 287a20b2f0489..84e0bd2513a43 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -1630,6 +1630,12 @@ githubId = 68566724; name = "bootstrap-prime"; }; + bnhrkn = { + name = "Ben Harkin"; + email = "github@harkin.tk"; + github = "bnhrkn"; + githubId = 56566825; + }; commandodev = { email = "ben@perurbis.com"; github = "commandodev"; diff --git a/pkgs/applications/system/nwg-look/default.nix b/pkgs/applications/system/nwg-look/default.nix new file mode 100644 index 0000000000000..41400086f9c0c --- /dev/null +++ b/pkgs/applications/system/nwg-look/default.nix @@ -0,0 +1,34 @@ +# users.mutableUsers must be true in configuration.nix or the program will crash when saving settings +{lib, buildGoModule, fetchFromGitHub, pkg-config, go, gtk3, xcur2png, glib, cairo }: + +buildGoModule rec { + pname = "nwg-look"; + version = "0.1.2"; + + src = fetchFromGitHub { + owner = "nwg-piotr"; + repo = "${pname}"; + rev = "v${version}"; + sha256 = "0zz4bz31r1m3ckmgdpbi0p69sca43c3zpbaa19pxp3lnixcr3542"; + }; + nativeBuildInputs = [ pkg-config go ]; + buildInputs = [ gtk3 xcur2png glib cairo ]; + vendorSha256 = "sha256-XEgPeJ8zlaadl+yuAOlbzsBECs/c8cjBja+sZkTsg60="; + postPatch = '' + substituteInPlace ./main.go --replace \ + /usr/share/${pname}/main.glade $out/share/${pname}/main.glade + ''; + + postInstall = '' + install -D --mode=444 ./stuff/main.glade $out/share/${pname}/main.glade + install -D --mode=444 ./stuff/${pname}.desktop $out/share/applications/${pname}.desktop + install -D --mode=444 ./stuff/${pname}.svg $out/share/pixmaps/${pname}.svg + ''; + + meta = with lib; { + description = "GTK3 settings editor adapted to work in the sway / wlroots environment"; + homepage = "https://github.com/nwg-piotr/nwg-look"; + license = licenses.mit; + maintainers = with lib.maintainers; [ bnhrkn ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 7717c2bc7fe17..92de742fe816b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2185,6 +2185,8 @@ with pkgs; glances = python3Packages.callPackage ../applications/system/glances { }; + nwg-look = callPackage ../applications/system/nwg-look { }; + glasgow = with python3Packages; toPythonApplication glasgow; gmid = callPackage ../servers/gemini/gmid { };