1/* The function obtained when this is applied to a package set calls
2 * the stack-to-nix tool on a supplied source set and then
3 * imports the resulting pkgs.nix. The application of this function
4 * to a source path can thus be used directly as the input to mkStackPackageSet
7{ src, stackYaml ? null }:
9 pkgsNix = pkgs.stdenv.mkDerivation {
12 nativeBuildInputs = [ nix-tools pkgs.nix-prefetch-git ];
14 export LANG=C.utf8 # Needed or stack-to-nix will die on unicode inputs
16 stack-to-nix --stack-yaml=$src/${if stackYaml == null then "stack.yaml" else stackYaml} -o $out
17 mv $out/pkgs.nix $out/default.nix
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list