2021-03-25 11:19:28 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, python2, xorg, makeWrapper }:
|
2011-10-14 18:04:34 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-03 16:30:03 +00:00
|
|
|
pname = "disper";
|
|
|
|
version = "0.3.1.1";
|
2011-10-14 18:04:34 +00:00
|
|
|
|
2019-08-03 16:30:03 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "apeyser";
|
|
|
|
repo = pname;
|
|
|
|
rev = "${pname}-${version}";
|
|
|
|
sha256 = "1kl4py26n95q0690npy5mc95cv1cyfvh6kxn8rvk62gb8scwg9zn";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
2021-03-25 11:19:28 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
|
|
|
buildInputs = [ python2 ];
|
2011-10-14 18:04:34 +00:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
export makeFlags="PREFIX=$out"
|
|
|
|
'';
|
|
|
|
|
2016-06-22 01:19:13 +00:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/disper \
|
2021-01-15 09:19:50 +00:00
|
|
|
--prefix "LD_LIBRARY_PATH" : "${lib.makeLibraryPath [ xorg.libXrandr xorg.libX11 ]}"
|
2016-06-22 01:19:13 +00:00
|
|
|
'';
|
|
|
|
|
2011-10-14 18:04:34 +00:00
|
|
|
meta = {
|
2013-10-06 09:49:53 +00:00
|
|
|
description = "On-the-fly display switch utility";
|
2021-01-26 00:33:42 +00:00
|
|
|
homepage = "https://willem.engen.nl/projects/disper/";
|
2021-01-15 09:19:50 +00:00
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
license = lib.licenses.gpl3;
|
2011-10-14 18:04:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|