about summary refs log tree commit diff
path: root/pkgs/applications/misc/blucontrol
diff options
context:
space:
mode:
authorFelix Springer <felixspringer149@gmail.com>2021-03-17 18:55:45 +0100
committerFelix Springer <felixspringer149@gmail.com>2021-03-22 16:31:19 +0100
commitf3f852f2013ad64482e85a445a147dc2393f9e6e (patch)
tree0ec09d122d02c0fd65118a78af76a5e5d8ac596f /pkgs/applications/misc/blucontrol
parent91fbe357bdaff7233e6c2aa167d1c149662b2f80 (diff)
blucontrol-wrapper: init
Diffstat (limited to 'pkgs/applications/misc/blucontrol')
-rw-r--r--pkgs/applications/misc/blucontrol/wrapper.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/applications/misc/blucontrol/wrapper.nix b/pkgs/applications/misc/blucontrol/wrapper.nix
new file mode 100644
index 0000000000000..c0c76b4ef49d2
--- /dev/null
+++ b/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 ];
+    };
+  }