3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/misc/disper/default.nix
2020-04-10 17:54:53 +01:00

35 lines
810 B
Nix

{ stdenv, fetchFromGitHub, python, xorg, makeWrapper }:
stdenv.mkDerivation rec {
pname = "disper";
version = "0.3.1.1";
src = fetchFromGitHub {
owner = "apeyser";
repo = pname;
rev = "${pname}-${version}";
sha256 = "1kl4py26n95q0690npy5mc95cv1cyfvh6kxn8rvk62gb8scwg9zn";
};
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ python ];
preConfigure = ''
export makeFlags="PREFIX=$out"
'';
postInstall = ''
wrapProgram $out/bin/disper \
--prefix "LD_LIBRARY_PATH" : "${stdenv.lib.makeLibraryPath [ xorg.libXrandr xorg.libX11 ]}"
'';
meta = {
description = "On-the-fly display switch utility";
homepage = "http://willem.engen.nl/projects/disper/";
platforms = stdenv.lib.platforms.unix;
license = stdenv.lib.licenses.gpl3;
};
}