ocamlPackages.variantslib: switch to fetchFromGitHub
This commit is contained in:
parent
fb0c89af55
commit
6fd5756e49
@ -1,4 +1,4 @@
|
||||
{ lib, buildOcaml, ocaml, fetchurl, type_conv }:
|
||||
{ lib, buildOcaml, ocaml, fetchFromGitHub, type_conv }:
|
||||
|
||||
if lib.versionAtLeast ocaml.version "4.06"
|
||||
then throw "variantslib-109.15.03 is not available for OCaml ${ocaml.version}"
|
||||
@ -10,9 +10,11 @@ buildOcaml rec {
|
||||
|
||||
minimumSupportedOcamlVersion = "4.00";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/janestreet/variantslib/archive/${version}.tar.gz";
|
||||
sha256 = "a948dcdd4ca54786fe0646386b6e37a9db03bf276c6557ea374d82740bf18055";
|
||||
src = fetchFromGitHub {
|
||||
owner = "janestreet";
|
||||
repo = "variantslib";
|
||||
rev = version;
|
||||
sha256 = "sha256-pz3i3od2CqKSrm7uTQ2jdidFFwx7m7g1QuG4UdLk01k=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ type_conv ];
|
||||
|
Loading…
Reference in New Issue
Block a user