nix-community / yarn2nix

Generate nix expressions from a yarn.lock file [maintainer=???]
GNU General Public License v3.0
123 stars 61 forks source link

Hash mismatch (bad parsing?) #168

Open YellowOnion opened 3 years ago

YellowOnion commented 3 years ago

package.json:

"dependencies": {
        "react-mentions": "https://github.com/Bilb/react-mentions",
}

yarn.lock:

"react-mentions@https://github.com/Bilb/react-mentions":
  version "0.0.0-development"
  resolved "https://github.com/Bilb/react-mentions#c11a77b1a7ca5ae33c5e9c5fcb2bafd5df0a14e9"
  dependencies:
    "@babel/runtime" "7.4.5"
    invariant "^2.2.4"
    prop-types "^15.5.8"
    substyle "^9.1.0"

yarn.nix:

    {
      name = "https___github.com_Bilb_react_mentions";
      path = fetchurl {
        name = "https___github.com_Bilb_react_mentions";
        url  = "https://github.com/Bilb/react-mentions";
        sha1 = "c11a77b1a7ca5ae33c5e9c5fcb2bafd5df0a14e9";
      };
    }

error during build:

hash mismatch in fixed-output derivation '/nix/store/1g45q03qhxcg4ibcyd549hxdc5r0hfxm-https___github.com_Bilb_react_mentions':
  wanted: sha1:x4a0mpymmwmwnpwwbqyf6nnalyqpf6n1
  got:    sha1:02xrmidklky5mljh84q37vsnyhb324d1

It's also triggering on:

hash mismatch in fixed-output derivation '/nix/store/3jra72i7as7dzd4jk8frffbmxx9hrpv8-https___github.com_scottnonnenberg_signal_node_sqlcipher.git':
  wanted: sha1:ifa7vzjqanxqdq69fn3pzfk2mhpj63xi
  got:    sha1:nlw10jjfwrxvf4g5yjjjrbcf30q2y72h

upstream package: https://github.com/oxen-io/session-desktop

asymmetric commented 3 years ago

Seems like a dupe of #121