Skip to content

Commit

Permalink
Add marlowe-playground-generate-purs command
Browse files Browse the repository at this point in the history
  • Loading branch information
hrajchert committed Nov 22, 2022
1 parent 1208e4f commit 5151fa5
Show file tree
Hide file tree
Showing 58 changed files with 268 additions and 13,628 deletions.
17 changes: 17 additions & 0 deletions flake.lock

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

44 changes: 42 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
{
# This is a template created by `hix init`

inputs.haskellNix.url = "github:input-output-hk/haskell.nix";
inputs.nixpkgs.follows = "haskellNix/nixpkgs-unstable";
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = { self, nixpkgs, flake-utils, haskellNix }:

inputs.easy-purescript-nix = {
url = "github:justinwoo/easy-purescript-nix";
flake = false;
};

outputs = { self, nixpkgs, flake-utils, haskellNix, easy-purescript-nix }:
let
supportedSystems = [
# "x86_64-linux"
Expand All @@ -12,6 +18,16 @@
in
flake-utils.lib.eachSystem supportedSystems (system:
let
easyPS =
let
p = pkgs.callPackage (easy-purescript-nix) { };
in
p // { purs = p.purs-0_15_2; };

scripts = import ./nix/scripts.nix {
inherit pkgs system easyPS;
inherit (pkgs.nodePackages) prettier;
};
overlays = [
haskellNix.overlay
(final: prev: {
Expand All @@ -24,6 +40,30 @@
# hlint = {};
haskell-language-server = { };
};
shell.buildInputs =
(with pkgs; [
nixpkgs-fmt
nodePackages.prettier
]
)
++
(with scripts; [
marlowePlaygroundGeneratePurs
]
)
++
(with easyPS; [
purs-tidy
purs
spago
spago2nix
psa
purescript-language-server
pscid
]

)
;
};
})
];
Expand Down

This file was deleted.

This file was deleted.

Loading

0 comments on commit 5151fa5

Please sign in to comment.