1 { lib, fetchFromGitLab, buildGoModule, scdoc, nix-update-script }:
7 src = fetchFromGitLab {
11 sha256 = "sha256-Q/pjQmlyREl32C0LiwypEz1qBw2AeBOZbUIwNP392Sc=";
14 vendorSha256 = "09rjqw6v1jaf0mhmycw9mcay9q0y1fya2azj8216gdgkl48ics08";
16 nativeBuildInputs = [ scdoc ];
19 substituteInPlace darkman.service \
20 --replace "/usr/bin/darkman" "$out/bin/darkman"
21 substituteInPlace contrib/dbus/nl.whynothugo.darkman.service \
22 --replace "/usr/bin/darkman" "$out/bin/darkman"
23 substituteInPlace contrib/dbus/org.freedesktop.impl.portal.desktop.darkman.service \
24 --replace "/usr/bin/darkman" "$out/bin/darkman"
35 make PREFIX=$out install
39 passthru.updateScript = nix-update-script {
44 description = "Framework for dark-mode and light-mode transitions on Linux desktop";
45 homepage = "https://gitlab.com/WhyNotHugo/darkman";
46 license = licenses.isc;
47 maintainers = [ maintainers.ajgrf ];