purs-project.nix 542 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#!/usr/bin/env nix-shell
{ pkgs ? import ./pinned.nix { } }:
let
  packagesJson = ../.psc-package/local/.set/packages.json;
  inputNames = (pkgs.lib.importJSON ../psc-package.json).depends;
  pursPackages = import ./purs-packages.nix { inherit pkgs; };
  getUnquotedSourceGlob = x: ''${x.src}/src/**/*.purs'';
  unquotedSourceGlobs = map getUnquotedSourceGlob (builtins.attrValues pursPackages);
  quote = x: ''"${x}"'';
  sourceGlobs = map quote unquotedSourceGlobs;
in
{
  inherit packagesJson inputNames sourceGlobs unquotedSourceGlobs;
}