nix-community / yarn2nix

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

github dependencies in package.json are missing .tgz #65

Open hlolli opened 6 years ago

hlolli commented 6 years ago

For the following depdendency "nexe": "github:anmonteiro/nexe#master"

yarn2nix outputs

    {
      name = "fb5c08989cdd699983823cfd4c9f9e010fcc5276";
      path = fetchurl {
        name = "fb5c08989cdd699983823cfd4c9f9e010fcc5276";
        url  = "https://codeload.github.com/anmonteiro/nexe/tar.gz/fb5c08989cdd699983823cfd4c9f9e010fcc5276";
        sha1 = "945822f8e7127886ec2d7ac99beffea207014149";
      };
    }

So when I use it as source in my derivation, it wont unpack

unpacking source archive /nix/store/8bpkb0h642s193xlz00xf3nr1yrzs34g-fb5c08989cdd699983823cfd4c9f9e010fcc5276
do not know how to unpack source archive /nix/store/8bpkb0h642s193xlz00xf3nr1yrzs34g-fb5c08989cdd699983823cfd4c9f9e010fcc5276

Maybe some mechanism to ensure that name always ends with .tgz would be suitable? At least in the case of github: deps.