Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
57 lines
1.1 KiB
Nix
57 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
python3,
|
|
stdenv,
|
|
replaceVars,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "novnc";
|
|
version = "1.6.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "novnc";
|
|
repo = "noVNC";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-VYG0p70ZvRzK9IeA+5J95FqF+zWgj/8EcxnVOk+YL9o=";
|
|
};
|
|
|
|
patches =
|
|
with python3.pkgs;
|
|
[
|
|
(replaceVars ./websockify.patch {
|
|
inherit websockify;
|
|
})
|
|
]
|
|
++ [ ./fix-paths.patch ];
|
|
|
|
postPatch = ''
|
|
substituteAllInPlace utils/novnc_proxy
|
|
'';
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -Dm755 utils/novnc_proxy "$out/bin/novnc"
|
|
install -dm755 "$out/share/webapps/novnc/"
|
|
cp -a app core po vendor vnc.html karma.conf.js package.json vnc_lite.html "$out/share/webapps/novnc/"
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "VNC client web application";
|
|
homepage = "https://novnc.com";
|
|
license = with licenses; [
|
|
mpl20
|
|
ofl
|
|
bsd3
|
|
bsd2
|
|
mit
|
|
];
|
|
maintainers = with maintainers; [ neverbehave ];
|
|
mainProgram = "novnc";
|
|
};
|
|
}
|