nixos-config/overlays/pkgs/ocis/web.nix
2024-11-07 14:21:06 +08:00

40 lines
689 B
Nix

{
lib,
stdenvNoCC,
nodejs,
pnpm,
fetchFromGitHub,
}:
stdenvNoCC.mkDerivation rec {
pname = "ocis-web";
version = "v8.0.5";
src = fetchFromGitHub {
owner = "owncloud";
repo = "web";
rev = version;
hash = "sha256-hupdtK/V74+X7/eXoDmUjFvSKuhnoOtNQz7o6TLJXG4=";
};
nativeBuildInputs = [ pnpm.configHook ];
buildInputs = [ nodejs ];
buildPhase = ''
pnpm build
'';
installPhase = ''
mkdir -p $out/share
cp -r dist/* $out/share/
'';
pnpmDeps = pnpm.fetchDeps {
inherit pname version src;
hash = "sha256-3Erva6srdkX1YQ727trx34Ufx524nz19MUyaDQToz6M=";
};
meta = with lib; {
license = [ licenses.agpl3Only ];
};
}