{ lib, buildGoModule, fetchFromGitLab, scdoc, geoclue2, bash, }: let name = "darkman"; rev = "b4c9bbcd41dfa22e85a01e6c70b57591b8b233fa"; sha256 = "sha256-/r3mcwkdFyZQZV3jRJQladujBFvBmm8XhncbePTFlLA="; vendorSha256 = "sha256-CGgWEaHztWeCQPIrobwLHuDkFauJM19hBU7JsA3HMic="; in buildGoModule { pname = name; version = rev; src = fetchFromGitLab { inherit sha256 rev; owner = "WhyNotHugo"; repo = name; }; nativeBuildInputs = [scdoc]; propagatedBuildInputs = [geoclue2 bash]; inherit vendorSha256; patchPhase = '' sed -i "s|^ExecStart=/usr/bin/darkman run$|ExecStart=$out/bin/darkman run|" darkman.service sed -i "s|bash|${bash}/bin/bash|" scripts.go ''; postBuild = '' make build ''; installPhase = '' mkdir -p $out make install PREFIX=/ DESTDIR=$out ''; meta = { description = "🌇 Framework for dark-mode and light-mode transitions on Linux desktop"; homepage = "https://gitlab.com/WhyNotHugo/darkman"; license = lib.licenses.isc; maintainers = []; }; }