1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-14 08:34:50 +00:00
nixpkgs/pkgs/tools/misc/disper/default.nix

35 lines
795 B
Nix
Raw Normal View History

2021-01-15 09:19:50 +00:00
{ lib, stdenv, fetchFromGitHub, python, xorg, makeWrapper }:
stdenv.mkDerivation rec {
2019-08-03 17:30:03 +01:00
pname = "disper";
version = "0.3.1.1";
2019-08-03 17:30:03 +01:00
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 \
2021-01-15 09:19:50 +00:00
--prefix "LD_LIBRARY_PATH" : "${lib.makeLibraryPath [ xorg.libXrandr xorg.libX11 ]}"
'';
meta = {
description = "On-the-fly display switch utility";
homepage = "https://willem.engen.nl/projects/disper/";
2021-01-15 09:19:50 +00:00
platforms = lib.platforms.unix;
license = lib.licenses.gpl3;
};
}