autorandr: put xrandr into PATH
This commit is contained in:
parent
a61304e3cb
commit
3541b9a72e
@ -1,7 +1,9 @@
|
|||||||
{ stdenv
|
{ stdenv
|
||||||
, python3Packages
|
, python3Packages
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, systemd }:
|
, systemd
|
||||||
|
, xrandr
|
||||||
|
, makeWrapper }:
|
||||||
|
|
||||||
let
|
let
|
||||||
python = python3Packages.python;
|
python = python3Packages.python;
|
||||||
@ -12,6 +14,7 @@ in
|
|||||||
name = "autorandr-${version}";
|
name = "autorandr-${version}";
|
||||||
|
|
||||||
buildInputs = [ python ];
|
buildInputs = [ python ];
|
||||||
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
@ -33,9 +36,15 @@ in
|
|||||||
make install TARGETS='udev' PREFIX=$out DESTDIR=$out \
|
make install TARGETS='udev' PREFIX=$out DESTDIR=$out \
|
||||||
UDEV_RULES_DIR=/etc/udev/rules.d
|
UDEV_RULES_DIR=/etc/udev/rules.d
|
||||||
''}
|
''}
|
||||||
|
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
postFixup = ''
|
||||||
|
wrapProgram $out/bin/autorandr \
|
||||||
|
--prefix PATH : ${xrandr}/bin
|
||||||
|
'';
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "phillipberndt";
|
owner = "phillipberndt";
|
||||||
repo = "autorandr";
|
repo = "autorandr";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user