Skip to content

Commit

Permalink
Use new spago, purescript-overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
pete-murphy committed Jul 20, 2023
1 parent ecfaa5f commit 0f14957
Show file tree
Hide file tree
Showing 3 changed files with 99 additions and 42 deletions.
70 changes: 48 additions & 22 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

39 changes: 19 additions & 20 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -1,29 +1,28 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
easy-purescript-nix = {
url = "github:justinwoo/easy-purescript-nix";
flake = false;
};
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.05";
flake-utils.url = "github:numtide/flake-utils";
purescript-overlay.url = "github:thomashoneyman/purescript-overlay";
purescript-overlay.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { self, nixpkgs, flake-utils, easy-purescript-nix }:

outputs = { self, nixpkgs, flake-utils, purescript-overlay }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
easy-ps = import easy-purescript-nix { inherit pkgs; };
in
{
devShell = pkgs.mkShell {
overlays = [ purescript-overlay.overlays.default ];
pkgs = import nixpkgs {
inherit system overlays;
};
in {
devShells.default = pkgs.mkShell {
buildInputs = [
easy-ps.purs
easy-ps.spago
easy-ps.purs-tidy
easy-ps.purescript-language-server
pkgs.nodejs
pkgs.dhall-lsp-server
pkgs.esbuild
pkgs.nodejs_18
pkgs.purs
pkgs.spago-unstable
pkgs.purs-tidy-bin.purs-tidy-0_10_0
pkgs.purs-backend-es
];
};
});
}
);
}
32 changes: 32 additions & 0 deletions spago.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
package:
dependencies:
- arrays
- effect
- datetime
- functions
- js-date
- maybe
- nullable
- prelude
- tuples
- unfoldable
- unsafe-coerce
name: web-intl
test:
dependencies:
- assert
- console
- debug
- effect
- foldable-traversable
- functions
- js-date
- prelude
- record
- strings
- unsafe-coerce
main: Test.Main
workspace:
extra_packages: {}
package_set:
registry: 29.3.0

0 comments on commit 0f14957

Please sign in to comment.