mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-10-21 05:01:06 +02:00
27 lines
745 B
Nix
27 lines
745 B
Nix
{ fetchurl, lib, stdenv, libXrandr}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "0.01";
|
|
pname = "xrandr-invert-colors";
|
|
src = fetchurl {
|
|
url = "https://github.com/zoltanp/xrandr-invert-colors/archive/v${version}.tar.gz";
|
|
sha256 = "1z4hxn56rlflvqanb8ncqa1xqawnda85b1b37w6r2iqs8rw52d75";
|
|
};
|
|
|
|
buildInputs = [ libXrandr ];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
mv xrandr-invert-colors.bin xrandr-invert-colors
|
|
install xrandr-invert-colors $out/bin
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Inverts the colors of your screen";
|
|
license = lib.licenses.gpl3Plus;
|
|
homepage = "https://github.com/zoltanp/xrandr-invert-colors";
|
|
maintainers = [lib.maintainers.magnetophon ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|