LovelaceAcademy / ctl-nix

Cardano transaction lib backed by nix
MIT License
0 stars 1 forks source link

we should probably filter the universe of packages #57

Open github-actions[bot] opened 11 months ago

github-actions[bot] commented 11 months ago

to only include the packages being used by CTL and its

dependencies

https://github.com/LovelaceAcademy/ctl-nix/blob/6aa9478481e6bb0c0524528a94f19dbbf9b321e8/nix/package-set/generate.nix#L8


# this is basically purs-nix/purs-nix official generator
# but accepting arguments
pkgs:
let
  b = builtins;
  p = pkgs;
  l = p.lib;
  # TODO we should probably filter the universe of packages
  #  to only include the packages being used by CTL and its
  #  dependencies
  package-set = l.importJSON (./packages.json);
  package-set-entries = l.mapAttrsToList (n: v: { inherit n v; }) package-set;
  escape-reserved-word = ps-pkgs: str:
    let