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