ocamlPackages.bitv: switch to fetchFromGitHub
This commit is contained in:
parent
efc2291b39
commit
4cc77649c6
@ -1,16 +1,18 @@
|
||||
{ stdenv, lib, fetchzip, autoreconfHook, which, ocaml, findlib }:
|
||||
{ stdenv, lib, fetchFromGitHub, autoreconfHook, which, ocaml, findlib }:
|
||||
|
||||
if !lib.versionAtLeast ocaml.version "4.02"
|
||||
then throw "bitv is not available for OCaml ${ocaml.version}"
|
||||
else
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "ocaml${ocaml.version}-bitv-${version}";
|
||||
pname = "ocaml${ocaml.version}-bitv";
|
||||
version = "1.3";
|
||||
|
||||
src = fetchzip {
|
||||
url = "https://github.com/backtracking/bitv/archive/${version}.tar.gz";
|
||||
sha256 = "0vkh1w9fpi5m1sgiqg6r38j3fqglhdajmbyiyr91113lrpljm75i";
|
||||
src = fetchFromGitHub {
|
||||
owner = "backtracking";
|
||||
repo = "bitv";
|
||||
rev = version;
|
||||
sha256 = "sha256-sZwq6c10hBBS9tGvKlWD9GE3JBrZPByfDrXE6xIPcG4=";
|
||||
};
|
||||
|
||||
buildInputs = [ autoreconfHook which ocaml findlib ];
|
||||
|
Loading…
Reference in New Issue
Block a user