create initial POC script generating API

This commit is contained in:
Emily Martins 2022-06-21 14:48:31 +02:00
parent 564b1c4e66
commit e862de7e59
9 changed files with 210 additions and 82 deletions

View file

@ -140,11 +140,15 @@
);
applyDep = pkgs: o:
let h = myhackage pkgs.system o.compiler-nix-name; in
(plutarch.applyPlutarchDep pkgs o) // {
modules = haskellModules ++ [ h.module ] ++ (o.modules or [ ]);
extra-hackages = [ (import h.hackageNix) ] ++ (o.extra-hackages or [ ]);
extra-hackage-tarballs = { _xNJUd_plutarch-hackage = h.hackageTarball; } // (o.extra-hackage-tarballs or { });
let
h = myhackage pkgs.system o.compiler-nix-name;
o' = (plutarch.applyPlutarchDep pkgs o);
in
o' // rec {
modules = haskellModules ++ [ h.module ] ++ (o'.modules or [ ]);
extra-hackages = [ (import h.hackageNix) ] ++ (o'.extra-hackages or [ ]);
extra-hackage-tarballs = { _xNJUd_plutarch-hackage = h.hackageTarball; };
cabalProjectLocal = (o'.cabalProjectLocal or "") + " , cache >= 0.1.3.0";
};
projectForGhc = compiler-nix-name: system: