about summary refs log tree commit diff
path: root/pkgs/applications/misc/xrandr-invert-colors
diff options
context:
space:
mode:
authorBart Brouns <bart@magnetophon.nl>2014-11-26 18:50:47 +0100
committerBart Brouns <bart@magnetophon.nl>2014-11-28 13:39:01 +0100
commit9bcf0178d66aa3ec92a819b52b507951d504c900 (patch)
tree2be86af562f67f52dca2f640a7486e845db07446 /pkgs/applications/misc/xrandr-invert-colors
parentc1985405cceae6535077bfb55e995da994e43f2f (diff)
downloadnixlib-9bcf0178d66aa3ec92a819b52b507951d504c900.tar
nixlib-9bcf0178d66aa3ec92a819b52b507951d504c900.tar.gz
nixlib-9bcf0178d66aa3ec92a819b52b507951d504c900.tar.bz2
nixlib-9bcf0178d66aa3ec92a819b52b507951d504c900.tar.lz
nixlib-9bcf0178d66aa3ec92a819b52b507951d504c900.tar.xz
nixlib-9bcf0178d66aa3ec92a819b52b507951d504c900.tar.zst
nixlib-9bcf0178d66aa3ec92a819b52b507951d504c900.zip
xrandr-invert-colors, a tool to invert the colors of your screen
Diffstat (limited to 'pkgs/applications/misc/xrandr-invert-colors')
-rw-r--r--pkgs/applications/misc/xrandr-invert-colors/default.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/applications/misc/xrandr-invert-colors/default.nix b/pkgs/applications/misc/xrandr-invert-colors/default.nix
new file mode 100644
index 000000000000..e9bb722dcab0
--- /dev/null
+++ b/pkgs/applications/misc/xrandr-invert-colors/default.nix
@@ -0,0 +1,26 @@
+{ fetchurl, stdenv, libXrandr}:
+
+stdenv.mkDerivation rec {
+  version = "v0.01";
+  name = "xrandr-invert-colors-${version}";
+  src = fetchurl {
+    url = "https://github.com/zoltanp/xrandr-invert-colors/archive/${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;
+  }; 
+}