Skip to content

Commit 0517d84

Browse files
authored
Merge pull request #186 from mlabs-haskell/jared/bladyjoker/flake-lang-migration-purescript
Flake lang migration purescript
2 parents 2c495d2 + 70c8488 commit 0517d84

File tree

8 files changed

+17
-63
lines changed

8 files changed

+17
-63
lines changed

extras/build.nix

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

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

2828
options.lbf-nix = lib.mkOption {
2929
type = lib.types.anything;
@@ -40,9 +40,6 @@
4040

4141
lbf-nix = {
4242
# 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-
4643
rustFlake = import ./flake-rust.nix pkgsForRust;
4744
};
4845

extras/flake-purescript.nix

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

flake.lock

Lines changed: 3 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
nixpkgs.url = "github:NixOS/nixpkgs";
55

66
# flake-lang.nix
7-
flake-lang.url = "github:mlabs-haskell/flake-lang.nix?ref=bladyjoker/migrate-haskellFlake";
7+
flake-lang.url = "github:mlabs-haskell/flake-lang.nix";
88

99
# Nix
1010

runtimes/purescript/lbr-plutus/build.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
_:
1+
{ inputs, ... }:
22
{
3-
perSystem = { pkgs, config, ... }:
3+
perSystem = { pkgs, config, system, ... }:
44

55
let
6-
pursFlake = config.lbf-nix.purescriptFlake {
6+
pursFlake = inputs.flake-lang.lib.${system}.purescriptFlake {
77
inherit pkgs;
88
src = ./.;
99
projectName = "lbr-plutus";

runtimes/purescript/lbr-prelude/build.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
_:
1+
{ inputs, ... }:
22
{
3-
perSystem = { pkgs, config, ... }:
3+
perSystem = { pkgs, config, system, ... }:
44

55
let
6-
pursFlake = config.lbf-nix.purescriptFlake {
6+
pursFlake = inputs.flake-lang.lib.${system}.purescriptFlake {
77
inherit pkgs;
88
src = ./.;
99
projectName = "lbr-prelude";

testsuites/lbt-plutus/lbt-plutus-purescript/build.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
_:
1+
{ inputs, ... }:
22
{
3-
perSystem = { pkgs, config, ... }:
3+
perSystem = { pkgs, config, system, ... }:
44

55
let
6-
pursFlake = config.lbf-nix.purescriptFlake {
6+
pursFlake = inputs.flake-lang.lib.${system}.purescriptFlake {
77
src = ./.;
88
projectName = "lbt-plutus";
99
strictComp = true;

testsuites/lbt-prelude/lbt-prelude-purescript/build.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
_:
1+
{ inputs, ... }:
22
{
3-
perSystem = { pkgs, config, ... }:
3+
perSystem = { pkgs, config, system, ... }:
44

55
let
6-
pursFlake = config.lbf-nix.purescriptFlake {
6+
pursFlake = inputs.flake-lang.lib.${system}.purescriptFlake {
77
src = ./.;
88
projectName = "lbt-prelude";
99
strictComp = true;

0 commit comments

Comments
 (0)