571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
43 lines
1.0 KiB
Nix
43 lines
1.0 KiB
Nix
{ lib, python3, stdenv, substituteAll, fetchFromGitHub }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "novnc";
|
|
version = "1.5.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "novnc";
|
|
repo = "noVNC";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-3Q87bYsC824/8A85Kxdqlm+InuuR/D/HjVrYTJZfE9Y=";
|
|
};
|
|
|
|
patches = with python3.pkgs; [
|
|
(substituteAll {
|
|
src = ./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";
|
|
};
|
|
}
|