2019-08-31 21:48:50 +01:00
|
|
|
{ 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
|
2019-08-31 21:48:50 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "waypipe-unstable";
|
2020-11-06 14:32:50 +00:00
|
|
|
version = "0.7.1";
|
2019-08-31 21:48:50 +01:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.freedesktop.org";
|
|
|
|
owner = "mstoeckl";
|
|
|
|
repo = "waypipe";
|
|
|
|
rev = "v${version}";
|
2020-11-06 14:32:50 +00:00
|
|
|
sha256 = "00skyxmbssfxksb8wlqdr8gajpysadirjcn230fd5gaf5msvllx7";
|
2019-08-31 21:48:50 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
2019-08-31 21:48:50 +01:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
# Optional dependencies:
|
2020-06-13 03:31:01 +01:00
|
|
|
mesa lz4 zstd ffmpeg libva
|
2019-08-31 21:48:50 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
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.
|
|
|
|
'';
|
2020-04-01 02:11:51 +01:00
|
|
|
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}";
|
2019-08-31 21:48:50 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ primeos ];
|
|
|
|
};
|
|
|
|
}
|