nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
fork

Configure Feed

Select the types of activity you want to include in your feed.

at python-updates 59 lines 1.4 kB view raw
1{ 2 lib, 3 fetchFromGitLab, 4 buildGoModule, 5 scdoc, 6 nix-update-script, 7}: 8 9buildGoModule rec { 10 pname = "darkman"; 11 version = "2.2.0"; 12 13 src = fetchFromGitLab { 14 owner = "WhyNotHugo"; 15 repo = "darkman"; 16 rev = "v${version}"; 17 hash = "sha256-Kpuuxxwn/huA5WwmnVGG0HowNBGyexDRpdUc3bNmB18="; 18 }; 19 20 patches = [ 21 ./makefile.patch 22 ]; 23 24 postPatch = '' 25 substituteInPlace contrib/darkman.service \ 26 --replace-fail /usr/bin/darkman $out/bin/darkman 27 substituteInPlace contrib/dbus/nl.whynothugo.darkman.service \ 28 --replace-fail /usr/bin/darkman $out/bin/darkman 29 substituteInPlace contrib/dbus/org.freedesktop.impl.portal.desktop.darkman.service \ 30 --replace-fail /usr/bin/darkman $out/bin/darkman 31 ''; 32 33 vendorHash = "sha256-QO+fz8m2rILKTokimf+v4x0lon5lZy7zC+5qjTMdcs0="; 34 nativeBuildInputs = [ scdoc ]; 35 36 buildPhase = '' 37 runHook preBuild 38 make build 39 runHook postBuild 40 ''; 41 42 installPhase = '' 43 runHook preInstall 44 install -Dm755 darkman -t $out/bin 45 make PREFIX=$out install 46 runHook postInstall 47 ''; 48 49 passthru.updateScript = nix-update-script { }; 50 51 meta = { 52 description = "Framework for dark-mode and light-mode transitions on Linux desktop"; 53 homepage = "https://gitlab.com/WhyNotHugo/darkman"; 54 license = lib.licenses.isc; 55 maintainers = [ lib.maintainers.ajgrf ]; 56 platforms = lib.platforms.linux; 57 mainProgram = "darkman"; 58 }; 59}