summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorLLLL Colonq <llll@colonq>2024-05-17 15:22:40 -0400
committerLLLL Colonq <llll@colonq>2024-05-17 15:22:40 -0400
commit92556dc23ead56ed2c2d2bcc752fe0e7378fa022 (patch)
treee3a245170cbd65e63d556e0ad2ca51d5b212fd9a /flake.nix
parent2fec6e70b2b583299bcbbda0b596a5a9c275e93e (diff)
Re-enable purescript
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix55
1 files changed, 27 insertions, 28 deletions
diff --git a/flake.nix b/flake.nix
index 8422b18..7012071 100644
--- a/flake.nix
+++ b/flake.nix
@@ -3,17 +3,16 @@
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
- # commented pending https://github.com/purs-nix/purs-nix/issues/55
- # ps-tools.follows = "purs-nix/ps-tools";
- # purs-nix.url = "github:purs-nix/purs-nix/ps-0.15";
+ 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; };
+ ps-tools = inputs.ps-tools.legacyPackages.${system};
+ purs-nix = inputs.purs-nix { inherit system; };
haskellOverrides = self: super: {
scotty = self.callHackageDirect {
@@ -39,25 +38,25 @@
overrides = haskellOverrides;
};
- # purescript = purs-nix.purs {
- # dependencies = [
- # "console"
- # "effect"
- # "prelude"
- # "random"
- # "refs"
- # "web-html"
- # "web-dom"
- # "web-uievents"
- # "canvas"
- # "argonaut"
- # "fetch"
- # "fetch-argonaut"
- # ];
- # dir = ./fig-frontend-client;
- # srcs = [ "src" ];
- # };
- # fig-frontend-client = purescript.bundle {};
+ purescript = purs-nix.purs {
+ dependencies = [
+ "console"
+ "effect"
+ "prelude"
+ "random"
+ "refs"
+ "web-html"
+ "web-dom"
+ "web-uievents"
+ "canvas"
+ "argonaut"
+ "fetch"
+ "fetch-argonaut"
+ ];
+ dir = ./fig-frontend-client;
+ srcs = [ "src" ];
+ };
+ fig-frontend-client = purescript.bundle {};
figBusModule = { config, lib, ... }:
let
@@ -296,10 +295,10 @@
buildInputs = [
haskellPackages.haskell-language-server
pkgs.nodejs
- # (purescript.command {})
- # ps-tools.for-0_15.purescript-language-server
- # purs-nix.esbuild
- # purs-nix.purescript
+ (purescript.command {})
+ ps-tools.for-0_15.purescript-language-server
+ purs-nix.esbuild
+ purs-nix.purescript
pkgs.m4
pkgs.dhall
pkgs.dhall-json