Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nwg-look: init at 0.1.2 #169251

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1630,6 +1630,12 @@
githubId = 68566724;
name = "bootstrap-prime";
};
bnhrkn = {
name = "Ben Harkin";
email = "[email protected]";
github = "bnhrkn";
githubId = 56566825;
};
commandodev = {
email = "[email protected]";
github = "commandodev";
Expand Down
34 changes: 34 additions & 0 deletions pkgs/applications/system/nwg-look/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 { };
Expand Down