[pkgs] Package darkman

This commit is contained in:
Malte Tammena 2022-05-07 16:44:48 +02:00
parent ca00be2896
commit de03b158b0
3 changed files with 45 additions and 0 deletions

View file

@ -123,6 +123,7 @@
inputs.emulator-2a.packages.x86_64-linux."2a-emulator";
# Add my mensa tool
mensa = inputs.mensa.packages.x86_64-linux.mensa;
darkman = super.callPackage ./pkgs/darkman.nix {};
# TODO: Replace with upstream
fend = inputs.fend.packages.x86_64-linux.fend;
nickel = inputs.nickel.defaultPackage.x86_64-linux;

43
pkgs/darkman.nix Normal file
View file

@ -0,0 +1,43 @@
{
lib,
buildGoModule,
fetchFromGitLab,
scdoc,
geoclue2,
}: let
name = "darkman";
rev = "c2656986c24a7118146b92958c1063d195513c2f";
sha256 = "5DXfUmE58W+5aHmMqLJYLjFoUUFhrUEP9Vz5CXmyT2s=";
vendorSha256 = "CGgWEaHztWeCQPIrobwLHuDkFauJM19hBU7JsA3HMic=";
in buildGoModule {
pname = name;
version = rev;
src = fetchFromGitLab {
inherit sha256 rev;
owner = "WhyNotHugo";
repo = name;
};
nativeBuildInputs = [ scdoc ];
propagatedBuildInputs = [ geoclue2 ];
inherit vendorSha256;
postBuild = ''
make build
#cp $GOPATH/bin/darkman .
'';
installPhase = ''
mkdir -p $out
make install 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 = [];
};
}

View file

@ -68,6 +68,7 @@ in {
home = {
packages = with pkgs; [
aseprite
darkman
alejandra
element-desktop # FIXME: Once it works again? (fixElectron "element-desktop" element-desktop)
signal-desktop # FIXME: Once it works again? (fixElectron "signal-desktop" signal-desktop)