Skip to content

Commit

Permalink
autorandr: put xrandr into PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
Mic92 committed Oct 9, 2017
1 parent a61304e commit 3541b9a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion pkgs/tools/misc/autorandr/default.nix
@@ -1,7 +1,9 @@
{ stdenv
, python3Packages
, fetchFromGitHub
, systemd }:
, systemd
, xrandr
, makeWrapper }:

let
python = python3Packages.python;
Expand All @@ -12,6 +14,7 @@ in
name = "autorandr-${version}";

buildInputs = [ python ];
nativeBuildInputs = [ makeWrapper ];

installPhase = ''
runHook preInstall
Expand All @@ -33,9 +36,15 @@ in
make install TARGETS='udev' PREFIX=$out DESTDIR=$out \
UDEV_RULES_DIR=/etc/udev/rules.d
''}
runHook postInstall
'';

postFixup = ''
wrapProgram $out/bin/autorandr \
--prefix PATH : ${xrandr}/bin
'';

src = fetchFromGitHub {
owner = "phillipberndt";
repo = "autorandr";
Expand Down

0 comments on commit 3541b9a

Please sign in to comment.