summary refs log blame commit diff
path: root/pkgs/applications/misc/xrandr-invert-colors/default.nix
blob: 41071012ae9f651f1a72269a9765cfe0c6f46469 (plain) (tree)
1
2
3
4
5
6
7


                               
                   
                                 
                  
                                                                                       


















                                                                    
{ fetchurl, 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 stdenv.lib; {
    description = "Inverts the colors of your screen";
    license = stdenv.lib.licenses.gpl3Plus;
    homepage = https://github.com/zoltanp/xrandr-invert-colors;
    maintainers = [stdenv.lib.maintainers.magnetophon ];
    platforms = platforms.linux;
  }; 
}