Created
November 14, 2022 21:42
-
-
Save jwiegley/6b7e304c9924128ef8ca78262a04af96 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
{ | |
description = "Kadena's Pact smart contract language"; | |
inputs = { | |
nixpkgs.url = "github:NixOS/nixpkgs?rev=7a94fcdda304d143f9a40006c033d7e190311b54"; | |
# nixpkgs.follows = "haskellNix/nixpkgs-unstable"; | |
haskellNix.url = "github:input-output-hk/haskell.nix"; | |
flake-utils.url = "github:numtide/flake-utils"; | |
}; | |
outputs = { self, nixpkgs, flake-utils, haskellNix }: | |
flake-utils.lib.eachSystem | |
[ "x86_64-linux" "x86_64-darwin" | |
"aarch64-linux" "aarch64-darwin" ] (system: | |
let | |
pkgs = import nixpkgs { | |
inherit system overlays; | |
inherit (haskellNix) config; | |
}; | |
flake = pkgs.pact.flake { | |
# crossPlatforms = p: [ p.ghcjs ]; | |
}; | |
overlays = [ haskellNix.overlay | |
(final: prev: { | |
pact = | |
final.haskell-nix.project' { | |
src = ./.; | |
compiler-nix-name = "ghc8107"; | |
shell.tools = { | |
cabal = {}; | |
# hlint = {}; | |
}; | |
shell.buildInputs = with pkgs; [ | |
zlib | |
z3 | |
pkgconfig | |
]; | |
# shell.crossPlatforms = p: [ p.ghcjs ]; | |
}; | |
}) | |
]; | |
in flake // { | |
packages.default = flake.packages."pact:exe:pact"; | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment