.
All checks were successful
Test action / Print hello world (push) Successful in 6m38s

This commit is contained in:
Chris Kruining 2025-09-22 15:33:18 +02:00
parent 4f5bbac05e
commit a502a50176
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2
46 changed files with 2561 additions and 91 deletions

View file

@ -1,16 +1,57 @@
{ self, inputs, ... }:
{ inputs, ... }:
{
perSystem = { pkgs, self', system, ... }: {
perSystem = { self', system, pkgs, ... }: {
packages = {
default = self'.packages.customer-portal;
default = self'.packages.amarth-customer-portal;
customer-portal = inputs.bun2nix.lib.${system}.mkBunDerivation {
pname = "customer-portal";
amarth-customer-portal = inputs.bun2nix.lib.${system}.mkBunDerivation {
pname = "amarth-customer-portal";
version = "0.0.1";
index = "app.config.ts";
src = ../..;
bunNix = ./bun.nix;
bunNix = ../../bun.nix;
nativeBuildInputs = with pkgs; [ bun git ];
buildPhase = ''
runHook preBuild
bun run build --bun
runHook postBuild
'';
installPhase = ''
runHook preInstall
mkdir -p $out
cp -r ./.output/* $out
runHook postInstall
'';
meta = {
description = "Customer portal for Amarth cloud";
longDescription = ''
This is the application where customers of the cloud you are building with Amarth.
Your customer be able to manage there resources from within this portal.
This application is the equivalent of the Azure and AWS portals.
'';
homepage = "https://git.amarth.cloud";
changelog = "https://git.amarth.cloud/releases";
license = pkgs.lib.licenses.mit;
maintainers = [
{
name = "chris";
github = "chris-kruining";
githubId = 5786905;
}
];
platforms = pkgs.lib.platforms.all;
};
};
};
};