{ fetchurl, lib, stdenv, libXrandr}: stdenv.mkDerivation rec { version = "0.02"; pname = "xrandr-invert-colors"; src = fetchurl { url = "https://github.com/zoltanp/xrandr-invert-colors/archive/v${version}.tar.gz"; sha256 = "sha256-7rIiBV9zbiLzu5RO5legHfGiqUSU2BuwqOc1dX/7ozA="; }; 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; }; }