about summary refs log tree commit diff
path: root/pkgs/tools/misc
diff options
context:
space:
mode:
authorRobert Helgesson <robert@rycee.net>2016-07-09 22:40:34 +0200
committerRobert Helgesson <robert@rycee.net>2016-07-09 22:40:34 +0200
commit8a82798f976b92be03f42ea304e8e55a93239b48 (patch)
treeaa568ae4498a5c4104526333662ba705c63e5775 /pkgs/tools/misc
parent7bd2052436c4269700dbc15d3603a494bb36d96c (diff)
downloadnixlib-8a82798f976b92be03f42ea304e8e55a93239b48.tar
nixlib-8a82798f976b92be03f42ea304e8e55a93239b48.tar.gz
nixlib-8a82798f976b92be03f42ea304e8e55a93239b48.tar.bz2
nixlib-8a82798f976b92be03f42ea304e8e55a93239b48.tar.lz
nixlib-8a82798f976b92be03f42ea304e8e55a93239b48.tar.xz
nixlib-8a82798f976b92be03f42ea304e8e55a93239b48.tar.zst
nixlib-8a82798f976b92be03f42ea304e8e55a93239b48.zip
autorandr: avoid use of `xxd`
Use the Python fallback instead of bringing in a dependency on Vim.
Diffstat (limited to 'pkgs/tools/misc')
-rw-r--r--pkgs/tools/misc/autorandr/default.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/tools/misc/autorandr/default.nix b/pkgs/tools/misc/autorandr/default.nix
index 3e922ab96527..46c056ef0c00 100644
--- a/pkgs/tools/misc/autorandr/default.nix
+++ b/pkgs/tools/misc/autorandr/default.nix
@@ -2,6 +2,7 @@
 , stdenv
 , enableXRandr ? true, xrandr ? null
 , enableDisper ? true, disper ? null
+, python
 , xdpyinfo }:
 
 assert enableXRandr -> xrandr != null;
@@ -27,7 +28,9 @@ in
       substituteInPlace "autorandr" \
         --replace "/usr/bin/xrandr" "${if enableXRandr then xrandr else "/nowhere"}/bin/xrandr" \
         --replace "/usr/bin/disper" "${if enableDisper then disper else "/nowhere"}/bin/disper" \
-        --replace "/usr/bin/xdpyinfo" "${xdpyinfo}/bin/xdpyinfo"
+        --replace "/usr/bin/xdpyinfo" "${xdpyinfo}/bin/xdpyinfo" \
+        --replace "which xxd" "false" \
+        --replace "python" "${python}/bin/python"
     '';
 
     installPhase = ''