Skip to content

Commit

Permalink
fix that adgaLedger had to be built in order to list keys of .#packages
Browse files Browse the repository at this point in the history
do not use flattenTree from flake-utils as that forces the build
  • Loading branch information
dermetfan committed Nov 24, 2022
1 parent 6fdc345 commit 34c42df
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions flake.nix
Expand Up @@ -138,25 +138,26 @@
extraExtensions = [ "hs" "cabal" ];
};
};
in flake-utils.lib.flattenTree (
in
agdaPackages //
__mapAttrs (_: nixpkgs.lib.recurseIntoAttrs) {
ledger = specsDerivations {
nixpkgs.lib.mapAttrs' (k: nixpkgs.lib.nameValuePair "ledger/${k}") (
specsDerivations {
inherit (agdaPackages) agdaLedger;
dir = "Ledger";
agdaLedgerFile = "Foreign/HSLedger.agda";
hsMainFile = "HSLedgerTest.hs";
doc = "Ledger";
};
midnight = specsDerivations {
}
) //
nixpkgs.lib.mapAttrs' (k: nixpkgs.lib.nameValuePair "midnight/${k}") (
specsDerivations {
inherit (agdaPackages) agdaLedger;
dir = "MidnightExample";
agdaLedgerFile = "HSLedger.agda";
hsMainFile = "Main.hs";
doc = "PDF";
};
}
);
}
);
} //
tullia.fromSimple system (import nix/tullia.nix)
));
Expand Down

0 comments on commit 34c42df

Please sign in to comment.