nixpkgs/pkgs/servers/guacamole-server/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

97 lines
1.7 KiB
Nix
Raw Normal View History

2023-06-16 19:05:09 +02:00
{ lib
, stdenv
, fetchFromGitHub
, pkg-config
, autoPatchelfHook
, autoreconfHook
, cairo
, ffmpeg_4-headless
, freerdp
, libjpeg_turbo
, libpng
, libossp_uuid
, libpulseaudio
, libssh2
, libtelnet
, libvncserver
, libvorbis
, libwebp
, libwebsockets
, makeBinaryWrapper
, openssl
, pango
, perl
, nixosTests
}:
stdenv.mkDerivation (finalAttrs: {
pname = "guacamole-server";
2023-12-09 07:10:42 +01:00
version = "1.5.4";
2023-06-16 19:05:09 +02:00
src = fetchFromGitHub {
owner = "apache";
repo = "guacamole-server";
rev = finalAttrs.version;
2023-12-09 07:10:42 +01:00
hash = "sha256-Jke9Sp/T/GyamTq7lyu8JakJHqEwSrer0v1DugSg7JY=";
2023-06-16 19:05:09 +02:00
};
NIX_CFLAGS_COMPILE = [
"-Wno-error=format-truncation"
"-Wno-error=format-overflow"
];
strictDeps = true;
nativeBuildInputs = [
autoPatchelfHook
autoreconfHook
makeBinaryWrapper
perl
pkg-config
];
buildInputs = [
cairo
ffmpeg_4-headless
freerdp
libjpeg_turbo
libossp_uuid
libpng
libpulseaudio
libssh2
libtelnet
libvncserver
libvorbis
libwebp
libwebsockets
openssl
pango
];
configureFlags = [
"--with-freerdp-plugin-dir=${placeholder "out"}/lib"
];
postPatch = ''
patchShebangs ./src/protocols/rdp/**/*.pl
'';
postInstall = ''
ln -s ${freerdp}/lib/* $out/lib/
wrapProgram $out/sbin/guacd --prefix LD_LIBRARY_PATH ":" $out/lib
'';
2023-06-16 19:12:42 +02:00
passthru.tests = {
inherit (nixosTests) guacamole-server;
};
2023-06-16 19:05:09 +02:00
meta = {
description = "Clientless remote desktop gateway";
homepage = "https://guacamole.apache.org/";
license = lib.licenses.asl20;
2023-08-09 11:50:00 +02:00
mainProgram = "guacd";
2023-06-16 19:05:09 +02:00
maintainers = [ lib.maintainers.drupol ];
platforms = [ "x86_64-linux" "i686-linux" ];
};
})