mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 08:13:04 +00:00
841e2ed547
* run-scaled: init at 2018-06-03 * run-scaled: change platform from linux to unix to match dependencies
31 lines
852 B
Nix
31 lines
852 B
Nix
{ stdenv, fetchFromGitHub, makeWrapper, bc, xorgserver, xpra, xrandr }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "git-2018-06-03";
|
|
name = "run-scaled-${version}";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kaueraal";
|
|
repo = "run_scaled";
|
|
rev = "fa71b3c17e627a96ff707ad69f1def5361f2245c";
|
|
sha256 = "1ma4ax7ydq4xvyzrc4zapihmf7v3d9zl9mbi8bgpps7nlgz544ys";
|
|
};
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp run_scaled $out/bin
|
|
wrapProgram $out/bin/run_scaled --prefix PATH ":" \
|
|
${stdenv.lib.makeBinPath [ bc xorgserver xpra xrandr ]}
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Run an X application scaled via xpra";
|
|
homepage = https://github.com/kaueraal/run_scaled;
|
|
maintainers = [ maintainers.snaar ];
|
|
license = licenses.bsd3;
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|