20 src = fetchFromGitHub {
24 hash = "sha256-kOoYhJKt7/BsQ0/RuVhj0bWnX9GU8ET3MSq6NMCOw5E=";
27 vendorHash = "sha256-V0KXK6jxBYI+tixBLq24pJJcnu4gDF6nfyns2IBTss4=";
29 # Replace /usr/ directories with the packages output location
30 # This means it references the correct path
31 patches = [ ./fix-paths.patch ];
34 substituteInPlace main.go tools.go --replace '@out@' $out
37 ldflags = [ "-s" "-w" ];
55 mkdir -p $out/share/nwg-look/langs
56 mkdir -p $out/share/applications
57 mkdir -p $out/share/pixmaps
58 cp stuff/main.glade $out/share/nwg-look/
59 cp langs/* $out/share/nwg-look/langs
60 cp stuff/nwg-look.desktop $out/share/applications
61 cp stuff/nwg-look.svg $out/share/pixmaps
65 homepage = "https://github.com/nwg-piotr/nwg-look";
66 description = "Nwg-look is a GTK3 settings editor, designed to work properly in wlroots-based Wayland environment.";
67 license = licenses.mit;
68 platforms = platforms.linux;
69 maintainers = with maintainers; [ max-amb ];
70 mainProgram = "nwg-look";