Skip to content

Commit

Permalink
Merge pull request #116651 from jumper149/master
Browse files Browse the repository at this point in the history
blucontrol-wrapper: init
  • Loading branch information
SuperSandro2000 committed Apr 8, 2021
2 parents 936f450 + f3f852f commit 21264a9
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
32 changes: 32 additions & 0 deletions pkgs/applications/misc/blucontrol/wrapper.nix
@@ -0,0 +1,32 @@
{ 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;
allowSubstitues = false;

meta = with lib; {
description = "Configurable blue light filter";
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 ];
};
}
4 changes: 4 additions & 0 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -21993,6 +21993,10 @@ in

blogc = callPackage ../applications/misc/blogc { };

blucontrol = callPackage ../applications/misc/blucontrol/wrapper.nix {
inherit (haskellPackages) ghcWithPackages;
};

bluefish = callPackage ../applications/editors/bluefish {
gtk = gtk3;
};
Expand Down

0 comments on commit 21264a9

Please sign in to comment.