summaryrefslogtreecommitdiffstats
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix22
1 files changed, 20 insertions, 2 deletions
diff --git a/flake.nix b/flake.nix
index 85dc121..65b29bd 100644
--- a/flake.nix
+++ b/flake.nix
@@ -21,8 +21,8 @@
21 }); 21 });
22 boost = pkgs."boost${toString boostVersion}"; 22 boost = pkgs."boost${toString boostVersion}";
23 23
24 routemon-server = stdenv.mkDerivation { 24 routemon-server-unwrapped = stdenv.mkDerivation {
25 name = "routemon-server"; 25 name = "routemon-server-unwrapped";
26 src = ./server; 26 src = ./server;
27 27
28 buildInputs = with pkgs; [ boost pugixml expat icu openssl sqlite ]; 28 buildInputs = with pkgs; [ boost pugixml expat icu openssl sqlite ];
@@ -49,6 +49,24 @@
49 ]; 49 ];
50 }; 50 };
51 51
52 routemon-server-data = pkgs.stdenvNoCC.mkDerivation {
53 name = "routemon-server-data";
54
55 src = ./server;
56
57 installPhase = ''
58 install -D -t $out/share/routemon/migrations/ migrations/*.sql
59 '';
60 };
61
62 routemon-server = pkgs.buildEnv {
63 name = "routemon-server";
64
65 paths = [ routemon-server-unwrapped routemon-server-data ];
66
67 pathsToLink = [ "/bin" "/share" ];
68 };
69
52 routemon-web = pkgs.stdenvNoCC.mkDerivation { 70 routemon-web = pkgs.stdenvNoCC.mkDerivation {
53 name = "routemon-web"; 71 name = "routemon-web";
54 72