Skip to content

Commit

Permalink
Merge pull request #22 from mlabs-haskell/sean/typedCoreFn.test-infra
Browse files Browse the repository at this point in the history
Sean/typed core fn.test infra
  • Loading branch information
gnumonik authored Mar 6, 2024
2 parents b2befc1 + a9f7a14 commit fcce0c8
Show file tree
Hide file tree
Showing 105 changed files with 3,447 additions and 540 deletions.
2 changes: 1 addition & 1 deletion .envrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
use nix
use flake
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,6 @@ TAGS
*.ps
*.svg
tests/purs/make/
.direnv/
/.pre-commit-config.yaml
/result*
4 changes: 4 additions & 0 deletions cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@ repository cardano-haskell-packages

packages:
purescript.cabal

-- HACK: plutus core cannot build without it, remove after bump.
constraints:
nothunks < 0.2
31 changes: 31 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
perSystem = { self', pkgs, config, ... }:
let
cardanoPackages = pkgs.fetchFromGitHub {
owner = "input-output-hk";
repo = "cardano-haskell-packages";
rev = "3df392af2a61d61bdac1afd9c3674f27d6aa8efc"; # branch: repo
hash = "sha256-vvm56KzA6jEkG3mvwh1LEdK4H4FKxeoOJNz90H8l8dQ=";
};

purus = config.libHaskell.mkPackage {
name = "purus";
src = ./.;

externalRepositories = {
"https://input-output-hk.github.io/cardano-haskell-packages" = cardanoPackages;
};
};
in
{
devShells.purus = purus.devShell;

packages = {
purs = purus.packages."purescript:exe:purs";
};

apps = {
purs.program = "${self'.packages.purs}/bin/purs";
};
};
}
Loading

0 comments on commit fcce0c8

Please sign in to comment.