diff options
| author | Rutger Broekhoff | 2026-12-01 00:42:18 +0100 |
|---|---|---|
| committer | Rutger Broekhoff | 2026-12-01 00:42:18 +0100 |
| commit | 9b8d8fccaec087031ba37dd68e516929c3ddb4a2 (patch) | |
| tree | 8e380c6f80388b4a238ddf486e113d6e5013699c /flake.nix | |
| parent | 4a81c39d94b6877f7753896218467ff77b8d7f6f (diff) | |
| download | routemon-9b8d8fccaec087031ba37dd68e516929c3ddb4a2.tar.gz routemon-9b8d8fccaec087031ba37dd68e516929c3ddb4a2.zip | |
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 22 |
1 files changed, 20 insertions, 2 deletions
| @@ -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 | ||