about summary refs log tree commit diff
path: root/pkgs/applications/misc/xrandr-invert-colors/default.nix
blob: 226907afe7e860be0e1430b6a764b22337952486 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ lib, stdenv, fetchFromGitHub, libXrandr}:

stdenv.mkDerivation rec {
  pname = "xrandr-invert-colors";
  version = "0.02";

  src = fetchFromGitHub {
    owner = "zoltanp";
    repo = "xrandr-invert-colors";
    rev = "v${version}";
    sha256 = "sha256-MIbHNJFDQsvjPUbperTKKbHY5GSgItvRyV5OsfpzYT4=";
  };

  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;
  };
}