This commit is contained in:
parent
4f5bbac05e
commit
a502a50176
46 changed files with 2561 additions and 91 deletions
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue