opencloud-web: init at 2.4.0

Co-authored-by: Christoph Heiss <christoph@c8h4.io>
This commit is contained in:
K900
2025-05-20 20:35:09 +03:00
co-authored by Christoph Heiss
parent 53507d63f6
commit 733af62ab3
2 changed files with 59 additions and 0 deletions
+2
View File
@@ -1,5 +1,6 @@
{
lib,
callPackage,
buildGoModule,
fetchFromGitHub,
ncurses,
@@ -94,6 +95,7 @@ buildGoModule rec {
excludedPackages = [ "tests/*" ];
passthru = {
web = callPackage ./web.nix { };
tests = { inherit (nixosTests) opencloud; };
updateScript = nix-update-script { };
};
+57
View File
@@ -0,0 +1,57 @@
{
lib,
stdenvNoCC,
fetchFromGitHub,
nodejs,
pnpm_10,
nix-update-script,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "opencloud-web";
version = "2.4.0";
src = fetchFromGitHub {
owner = "opencloud-eu";
repo = "web";
tag = "v${finalAttrs.version}";
hash = "sha256-64Dwkx5IEwlaIX1z6Roi6cSWB2ETBldQcNWxgWiUX18=";
};
pnpmDeps = pnpm_10.fetchDeps {
inherit (finalAttrs) pname version src;
hash = "sha256-UKgtthdRnI+iR4Qn07nabQOzWZFATjIfrQfwxhKJkx8=";
};
nativeBuildInputs = [
nodejs
pnpm_10.configHook
];
buildPhase = ''
runHook preBuild
pnpm build
runHook postBuild
'';
installPhase = ''
runHook preInstall
mkdir $out
cp -r dist/* $out
runHook postInstall
'';
passthru.updateScript = nix-update-script { };
meta = {
description = "Web UI for OpenCloud built with Vue.js and TypeScript";
homepage = "https://github.com/opencloud-eu/web";
changelog = "https://github.com/opencloud-eu/web/blob/${finalAttrs.version}/CHANGELOG.md";
license = lib.licenses.agpl3Only;
maintainers = with lib.maintainers; [
christoph-heiss
k900
];
platforms = lib.platforms.all;
};
})