Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
40 lines
1.1 KiB
Nix
40 lines
1.1 KiB
Nix
{
|
|
stdenv,
|
|
lib,
|
|
makeWrapper,
|
|
ghcWithPackages,
|
|
packages ? (_: [ ]),
|
|
}:
|
|
let
|
|
blucontrolEnv = ghcWithPackages (self: [ self.blucontrol ] ++ packages self);
|
|
in
|
|
stdenv.mkDerivation {
|
|
pname = "blucontrol-with-packages";
|
|
version = blucontrolEnv.version;
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
buildCommand = ''
|
|
makeWrapper ${blucontrolEnv}/bin/blucontrol $out/bin/blucontrol \
|
|
--prefix PATH : ${lib.makeBinPath [ blucontrolEnv ]}
|
|
'';
|
|
|
|
# trivial derivation
|
|
preferLocalBuild = true;
|
|
allowSubstitutes = false;
|
|
|
|
meta = with lib; {
|
|
description = "Configurable blue light filter";
|
|
mainProgram = "blucontrol";
|
|
longDescription = ''
|
|
This application is a blue light filter, with the main focus on configurability.
|
|
Configuration is done in Haskell in the style of xmonad.
|
|
Blucontrol makes use of monad transformers and allows monadic calculation of gamma values and recoloring. The user chooses, what will be captured in the monadic state.
|
|
'';
|
|
license = licenses.bsd3;
|
|
homepage = "https://github.com/jumper149/blucontrol";
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ jumper149 ];
|
|
};
|
|
}
|