tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
blucontrol-wrapper: init
Felix Springer
4 years ago
f3f852f2
91fbe357
+36
2 changed files
expand all
collapse all
unified
split
pkgs
applications
misc
blucontrol
wrapper.nix
top-level
all-packages.nix
+32
pkgs/applications/misc/blucontrol/wrapper.nix
···
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
···
1
+
{ stdenv, lib, makeWrapper, ghcWithPackages, packages ? (_:[]) }:
2
+
let
3
+
blucontrolEnv = ghcWithPackages (self: [ self.blucontrol ] ++ packages self);
4
+
in
5
+
stdenv.mkDerivation {
6
+
pname = "blucontrol-with-packages";
7
+
version = blucontrolEnv.version;
8
+
9
+
nativeBuildInputs = [ makeWrapper ];
10
+
11
+
buildCommand = ''
12
+
makeWrapper ${blucontrolEnv}/bin/blucontrol $out/bin/blucontrol \
13
+
--prefix PATH : ${lib.makeBinPath [ blucontrolEnv ]}
14
+
'';
15
+
16
+
# trivial derivation
17
+
preferLocalBuild = true;
18
+
allowSubstitues = false;
19
+
20
+
meta = with lib; {
21
+
description = "Configurable blue light filter";
22
+
longDescription = ''
23
+
This application is a blue light filter, with the main focus on configurability.
24
+
Configuration is done in Haskell in the style of xmonad.
25
+
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.
26
+
'';
27
+
license = licenses.bsd3;
28
+
homepage = "https://github.com/jumper149/blucontrol";
29
+
platforms = platforms.unix;
30
+
maintainers = with maintainers; [ jumper149 ];
31
+
};
32
+
}
+4
pkgs/top-level/all-packages.nix
···
21653
21654
blogc = callPackage ../applications/misc/blogc { };
21655
0
0
0
0
21656
bluefish = callPackage ../applications/editors/bluefish {
21657
gtk = gtk3;
21658
};
···
21653
21654
blogc = callPackage ../applications/misc/blogc { };
21655
21656
+
blucontrol = callPackage ../applications/misc/blucontrol/wrapper.nix {
21657
+
inherit (haskellPackages) ghcWithPackages;
21658
+
};
21659
+
21660
bluefish = callPackage ../applications/editors/bluefish {
21661
gtk = gtk3;
21662
};