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