Hello guix users. I wanted to package the program nwg-look to edit my theme icons and others through a graphical interface because I am currently using Tiling Window Manager. nwg-look is written in GO and its repository is at [[https://github.com/nwg-piotr/nwg-look]], theoretically its compilation is simple because you only have to do one:
-make build -sudo make install and reading the Makefile I can also do this manually: build: go build -v -o bin/nwg-look . install mkdir -p $(DESTDIR)/usr/share/nwg-look mkdir -p $(DESTDIR)/usr/share/nwg-look/langs mkdir -p $(DESTDIR)/usr/bin mkdir -p $(DESTDIR)/usr/share/applications mkdir -p $(DESTDIR)/usr/share/pixmaps cp stuff/main.glade $(DESTDIR)/usr/share/nwg-look/ cp langs/* $(DESTDIR)/usr/share/nwg-look/langs/ cp stuff/nwg-look.desktop $(DESTDIR)/usr/share/applications/ cp stuff/nwgg-look.svg $(DESTDIR)/usr/share/pixmaps/ cp bin/nwg-look $(DESTDIR)/usr/bin Which you could do this manually but it is not suitable in SDGuix. Reading the documentation in the Manual and the Cookbook I could only rely on small sample examples to which I could come up with this ~nwg-look-osv.scm~ file. (use-modules (guix licenses) (guix utils) (guix packages) (guix download) (guix build-system go) (gnu packages golang) (gnu packages xorg) (gnu packages gtk) (gnu packages pkg-config)) (package (name "nwg-look-osv") (version "0.2.4") (source (origin (method url-fetch) (uri (string-append "https://github.com/nwg-piotr/nwg-look/releases/download/" "v" version "/nwg-look-v" version "_x86_64" ".tar.gz")) (sha256 (base32 "1iphamazdsvl1cp59y8sxa3iswradna6z6rmm25nmpy3nxxbkapc")))) (build-system go-build-system) (synopsis "This application is a part of the nwg-shell project") (description "GTK3 settings editor adapted to work in the wlroots environment") (home-page "https://github.com/nwg-piotr/nwg-look/") (arguments '(#:import-path "https://github.com/nwg-piotr/nwg-look/")) (inputs (list go gtk+ xcur2png pkg-config)) (license gpl3+)) But I can't get it to compile and install, if I do it manually in a ~guix shell go gtk+ xcur2png pkg-config~ and compile it on my own it does but I don't know how to install it and create the manifest. I don't have much notion in Go and packaging in Guix, but I guide from all the examples of others packages, I tried to do it with trivial-build-system but it was messing me up, if anyone has a help or comment I'm happy to answer. Sorry for my english I'm using a translator DeepL
