nixpkgs/pkgs/applications/networking/remote/waypipe/default.nix

45 lines
1.2 KiB
Nix
Raw Normal View History

{ stdenv, fetchFromGitLab
2020-07-07 18:56:15 +01:00
, meson, ninja, pkg-config, scdoc
2020-11-06 14:32:50 +00:00
, openssh
2020-06-13 03:31:01 +01:00
, mesa, lz4, zstd, ffmpeg, libva
}:
stdenv.mkDerivation rec {
pname = "waypipe-unstable";
2020-11-06 14:32:50 +00:00
version = "0.7.1";
src = fetchFromGitLab {
domain = "gitlab.freedesktop.org";
owner = "mstoeckl";
repo = "waypipe";
rev = "v${version}";
2020-11-06 14:32:50 +00:00
sha256 = "00skyxmbssfxksb8wlqdr8gajpysadirjcn230fd5gaf5msvllx7";
};
postPatch = ''
substituteInPlace src/waypipe.c \
--replace "/usr/bin/ssh" "${openssh}/bin/ssh"
'';
2020-07-07 18:56:15 +01:00
nativeBuildInputs = [ meson ninja pkg-config scdoc ];
buildInputs = [
# Optional dependencies:
2020-06-13 03:31:01 +01:00
mesa lz4 zstd ffmpeg libva
];
meta = with stdenv.lib; {
description = "A network proxy for Wayland clients (applications)";
longDescription = ''
waypipe is a proxy for Wayland clients. It forwards Wayland messages and
serializes changes to shared memory buffers over a single socket. This
makes application forwarding similar to ssh -X feasible.
'';
homepage = "https://mstoeckl.com/notes/gsoc/blog.html";
2020-07-07 18:56:15 +01:00
changelog = "https://gitlab.freedesktop.org/mstoeckl/waypipe/-/releases#v${version}";
license = licenses.mit;
platforms = platforms.linux;
maintainers = with maintainers; [ primeos ];
};
}