Closed 4e6 closed 6 years ago
Generate Nix function that filters root packages from stack.yaml
Example usage with shellFor:
shellFor
let # generated packages stackagePackages = import ./. {}; stackYamlPackages = import ./stack-yaml-packages.nix stackagePackages; in stackagePackages.shellFor { packages = _: lib.mapAttrsToList (_: pkg: pkg) stackYamlPackages; }
Where stack-yaml-packages.nix:
stack-yaml-packages.nix
self: { inherit (self) foo bar; }
generated from stack.yaml
stack.yaml
resolver: lts-0.0 projects: - foo - bar extra-deps: - acme-missiles-0.1.0.0
Generate Nix function that filters root packages from stack.yaml
Example usage with
shellFor
:Where
stack-yaml-packages.nix
:generated from
stack.yaml