2021-07-02 21:39:14 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, arcan
|
|
|
|
, audit
|
|
|
|
, dbus
|
2021-11-11 04:35:34 +00:00
|
|
|
, libepoxy
|
2021-07-02 21:39:14 +00:00
|
|
|
, fontutil
|
|
|
|
, libGL
|
|
|
|
, libX11
|
|
|
|
, libXau
|
|
|
|
, libXdmcp
|
|
|
|
, libXfont2
|
|
|
|
, libdrm
|
|
|
|
, libgcrypt
|
|
|
|
, libmd
|
|
|
|
, libselinux
|
|
|
|
, libtirpc
|
|
|
|
, libxcb
|
|
|
|
, libxkbfile
|
|
|
|
, libxshmfence
|
|
|
|
, mesa
|
|
|
|
, meson
|
|
|
|
, nettle
|
|
|
|
, ninja
|
|
|
|
, openssl
|
|
|
|
, pixman
|
|
|
|
, pkg-config
|
|
|
|
, systemd
|
|
|
|
, xcbutil
|
|
|
|
, xcbutilwm
|
2024-04-29 15:54:34 +00:00
|
|
|
, xcbutilimage
|
2021-07-02 21:39:14 +00:00
|
|
|
, xkbcomp
|
|
|
|
, xkeyboard_config
|
|
|
|
, xorgproto
|
|
|
|
, xtrans
|
2024-04-29 15:54:34 +00:00
|
|
|
, unstableGitUpdater
|
2021-07-02 21:39:14 +00:00
|
|
|
}:
|
|
|
|
|
2022-08-04 00:46:10 +00:00
|
|
|
stdenv.mkDerivation (finalPackages: {
|
2021-07-02 21:39:14 +00:00
|
|
|
pname = "xarcan";
|
2024-04-29 15:54:34 +00:00
|
|
|
version = "0-unstable-2024-05-11";
|
2021-07-02 21:39:14 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "letoram";
|
2022-08-04 00:46:10 +00:00
|
|
|
repo = "xarcan";
|
2024-04-29 15:54:34 +00:00
|
|
|
rev = "ecc4d0a6408dfeb19934e3bfd4c382b0862c03b4";
|
|
|
|
hash = "sha256-PmaoeemQpin5NN8I6JYOumP+PrzkyTYrqAyxxwBO9K0=";
|
2021-07-02 21:39:14 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
arcan
|
|
|
|
audit
|
|
|
|
dbus
|
2021-11-11 04:35:34 +00:00
|
|
|
libepoxy
|
2021-07-02 21:39:14 +00:00
|
|
|
fontutil
|
|
|
|
libGL
|
|
|
|
libX11
|
|
|
|
libXau
|
|
|
|
libXdmcp
|
|
|
|
libXfont2
|
|
|
|
libdrm
|
|
|
|
libgcrypt
|
|
|
|
libmd
|
|
|
|
libselinux
|
|
|
|
libtirpc
|
|
|
|
libxcb
|
|
|
|
libxkbfile
|
|
|
|
libxshmfence
|
|
|
|
mesa
|
|
|
|
nettle
|
|
|
|
openssl
|
|
|
|
pixman
|
|
|
|
systemd
|
|
|
|
xcbutil
|
|
|
|
xcbutilwm
|
2024-04-29 15:54:34 +00:00
|
|
|
xcbutilimage
|
2021-07-02 21:39:14 +00:00
|
|
|
xkbcomp
|
|
|
|
xkeyboard_config
|
|
|
|
xorgproto
|
|
|
|
xtrans
|
|
|
|
];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--disable-int10-module"
|
|
|
|
"--disable-static"
|
|
|
|
"--disable-xnest"
|
|
|
|
"--disable-xorg"
|
|
|
|
"--disable-xvfb"
|
|
|
|
"--disable-xwayland"
|
|
|
|
"--enable-glamor"
|
|
|
|
"--enable-glx"
|
|
|
|
"--enable-ipv6"
|
|
|
|
"--enable-kdrive"
|
|
|
|
"--enable-record"
|
|
|
|
"--enable-xarcan"
|
|
|
|
"--enable-xcsecurity"
|
|
|
|
"--with-xkb-bin-directory=${xkbcomp}/bin"
|
|
|
|
"--with-xkb-output=/tmp"
|
|
|
|
"--with-xkb-path=${xkeyboard_config}/share/X11/xkb"
|
|
|
|
];
|
|
|
|
|
2024-04-29 15:54:34 +00:00
|
|
|
passthru.updateScript = unstableGitUpdater {};
|
|
|
|
|
2023-11-26 22:39:49 +00:00
|
|
|
meta = {
|
2021-07-02 21:39:14 +00:00
|
|
|
homepage = "https://github.com/letoram/letoram";
|
|
|
|
description = "Patched Xserver that bridges connections to Arcan";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "Xarcan";
|
2021-07-02 21:39:14 +00:00
|
|
|
longDescription = ''
|
|
|
|
xarcan is a patched X server with a KDrive backend that uses the
|
|
|
|
arcan-shmif to map Xlib/Xcb/X clients to a running arcan instance. It
|
|
|
|
allows running an X session as a window under Arcan.
|
|
|
|
'';
|
2023-11-26 22:39:49 +00:00
|
|
|
license = with lib.licenses; [ mit ];
|
|
|
|
maintainers = with lib.maintainers; [ AndersonTorres ];
|
|
|
|
platforms = lib.platforms.unix;
|
2021-07-02 21:39:14 +00:00
|
|
|
};
|
2022-08-04 00:46:10 +00:00
|
|
|
})
|