Files
archtika/nix/package.nix

42 lines
774 B
Nix
Raw Normal View History

{
lib,
stdenv,
buildNpmPackage,
importNpmLock,
symlinkJoin,
}:
let
web = buildNpmPackage {
2024-08-29 21:01:45 +02:00
name = "web-app";
src = ../web-app;
2025-01-03 11:29:48 +01:00
npmDepsHash = "sha256-RTyo7K/Hr1hBGtcBKynrziUInl91JqZl84NkJg16ufA=";
npmFlags = [ "--legacy-peer-deps" ];
installPhase = ''
mkdir -p $out/web-app
cp package.json $out/web-app
cp -r node_modules $out/web-app
cp -r build/* $out/web-app
cp -r template-styles $out/web-app
'';
};
api = stdenv.mkDerivation {
2024-08-29 21:01:45 +02:00
name = "api";
src = ../rest-api;
installPhase = ''
mkdir -p $out/rest-api/db/migrations
cp -r db/migrations/* $out/rest-api/db/migrations
'';
};
in
symlinkJoin {
2024-12-12 17:39:41 +01:00
name = "archtika";
2024-12-12 17:29:14 +01:00
pname = "archtika";
paths = [
web
api
];
}