nixpkgs/pkgs/development/tools/yarn2nix-moretea/yarn2nix
Maximilian Bosch c20fbabd9b
yarn2nix: run `nix-prefetch-git` with `--fetch-submodules`
`pkgs.fetchgit` uses `fetchSubmodules = true;` by default, however
`nix-prefetch-git` doesn't. This means that hashes for a Git repository
with fetched submodules will be wrong in `yarn.nix`.

Considering that this got unnoticed before, it seems as if this case is
an exception to a certain degree.

An exemplary problem is the last `hedgedoc` update[1] where
`js-sequence-diagrams` - a Git repo with submodules - from upstream's
package.json caused a hash mismatch. This got unnoticed because
`nix-build --check` doesn't seem to reveal these issues for fixed-output
derivations.

[1] https://github.com/NixOS/nixpkgs/pull/139238

(cherry picked from commit 46c98ae1327b7d14af1927fda971762e5ee53dfe)
2021-09-26 01:12:43 +02:00
..
bin
internal
lib yarn2nix: run `nix-prefetch-git` with `--fetch-submodules` 2021-09-26 01:12:43 +02:00
nix
LICENSE.txt
default.nix mkYarnPackage: allow overriding version 2020-12-13 13:42:56 +01:00
package.json
yarn.lock yarn2nix: yarn update 2021-01-01 17:35:05 +01:00
yarn.nix yarn2nix: yarn update 2021-01-01 17:35:05 +01:00