Skip to content

Commit

Permalink
Update gh-pages
Browse files Browse the repository at this point in the history
Store path: /nix/store/6l6pi13hx85jprmj8v8x4h6mlsnjsfca-lambda-buffers-book
  • Loading branch information
hercules-ci[bot] committed Nov 11, 2023
1 parent 8d31bbc commit d548e1d
Showing 1 changed file with 8 additions and 39 deletions.
47 changes: 8 additions & 39 deletions plutarch/build.nix
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{ inputs, ... }:
{
perSystem = { pkgs, config, ... }:
perSystem = { config, ... }:
let
project = { lib, ... }: {
hsFlake = config.lbf-nix.haskellPlutusFlake {
src = ./.;

name = "plutarch-example";

inherit (config.settings.haskell) index-state compiler-nix-name;

extraHackage = [
dependencies = [
# Load Plutarch support
"${config.packages.lbf-prelude-plutarch}"
"${config.packages.lbf-plutus-plutarch}"
Expand All @@ -22,49 +22,18 @@
"${inputs.plutarch}/plutarch-extra"
];

modules = [
(_: {
packages = {
allComponent.doHoogle = true;
allComponent.doHaddock = true;

# Enable strict compilation
plutarch-example.configureFlags = [ "-f-dev" ];
};
})
];

shell = {

withHoogle = true;

exactDeps = true;

nativeBuildInputs = config.settings.shell.tools ++ [ config.packages.lbf-plutus-to-plutarch ];

tools = {
cabal = { };
haskell-language-server = { };
};

shellHook = lib.mkForce config.settings.shell.hook;
};
devShellTools = config.settings.shell.tools;
devShellHook = config.settings.shell.hook;
};
hsNixFlake = (pkgs.haskell-nix.cabalProject' [
inputs.mlabs-tooling.lib.mkHackageMod
inputs.mlabs-tooling.lib.moduleMod
project
]).flake { };

in

{
devShells.dev-plutarch-example = hsNixFlake.devShell;
devShells.dev-plutarch-example = hsFlake.devShell;

packages = {
plutarch-example-cli = hsNixFlake.packages."plutarch-example:exe:plutarch-example";
plutarch-example-cli = hsFlake.packages."plutarch-example:exe:plutarch-example";

lbf-plutarch-example-api = config.overlayAttrs.lbf-nix.lbfPlutarch {
lbf-plutarch-example-api = config.lbf-nix.lbfPlutarch {
name = "lbf-plutarch-example-api";
src = ./api;
files = [ "Example.lbf" ];
Expand Down

0 comments on commit d548e1d

Please sign in to comment.