darkman: init at 1.3.1 (#181164)
This commit is contained in:
parent
faef00229e
commit
4e776c4cc9
49
pkgs/applications/misc/darkman/default.nix
Normal file
49
pkgs/applications/misc/darkman/default.nix
Normal file
|
@ -0,0 +1,49 @@
|
||||||
|
{ lib, fetchFromGitLab, buildGoModule, scdoc, nix-update-script }:
|
||||||
|
|
||||||
|
buildGoModule rec {
|
||||||
|
pname = "darkman";
|
||||||
|
version = "1.3.1";
|
||||||
|
|
||||||
|
src = fetchFromGitLab {
|
||||||
|
owner = "WhyNotHugo";
|
||||||
|
repo = "darkman";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "09iwc9cwwc88c6yrf6a552nbsnf1w8cnlra9axsar2p0k21v5yl1";
|
||||||
|
};
|
||||||
|
|
||||||
|
vendorSha256 = "09rjqw6v1jaf0mhmycw9mcay9q0y1fya2azj8216gdgkl48ics08";
|
||||||
|
|
||||||
|
nativeBuildInputs = [ scdoc ];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace darkman.service \
|
||||||
|
--replace "/usr/bin/darkman" "$out/bin/darkman"
|
||||||
|
substituteInPlace contrib/dbus/nl.whynothugo.darkman.service \
|
||||||
|
--replace "/usr/bin/darkman" "$out/bin/darkman"
|
||||||
|
substituteInPlace contrib/dbus/org.freedesktop.impl.portal.desktop.darkman.service \
|
||||||
|
--replace "/usr/bin/darkman" "$out/bin/darkman"
|
||||||
|
'';
|
||||||
|
|
||||||
|
buildPhase = ''
|
||||||
|
runHook preBuild
|
||||||
|
make build
|
||||||
|
runHook postBuild
|
||||||
|
'';
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
make PREFIX=$out install
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
|
passthru.updateScript = nix-update-script {
|
||||||
|
attrPath = pname;
|
||||||
|
};
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Framework for dark-mode and light-mode transitions on Linux desktop";
|
||||||
|
homepage = "https://gitlab.com/WhyNotHugo/darkman";
|
||||||
|
license = licenses.isc;
|
||||||
|
maintainers = [ maintainers.ajgrf ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -26758,6 +26758,8 @@ with pkgs;
|
||||||
|
|
||||||
darcs-to-git = callPackage ../applications/version-management/git-and-tools/darcs-to-git { };
|
darcs-to-git = callPackage ../applications/version-management/git-and-tools/darcs-to-git { };
|
||||||
|
|
||||||
|
darkman = callPackage ../applications/misc/darkman { };
|
||||||
|
|
||||||
darktable = callPackage ../applications/graphics/darktable {
|
darktable = callPackage ../applications/graphics/darktable {
|
||||||
lua = lua5_4;
|
lua = lua5_4;
|
||||||
pugixml = pugixml.override { shared = true; };
|
pugixml = pugixml.override { shared = true; };
|
||||||
|
|
Loading…
Reference in a new issue