mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-17 14:19:58 +03:00
Add package xbrightness
xbrightness allows controlling by software the screen gamma and brigthness settings for individual color channels.
This commit is contained in:
parent
06f7226541
commit
ce8651ba1e
16
pkgs/tools/X11/xbrightness/builder.sh
Normal file
16
pkgs/tools/X11/xbrightness/builder.sh
Normal file
@ -0,0 +1,16 @@
|
||||
source $stdenv/setup
|
||||
|
||||
configurePhase() {
|
||||
xmkmf
|
||||
}
|
||||
|
||||
buildPhase() {
|
||||
make $makeFlags
|
||||
}
|
||||
|
||||
installPhase() {
|
||||
make install BINDIR=$out/bin
|
||||
make install.man MANPATH=$out/share/man
|
||||
}
|
||||
|
||||
genericBuild
|
27
pkgs/tools/X11/xbrightness/default.nix
Normal file
27
pkgs/tools/X11/xbrightness/default.nix
Normal file
@ -0,0 +1,27 @@
|
||||
{ stdenv, fetchurl, x11, xlibs }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
|
||||
name = "xbrightness-0.3-mika-akk";
|
||||
builder = ./builder.sh;
|
||||
src = fetchurl {
|
||||
url = http://shallowsky.com/software/xbrightness/xbrightness-0.3-mika-akk.tar.gz;
|
||||
sha256 = "2564dbd393544657cdabe4cbf535d9cfb9abe8edddb1b8cdb1ed4d12f358626e";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
xlibs.imake
|
||||
xlibs.libX11
|
||||
xlibs.libXaw
|
||||
xlibs.libXext
|
||||
xlibs.libXmu
|
||||
xlibs.libXpm
|
||||
xlibs.libXxf86vm
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "X11 brigthness and gamma software control";
|
||||
homepage = http://shallowsky.com/software;
|
||||
license = stdenv.lib.licenses.mit;
|
||||
};
|
||||
}
|
@ -2808,6 +2808,8 @@ let
|
||||
|
||||
xarchiver = callPackage ../tools/archivers/xarchiver { };
|
||||
|
||||
xbrightness = callPackage ../tools/X11/xbrightness { };
|
||||
|
||||
xcruiser = callPackage ../applications/misc/xcruiser { };
|
||||
|
||||
unarj = callPackage ../tools/archivers/unarj { };
|
||||
|
Loading…
Reference in New Issue
Block a user