Skip to content

Commit

Permalink
Fix flake.nix
Browse files Browse the repository at this point in the history
  • Loading branch information
paluh committed May 10, 2024
1 parent d153c16 commit 9c3bdb1
Showing 1 changed file with 33 additions and 31 deletions.
64 changes: 33 additions & 31 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -46,38 +46,40 @@
inherit inputs;
repoRoot = ./.;
systems = [ "x86_64-linux" "x86_64-darwin" "aarch64-darwin" "aarch64-linux" ];
flake = let
inherit (nixpkgs) lib;
in {
sqitch-plan-dirs = {
# Ensure this path only changes when sqitch.plan file is updated, or DDL
# files are updated.
chain-sync = (builtins.path {
path = self;
name = "marlowe-chain-sync-sqitch-plan";
filter = path: type:
path == "${self}/marlowe-chain-sync"
|| path == "${self}/marlowe-chain-sync/sqitch.plan"
|| lib.hasPrefix "${self}/marlowe-chain-sync/deploy" path
|| lib.hasPrefix "${self}/marlowe-chain-sync/revert" path;
}) + "/marlowe-chain-sync";

# Ensure this path only changes when sqitch.plan file is updated, or DDL
# files are updated.
runtime = (builtins.path {
path = self;
name = "marlowe-runtime-sqitch-plan";
filter = path: type:
path == "${self}/marlowe-runtime"
|| path == "${self}/marlowe-runtime/marlowe-indexer"
|| path == "${self}/marlowe-runtime/marlowe-indexer/sqitch.plan"
|| lib.hasPrefix "${self}/marlowe-runtime/marlowe-indexer/deploy" path
|| lib.hasPrefix "${self}/marlowe-runtime/marlowe-indexer/revert" path;
}) + "/marlowe-runtime/marlowe-indexer";
flake = _:
let
inherit (nixpkgs) lib;
in
{
sqitch-plan-dirs = {
# Ensure this path only changes when sqitch.plan file is updated, or DDL
# files are updated.
chain-sync = (builtins.path {
path = self;
name = "marlowe-chain-sync-sqitch-plan";
filter = path: type:
path == "${self}/marlowe-chain-sync"
|| path == "${self}/marlowe-chain-sync/sqitch.plan"
|| lib.hasPrefix "${self}/marlowe-chain-sync/deploy" path
|| lib.hasPrefix "${self}/marlowe-chain-sync/revert" path;
}) + "/marlowe-chain-sync";

# Ensure this path only changes when sqitch.plan file is updated, or DDL
# files are updated.
runtime = (builtins.path {
path = self;
name = "marlowe-runtime-sqitch-plan";
filter = path: type:
path == "${self}/marlowe-runtime"
|| path == "${self}/marlowe-runtime/marlowe-indexer"
|| path == "${self}/marlowe-runtime/marlowe-indexer/sqitch.plan"
|| lib.hasPrefix "${self}/marlowe-runtime/marlowe-indexer/deploy" path
|| lib.hasPrefix "${self}/marlowe-runtime/marlowe-indexer/revert" path;
}) + "/marlowe-runtime/marlowe-indexer";
};

nixosModules.default = import ./nix/nixos.nix inputs;
};

nixosModules.default = import ./nix/nixos.nix inputs;
};
outputs = import ./nix/outputs.nix;
};

Expand Down

0 comments on commit 9c3bdb1

Please sign in to comment.