opencloud-idp-web: init at 2.3.0

Co-authored-by: Christoph Heiss <christoph@c8h4.io>
This commit is contained in:
K900 2025-05-20 12:53:38 +03:00
parent 733af62ab3
commit 3c20fdf1f8
2 changed files with 56 additions and 0 deletions

View file

@ -0,0 +1,55 @@
{
stdenvNoCC,
lib,
opencloud,
pnpm_10,
nodejs,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "opencloud-idp-web";
inherit (opencloud) version src;
pnpmRoot = "services/idp";
pnpmDeps = pnpm_10.fetchDeps {
inherit (finalAttrs) pname version src;
sourceRoot = "${finalAttrs.src.name}/${finalAttrs.pnpmRoot}";
hash = "sha256-gFhWDYk3DcwUowZ9AQjCqHZL1oniK3YCNiG1cDGabYg=";
};
nativeBuildInputs = [
nodejs
pnpm_10.configHook
];
buildPhase = ''
runHook preBuild
cd $pnpmRoot
pnpm build
mkdir -p assets/identifier/static
cp -v src/images/favicon.svg assets/identifier/static/favicon.svg
cp -v src/images/icon-lilac.svg assets/identifier/static/icon-lilac.svg
runHook postBuild
'';
installPhase = ''
runHook preInstall
mkdir $out
cp -r assets $out
runHook postInstall
'';
meta = {
description = "OpenCloud - IDP Web UI";
homepage = "https://github.com/opencloud-eu/opencloud";
changelog = "https://github.com/opencloud-eu/opencloud/blob/v${finalAttrs.src.rev}/CHANGELOG.md";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [
christoph-heiss
k900
];
platforms = lib.platforms.all;
};
})

View file

@ -96,6 +96,7 @@ buildGoModule rec {
passthru = {
web = callPackage ./web.nix { };
idp-web = callPackage ./idp-web.nix { };
tests = { inherit (nixosTests) opencloud; };
updateScript = nix-update-script { };
};