summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorLLLL Colonq <llll@colonq>2024-11-05 02:58:33 -0500
committerLLLL Colonq <llll@colonq>2024-11-05 02:58:33 -0500
commitcf0070ac5a78d8042fa74d407fb9cb65352e2066 (patch)
tree85fb5cee6c7533b7ae6de846ed447772d7b67296 /flake.nix
Initial commit
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix53
1 files changed, 53 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 0000000..44fd451
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,53 @@
+{
+ description = "bundt - frontend for fig";
+
+ inputs = {
+ nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
+ ps-tools.follows = "purs-nix/ps-tools";
+ purs-nix.url = "github:purs-nix/purs-nix/ps-0.15";
+ };
+
+ outputs = { self, nixpkgs, ... }@inputs:
+ let
+ system = "x86_64-linux";
+ pkgs = nixpkgs.legacyPackages.${system};
+ ps-tools = inputs.ps-tools.legacyPackages.${system};
+ purs-nix = inputs.purs-nix { inherit system; };
+
+ purescript = purs-nix.purs {
+ dependencies = [
+ "console"
+ "effect"
+ "prelude"
+ "random"
+ "refs"
+ "web-html"
+ "web-dom"
+ "web-uievents"
+ "canvas"
+ "argonaut"
+ "fetch"
+ "fetch-argonaut"
+ ];
+ dir = ./.;
+ srcs = [ "src" ];
+ };
+ bundt = purescript.bundle {};
+ in {
+ devShells.x86_64-linux.default = pkgs.mkShell {
+ buildInputs = [
+ pkgs.nodejs
+ (purescript.command {})
+ ps-tools.for-0_15.purescript-language-server
+ purs-nix.esbuild
+ purs-nix.purescript
+ pkgs.m4
+ pkgs.dhall
+ pkgs.dhall-json
+ ];
+ };
+ packages.x86_64-linux = {
+ default = bundt;
+ };
+ };
+}