Skip to content

Commit 4fd187d

Browse files
authored
Merge pull request #183 from mlabs-haskell/bladyjoker/flake-lang-migration
flake-lang.nix migration
2 parents 063055a + 17241ef commit 4fd187d

File tree

29 files changed

+3408
-7830
lines changed

29 files changed

+3408
-7830
lines changed

docs/plutarch/build.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{ inputs, ... }:
22
{
3-
perSystem = { config, ... }:
3+
perSystem = { config, system, ... }:
44
let
5-
hsFlake = config.lbf-nix.haskellPlutusFlake {
5+
hsFlake = inputs.flake-lang.lib.${system}.haskellPlutusFlake {
66
src = ./.;
77

88
name = "plutarch-example";

extras/build.nix

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{ config, inputs, flake-parts-lib, lib, ... }: {
1+
{ config, flake-parts-lib, lib, ... }: {
22

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

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

2828
options.lbf-nix = lib.mkOption {
2929
type = lib.types.anything;
@@ -38,16 +38,6 @@
3838
buildInputs = config.settings.shell.tools;
3939
};
4040

41-
lbf-nix = {
42-
# NOTE(bladyjoker): If you need to add a function the export externally and use internally via config.lbf-nix, add it here.
43-
44-
purescriptFlake = import ./flake-purescript.nix pkgsForCtl;
45-
46-
haskellData = import ./haskell-data.nix pkgs;
47-
haskellFlake = import ./flake-haskell.nix pkgsForHaskellNix;
48-
haskellPlutusFlake = import ./flake-haskell-plutus.nix inputs.cardano-haskell-packages pkgsForHaskellNix;
49-
};
50-
5141
# Makes it available in the per system `lib` argument.
5242
_module.args.lib = lib // {
5343
inherit (config) lbf-nix;

extras/flake-haskell-plutus.nix

Lines changed: 0 additions & 11 deletions
This file was deleted.

extras/flake-haskell.nix

Lines changed: 0 additions & 66 deletions
This file was deleted.

extras/flake-purescript.nix

Lines changed: 0 additions & 42 deletions
This file was deleted.

extras/haskell.nix/cabal.project.local

Lines changed: 0 additions & 41 deletions
This file was deleted.

extras/haskell.nix/extra-hackage.nix

Lines changed: 0 additions & 144 deletions
This file was deleted.

0 commit comments

Comments
 (0)