Change:
Package name: darkman Latest released version: 2.0.1 Current version on the unstable channel: 1.5.4 Current version on the stable/release channel: 1.5.4 Notify maintainers Note for maintainers: Please tag this issue in your PR. Add a :+1: [reaction] to [issues you find important]. [reaction]: [issues you find important]:
Updating this package will resolve nix-community/home-manager too.
I've had a go at updating this but failed at the same point as . I don't know enough about nix or go to take it any further right now though. The part of the go language framework seems to be using a really old version of go (1.16) to try to build the package, which is not able to compile the code:

Discussion:
<del> { lib, fetchFromGitLab, buildGoModule, scdoc, nix-update-script }: </del> <ins> { lib , fetchFromGitLab , buildGoModule , scdoc , nix-update-script }: </ins> buildGoModule rec { pname = "darkman"; <del> version = "1.5.4"; </del> <ins> version = "2.0.1"; </ins> src = fetchFromGitLab { owner = "WhyNotHugo"; repo = "darkman"; rev = "v${version}"; <del> sha256 = "sha256-6SNXVe6EfVwcXH9O6BxNw+v4/uhKhCtVS3XE2GTc2Sc="; </del> <ins> sha256 = "sha256-FaEpVy/0PqY5Bmw00hMyFZb9wcwYwEuCKMatYN8Xk3o="; </ins> }; <del> vendorHash = "sha256-xEPmNnaDwFU4l2G4cMvtNeQ9KneF5g9ViQSFrDkrafY="; nativeBuildInputs = [ scdoc ]; </del> <ins> patches = [ ./go-mod.patch ./makefile.patch ]; </ins> postPatch = '' substituteInPlace darkman.service  <del> --replace "/usr/bin/darkman" "$out/bin/darkman" </del> <ins> --replace-fail /usr/bin/darkman $out/bin/darkman </ins> substituteInPlace contrib/dbus/nl.whynothugo.darkman.service  <del> --replace "/usr/bin/darkman" "$out/bin/darkman" </del> <ins> --replace-fail /usr/bin/darkman $out/bin/darkman </ins> substituteInPlace contrib/dbus/org.freedesktop.impl.portal.desktop.darkman.service  <del> --replace "/usr/bin/darkman" "$out/bin/darkman" </del> <ins> --replace-fail /usr/bin/darkman $out/bin/darkman </ins> ''; <ins> vendorHash = "sha256-3lILSVm7mtquCdR7+cDMuDpHihG+gDJTcQa1cM2o7ZU="; nativeBuildInputs = [ scdoc ]; </ins> buildPhase = '' runHook preBuild make build

installPhase = '' runHook preInstall <ins> install -Dm755 darkman -t $out/bin </ins> make PREFIX=$out install runHook postInstall '';

<ins> diff --git a/go.mod b/go.mod index 2d396a4..c4fea4b 100644 --- a/go.mod +++ b/go.mod @@ -1,14 +1,19 @@ module gitlab.com/WhyNotHugo/darkman -go 1.16 +go 1.18 require ( github.com/adrg/xdg v0.3.3 github.com/godbus/dbus/v5 v5.0.4 -	github.com/kr/pretty v0.2.0 // indirect github.com/rxwycdh/rxhash v0.0.0-20230131062142-10b7a38b400d github.com/sj14/astral v0.1.2 -	github.com/spf13/cobra v1.7.0 // indirect -	gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 // indirect +	github.com/spf13/cobra v1.7.0 gopkg.in/yaml.v3 v3.0.1 ) + +require ( +	github.com/inconshreveable/mousetrap v1.1.0 // indirect +	github.com/kr/pretty v0.2.0 // indirect +	github.com/spf13/pflag v1.0.5 // indirect +	gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 // indirect +) </ins>

<ins> diff --git a/Makefile b/Makefile index 9048e45..0fb1f5a 100644 --- a/Makefile +++ b/Makefile @@ -26,7 +26,6 @@ site/index.html: darkman.1 mandoc -T html -O style=man-style.css < darkman.1 > site/index.html install: build -	@install -Dm755 darkman 	${DESTDIR}${PREFIX}/bin/darkman @install -Dm644 darkman.service	${DESTDIR}${PREFIX}/lib/systemd/user/darkman.service @install -Dm644 darkman.1	${DESTDIR}${PREFIX}/share/man/man1/darkman.1 @install -Dm644 LICENCE 	${DESTDIR}${PREFIX}/share/licenses/darkman/LICENCE </ins>