mirror of
https://github.com/thiloho/archtika.git
synced 2025-11-22 10:51:36 +01:00
Add template directory to package derivation output
This commit is contained in:
@@ -100,6 +100,7 @@ in
|
||||
User = cfg.user;
|
||||
Group = cfg.group;
|
||||
Restart = "always";
|
||||
WorkingDirectory = "${cfg.package}/web-app";
|
||||
};
|
||||
|
||||
script = ''
|
||||
|
||||
@@ -32,12 +32,23 @@ let
|
||||
cp -r db/migrations/* $out/rest-api/db/migrations
|
||||
'';
|
||||
};
|
||||
|
||||
templates = stdenv.mkDerivation {
|
||||
inherit pname version;
|
||||
name = "archtika-templates";
|
||||
src = ../templates;
|
||||
installPhase = ''
|
||||
mkdir -p $out/templates
|
||||
cp -r * $out/templates
|
||||
'';
|
||||
};
|
||||
in
|
||||
symlinkJoin {
|
||||
name = pname;
|
||||
paths = [
|
||||
web
|
||||
api
|
||||
templates
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
|
||||
Reference in New Issue
Block a user