depot/third_party/nixpkgs/pkgs/servers/guacamole-client/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

42 lines
922 B
Nix

{ lib
, stdenvNoCC
, fetchurl
, nixosTests
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "guacamole-client";
version = "1.5.2";
src = fetchurl {
url = "https://archive.apache.org/dist/guacamole/${finalAttrs.version}/binary/guacamole-${finalAttrs.version}.war";
hash = "sha256-hu/DABbkA4lI2MGlw3oLBeONrdMQTbbsA3VbxuMRHEA=";
};
dontUnpack = true;
dontBuild = true;
installPhase = ''
runHook preInstall
mkdir -p $out/webapps
cp $src $out/webapps/guacamole.war
runHook postInstall
'';
passthru.tests = {
inherit (nixosTests) guacamole-client;
};
meta = {
description = "Clientless remote desktop gateway";
homepage = "https://guacamole.apache.org/";
license = lib.licenses.asl20;
maintainers = [ lib.maintainers.drupol ];
platforms = [ "x86_64-linux" "i686-linux" ];
sourceProvenance = [
lib.sourceTypes.binaryBytecode
];
};
})