Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/plutarch/build.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{ inputs, ... }:
{
perSystem = { config, ... }:
perSystem = { config, system, ... }:
let
hsFlake = config.lbf-nix.haskellPlutusFlake {
hsFlake = inputs.flake-lang.lib.${system}.haskellPlutusFlake {
src = ./.;

name = "plutarch-example";
Expand Down
14 changes: 2 additions & 12 deletions extras/build.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ config, inputs, flake-parts-lib, lib, ... }: {
{ config, flake-parts-lib, lib, ... }: {

# Makes a system agnostic option (dunno why I needed this).
options.lbf-nix = lib.mkOption {
Expand All @@ -23,7 +23,7 @@

# Makes a per system `lbf-nix` option.
perSystem = flake-parts-lib.mkPerSystemOption
({ pkgs, config, pkgsForCtl, pkgsForHaskellNix, ... }: {
({ pkgs, config, ... }: {

options.lbf-nix = lib.mkOption {
type = lib.types.anything;
Expand All @@ -38,16 +38,6 @@
buildInputs = config.settings.shell.tools;
};

lbf-nix = {
# NOTE(bladyjoker): If you need to add a function the export externally and use internally via config.lbf-nix, add it here.

purescriptFlake = import ./flake-purescript.nix pkgsForCtl;

haskellData = import ./haskell-data.nix pkgs;
haskellFlake = import ./flake-haskell.nix pkgsForHaskellNix;
haskellPlutusFlake = import ./flake-haskell-plutus.nix inputs.cardano-haskell-packages pkgsForHaskellNix;
};

# Makes it available in the per system `lib` argument.
_module.args.lib = lib // {
inherit (config) lbf-nix;
Expand Down
11 changes: 0 additions & 11 deletions extras/flake-haskell-plutus.nix

This file was deleted.

66 changes: 0 additions & 66 deletions extras/flake-haskell.nix

This file was deleted.

42 changes: 0 additions & 42 deletions extras/flake-purescript.nix

This file was deleted.

41 changes: 0 additions & 41 deletions extras/haskell.nix/cabal.project.local

This file was deleted.

144 changes: 0 additions & 144 deletions extras/haskell.nix/extra-hackage.nix

This file was deleted.

Loading