nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 stdenv,
3 lib,
4 makeWrapper,
5 ghcWithPackages,
6 packages ? (_: [ ]),
7}:
8let
9 blucontrolEnv = ghcWithPackages (self: [ self.blucontrol ] ++ packages self);
10in
11stdenv.mkDerivation {
12 pname = "blucontrol-with-packages";
13 version = blucontrolEnv.version;
14
15 nativeBuildInputs = [ makeWrapper ];
16
17 buildCommand = ''
18 makeWrapper ${blucontrolEnv}/bin/blucontrol $out/bin/blucontrol \
19 --prefix PATH : ${lib.makeBinPath [ blucontrolEnv ]}
20 '';
21
22 # trivial derivation
23 preferLocalBuild = true;
24 allowSubstitutes = false;
25
26 meta = with lib; {
27 description = "Configurable blue light filter";
28 mainProgram = "blucontrol";
29 longDescription = ''
30 This application is a blue light filter, with the main focus on configurability.
31 Configuration is done in Haskell in the style of xmonad.
32 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.
33 '';
34 license = licenses.bsd3;
35 homepage = "https://github.com/jumper149/blucontrol";
36 platforms = platforms.unix;
37 maintainers = with maintainers; [ jumper149 ];
38 };
39}