Results 98 comments of Dmitry Bushev

Yes, I saw [the discussion](https://gist.github.com/bts/0f0abdef6f69b1a165181ef1d1be0360#gistcomment-2323219), but unfortunately, it didn't work out in this case. Maybe I did something wrong though.

Thanks again for the fixed overrides. Now it becomes interesting because I can build [static columnate](https://github.com/4e6/columnate/tree/ghc822), but `stackage2nix` fails, both built the same configure flags and compilers: ``` configureFlags: --verbose...

`nix-build nixpkgs.nix -A stackage2nix-static` produces shell wrapper: ``` cat result/bin/stackage2nix #! /nix/store/jgw8hxx7wzkyhb2dr9hwsd9h2caaasdc-bash-4.4-p12/bin/bash -e export PATH=/nix/store/c7axbcb4f21n7m6kjdkrfzs2z2p28k14-nix-1.11.16/bin${PATH:+:}$PATH export PATH=/nix/store/bnk2g0kb0qlgwgwpv3w27q8z56066mhk-nix-prefetch-scripts/bin${PATH:+:}$PATH exec "/nix/store/hks82qha44a85ajyzmpnk29vmq2fvypf-stackage2nix-0.5.0/bin/stackage2nix" --all-cabal-hashes /nix/store/ypvs0w4fbvnmz4ihh2drx3gfs2j9kap8-all-cabal-hashes --lts-haskell /nix/store/ssb36cjzm8yp8fzfwjaydipkkfb0wkvi-stackage-lts --hackage-db /nix/store/ahk3g1f0xabkb1d1wvv49vjmshpzm8yj-hackage-db/01-index.tar "${extraFlagsArray[@]}" "$@" ``` Compiled binary...

I also thought that it might be the issue with linked libraries (it prints some warnings during linking), but it still fails with libraries commented out: ``` diff --git a/default.nix...

If yaml format has changed, I don't see a workaround for this issue. The version of the stack binary I am currently using still supports the old format, so maybe...

TODO: - Custom snapshots. + [ ] Generate Stackage from a snapshot [config file](https://docs.haskellstack.org/en/stable/custom_snapshot/) + [ ] `--resolver` arg should accept a path to yaml config with a custom Stackage...

`stackage2nix` should support subdirs. Can it be a problem with indentation? https://github.com/typeable/stackage2nix/blob/c40a8f0c3a8982d7dc74a84d065fd7b60f63e762/test/Stack/Config/YamlSpec.hs#L31-L36

You definitely can. Check out Nixpkgs example [9.5.3.2. How to build projects that depend on each other](https://nixos.org/nixpkgs/manual/#how-to-create-nix-builds-for-your-own-private-haskell-packages) Suppose, project `foo` is missing from generated Haskell packages, so you add derivation...

`stackage2nix` build is only tested against a specific haskell packages set, based on Stackage LTS. To install `stackage2nix`, please use the Stackage overlay https://github.com/typeable/nixpkgs-stackage or the nix expression from this...

It could be, if no one is interested in maintaining it.