2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, makeWrapper, bc, xorgserver, xpra, xrandr }:
|
2018-08-03 15:18:13 +00:00
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
stdenv.mkDerivation {
|
2021-11-10 21:21:47 +00:00
|
|
|
version = "unstable-2018-06-03";
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "run-scaled";
|
2018-08-03 15:18:13 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-11-10 21:21:47 +00:00
|
|
|
owner = "kaueraal";
|
|
|
|
repo = "run_scaled";
|
|
|
|
rev = "fa71b3c17e627a96ff707ad69f1def5361f2245c";
|
2018-08-03 15:18:13 +00:00
|
|
|
sha256 = "1ma4ax7ydq4xvyzrc4zapihmf7v3d9zl9mbi8bgpps7nlgz544ys";
|
|
|
|
};
|
|
|
|
|
2021-02-07 09:17:39 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2018-08-03 15:18:13 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp run_scaled $out/bin
|
|
|
|
wrapProgram $out/bin/run_scaled --prefix PATH ":" \
|
2021-01-15 09:19:50 +00:00
|
|
|
${lib.makeBinPath [ bc xorgserver xpra xrandr ]}
|
2018-08-03 15:18:13 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-08-03 15:18:13 +00:00
|
|
|
description = "Run an X application scaled via xpra";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/kaueraal/run_scaled";
|
2018-08-03 15:18:13 +00:00
|
|
|
maintainers = [ maintainers.snaar ];
|
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|