diff options
author | snaar <snaar@snaar.net> | 2018-08-03 11:18:13 -0400 |
---|---|---|
committer | xeji <36407913+xeji@users.noreply.github.com> | 2018-08-03 17:18:13 +0200 |
commit | 841e2ed5470d19891f2570bef9ba9860e4c9a2fb (patch) | |
tree | 42f65ca99150feec3651877a41e620dbaa201a5c /pkgs/tools/X11/run-scaled | |
parent | fcb425427688c4849e8cbb32582d124b79b9bb44 (diff) |
run-scaled: init at 2018-06-03 (#44385)
* run-scaled: init at 2018-06-03
* run-scaled: change platform from linux to unix to match dependencies
Diffstat (limited to 'pkgs/tools/X11/run-scaled')
-rw-r--r-- | pkgs/tools/X11/run-scaled/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/tools/X11/run-scaled/default.nix b/pkgs/tools/X11/run-scaled/default.nix new file mode 100644 index 000000000000..ea661b0f8c7b --- /dev/null +++ b/pkgs/tools/X11/run-scaled/default.nix @@ -0,0 +1,30 @@ +{ 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; + }; +} |