2019-08-03 18:30:03 +02:00
|
|
|
{ stdenv, fetchFromGitHub, python, xorg, makeWrapper }:
|
2011-10-14 20:04:34 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-03 18:30:03 +02:00
|
|
|
pname = "disper";
|
|
|
|
version = "0.3.1.1";
|
2011-10-14 20:04:34 +02:00
|
|
|
|
2019-08-03 18:30:03 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "apeyser";
|
|
|
|
repo = pname;
|
|
|
|
rev = "${pname}-${version}";
|
|
|
|
sha256 = "1kl4py26n95q0690npy5mc95cv1cyfvh6kxn8rvk62gb8scwg9zn";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
buildInputs = [ python ];
|
2011-10-14 20:04:34 +02:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
export makeFlags="PREFIX=$out"
|
|
|
|
'';
|
|
|
|
|
2016-06-22 03:19:13 +02:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/disper \
|
2016-08-23 01:13:46 +02:00
|
|
|
--prefix "LD_LIBRARY_PATH" : "${stdenv.lib.makeLibraryPath [ xorg.libXrandr xorg.libX11 ]}"
|
2016-06-22 03:19:13 +02:00
|
|
|
'';
|
|
|
|
|
2011-10-14 20:04:34 +02:00
|
|
|
meta = {
|
2013-10-06 11:49:53 +02:00
|
|
|
description = "On-the-fly display switch utility";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://willem.engen.nl/projects/disper/";
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2018-08-05 16:29:27 +02:00
|
|
|
license = stdenv.lib.licenses.gpl3;
|
2011-10-14 20:04:34 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|