use shell for running nixpkgs-update to get proper dependencies

It was using dependencies from the environment instead of the ones
specified in the build inputs. Probably we need to fix this with
propagated build inputs, but this works for now.
This commit is contained in:
Ryan Mulligan 2019-08-03 15:05:53 -07:00
parent bf66887f0a
commit 8a19788164

View File

@ -79,7 +79,7 @@ test a package with one command.
git clone https://github.com/ryantm/repology-api.git && cd repology-api
nix run nixpkgs.cabal2nix -c cabal2nix --shell --hpack . > shell.nix && nix-build shell.nix && result/bin/repology-api > ../packages-to-update.txt
```
3. Return back `cd ..` and run the tool `nix run -c nixpkgs-update --update`
3. Return back `cd ..` and run the tool `nix shell --run "nixpkgs-update --update"`
# Adding new dependencies / updating Cabal file