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.2 KiB
Nix
57 lines
1.2 KiB
Nix
{
|
|
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}";
|
|
fetcherVersion = 1;
|
|
hash = "sha256-NW7HK2B9h5JprK3JcIGi/OHcyoa5VTs/P0s3BZr+4FU=";
|
|
};
|
|
|
|
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/${finalAttrs.src.tag}/CHANGELOG.md";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [
|
|
christoph-heiss
|
|
k900
|
|
];
|
|
platforms = lib.platforms.all;
|
|
};
|
|
})
|