-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
40,914 additions
and
180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"type": "module" | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
inputs = { | ||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11"; | ||
purescript-overlay = { | ||
url = "github:thomashoneyman/purescript-overlay"; | ||
inputs.nixpkgs.follows = "nixpkgs"; | ||
}; | ||
}; | ||
|
||
outputs = { self, nixpkgs, ... }@inputs: | ||
let | ||
supportedSystems = ["x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin"]; | ||
|
||
forAllSystems = nixpkgs.lib.genAttrs supportedSystems; | ||
|
||
nixpkgsFor = forAllSystems (system: import nixpkgs { | ||
inherit system; | ||
config = { }; | ||
overlays = builtins.attrValues self.overlays; | ||
}); | ||
in { | ||
overlays = { | ||
purescript = inputs.purescript-overlay.overlays.default; | ||
}; | ||
|
||
# fix | ||
# does not provide attribute 'packages.x86_64-linux.default' or 'defaultPackage.x86_64-linux' | ||
# on `nix shell` | ||
packages = self.devShells; | ||
|
||
devShells = forAllSystems (system: | ||
# pkgs now has access to the standard PureScript toolchain | ||
let pkgs = nixpkgsFor.${system}; in { | ||
default = pkgs.mkShell { | ||
name = "setup-purescript"; | ||
buildInputs = with pkgs; [ | ||
purs | ||
spago-unstable | ||
nodejs_latest | ||
]; | ||
|
||
shellHook = '' | ||
source <(node --completion-bash) | ||
source <(spago --bash-completion-script `which spago`) | ||
''; | ||
}; | ||
}); | ||
}; | ||
} |
Oops, something went wrong.