Merge pull request #116651 from jumper149/master

blucontrol-wrapper: init

authored by

Sandro and committed by
GitHub
21264a93 936f450e

+36
+32
pkgs/applications/misc/blucontrol/wrapper.nix
···
··· 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
··· 21993 21994 blogc = callPackage ../applications/misc/blogc { }; 21995 21996 bluefish = callPackage ../applications/editors/bluefish { 21997 gtk = gtk3; 21998 };
··· 21993 21994 blogc = callPackage ../applications/misc/blogc { }; 21995 21996 + blucontrol = callPackage ../applications/misc/blucontrol/wrapper.nix { 21997 + inherit (haskellPackages) ghcWithPackages; 21998 + }; 21999 + 22000 bluefish = callPackage ../applications/editors/bluefish { 22001 gtk = gtk3; 22002 };