mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 13:10:33 +00:00
9ff03a7716
see issue #43716
30 lines
767 B
Nix
30 lines
767 B
Nix
{stdenv, fetchurl, python, xorg, makeWrapper}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "disper-0.3.1";
|
|
|
|
buildInputs = [python makeWrapper];
|
|
|
|
preConfigure = ''
|
|
export makeFlags="PREFIX=$out"
|
|
'';
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/disper \
|
|
--prefix "LD_LIBRARY_PATH" : "${stdenv.lib.makeLibraryPath [ xorg.libXrandr xorg.libX11 ]}"
|
|
'';
|
|
|
|
src = fetchurl {
|
|
url = http://ppa.launchpad.net/disper-dev/ppa/ubuntu/pool/main/d/disper/disper_0.3.1.tar.gz;
|
|
sha256 = "1l8brcpfn4iascb454ym0wrv5kqyz4f0h8k6db54nc3zhfwy7vvw";
|
|
};
|
|
|
|
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;
|
|
};
|
|
|
|
}
|