mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
autorandr: put xrandr into PATH
This commit is contained in:
parent
a61304e3cb
commit
3541b9a72e
@ -1,7 +1,9 @@
|
||||
{ stdenv
|
||||
, python3Packages
|
||||
, fetchFromGitHub
|
||||
, systemd }:
|
||||
, systemd
|
||||
, xrandr
|
||||
, makeWrapper }:
|
||||
|
||||
let
|
||||
python = python3Packages.python;
|
||||
@ -12,6 +14,7 @@ in
|
||||
name = "autorandr-${version}";
|
||||
|
||||
buildInputs = [ python ];
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user