diff options
author | NeverBehave <gayhub@never.pet> | 2022-01-04 18:32:14 -0800 |
---|---|---|
committer | NeverBehave <gayhub@never.pet> | 2022-01-11 20:36:27 -0800 |
commit | 705247ab18fb9de72a9bfa50d7ac694615689462 (patch) | |
tree | ac876e2eb986fd36b1384fb4ae73d4e07f84d380 /pkgs/applications/networking/novnc/default.nix | |
parent | 80607052492959b8dd66a83f3dbd17818fdfca51 (diff) | |
download | nixpkgs-705247ab18fb9de72a9bfa50d7ac694615689462.tar nixpkgs-705247ab18fb9de72a9bfa50d7ac694615689462.tar.gz nixpkgs-705247ab18fb9de72a9bfa50d7ac694615689462.tar.bz2 nixpkgs-705247ab18fb9de72a9bfa50d7ac694615689462.tar.lz nixpkgs-705247ab18fb9de72a9bfa50d7ac694615689462.tar.xz nixpkgs-705247ab18fb9de72a9bfa50d7ac694615689462.tar.zst nixpkgs-705247ab18fb9de72a9bfa50d7ac694615689462.zip |
novnc: init at 1.3.0
Diffstat (limited to 'pkgs/applications/networking/novnc/default.nix')
-rw-r--r-- | pkgs/applications/networking/novnc/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/applications/networking/novnc/default.nix b/pkgs/applications/networking/novnc/default.nix new file mode 100644 index 00000000000..269944324c6 --- /dev/null +++ b/pkgs/applications/networking/novnc/default.nix @@ -0,0 +1,30 @@ +{ lib, stdenv, fetchFromGitHub }: + +stdenv.mkDerivation rec { + pname = "novnc"; + version = "1.3.0"; + + src = fetchFromGitHub { + owner = "novnc"; + repo = "noVNC"; + rev = "v${version}"; + sha256 = "sha256-Z+bks7kcwj+Z3uf/t0u25DnGOM60QhSH6uuoIi59jqU="; + }; + + 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 ]; + }; +} |