`fetchFromGithub` is a wrapper around `fetchZip` [1], so I suspect `nix-prefetch-zip` would work.
[1]: https://github.com/NixOS/nixpkgs/blob/master/pkgs/top-level/all-packages.nix#L372 On Sun, May 31, 2015, at 18:44, Arseniy Seroka wrote: > Hello! > What is a proper way to get pkg's sha if I use `fetchFromGithub`? > I do `nix-prefetch-git https://github/repo/owner` to get latest > revision and hash sum. And use`fetchGit` in derivation. > > But now I want to switch to a right way of fetching from GH. But > how can I do this (get information about latest rev, date, sha256 etc.) > to use `fetchFromGithub`? It's hash sum is different than `fetchGit`. > > -- > Sincerely, > Arseniy Seroka > _______________________________________________ > nix-dev mailing list > [email protected] > http://lists.science.uu.nl/mailman/listinfo/nix-dev _______________________________________________ nix-dev mailing list [email protected] http://lists.science.uu.nl/mailman/listinfo/nix-dev
