summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorLLLL Colonq <llll@colonq>2024-11-18 04:19:01 -0500
committerLLLL Colonq <llll@colonq>2024-11-18 04:19:01 -0500
commitcbc11cf5d23375071c186bf36a292225ed66ec48 (patch)
tree97f62e9fbbe32b5103d378e5c69378562b44003b /flake.nix
parent57e6b3735787f8136ad344a8d170dbf2981d0509 (diff)
Initial auth page
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix25
1 files changed, 23 insertions, 2 deletions
diff --git a/flake.nix b/flake.nix
index a9e5866..beedd35 100644
--- a/flake.nix
+++ b/flake.nix
@@ -49,6 +49,21 @@
cp -r dist/api/deploy/* $out/
'';
};
+ bundleAuth = pkgs.stdenv.mkDerivation {
+ name = "bundt-bundle-auth";
+ src = ./.;
+ buildInputs = [
+ (purescript.command {})
+ pkgs.m4
+ ];
+ buildPhase = "
+ make deploy_auth
+ ";
+ installPhase = ''
+ mkdir -p $out
+ cp -r dist/auth/deploy/* $out/
+ '';
+ };
in {
devShells.x86_64-linux.default = pkgs.mkShell {
buildInputs = [
@@ -64,11 +79,17 @@
};
packages.x86_64-linux = {
default = bundt;
- inherit bundleAPI;
+ inherit
+ bundleAPI
+ bundleAuth
+ ;
};
overlay = self: super: {
bundt = {
- inherit bundleAPI;
+ inherit
+ bundleAPI
+ bundleAuth
+ ;
};
};
};