summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorLLLL Colonq <llll@colonq>2024-11-14 21:33:19 -0500
committerLLLL Colonq <llll@colonq>2024-11-14 21:33:19 -0500
commit78223d43d02d20996003e12fe2c51ae1072d55fa (patch)
treee9ac49953293050b3c77adc14933d6a46488c854 /flake.nix
parentcf0070ac5a78d8042fa74d407fb9cb65352e2066 (diff)
Registration page
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix17
1 files changed, 17 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
index 44fd451..a6a3701 100644
--- a/flake.nix
+++ b/flake.nix
@@ -33,6 +33,22 @@
srcs = [ "src" ];
};
bundt = purescript.bundle {};
+
+ bundleAPI = pkgs.stdenv.mkDerivation {
+ name = "bundt-bundle-api";
+ src = ./.;
+ buildInputs = [
+ (purescript.command {})
+ pkgs.m4
+ ];
+ buildPhase = "
+ make deploy_api
+ ";
+ installPhase = ''
+ mkdir -p $out
+ cp -r dist/api/deploy/* $out/
+ '';
+ };
in {
devShells.x86_64-linux.default = pkgs.mkShell {
buildInputs = [
@@ -48,6 +64,7 @@
};
packages.x86_64-linux = {
default = bundt;
+ inherit bundleAPI;
};
};
}