ocamlPackages.bitv: switch to fetchFromGitHub
This commit is contained in:
parent
efc2291b39
commit
4cc77649c6
1 changed files with 7 additions and 5 deletions
|
@ -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"
|
if !lib.versionAtLeast ocaml.version "4.02"
|
||||||
then throw "bitv is not available for OCaml ${ocaml.version}"
|
then throw "bitv is not available for OCaml ${ocaml.version}"
|
||||||
else
|
else
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "ocaml${ocaml.version}-bitv-${version}";
|
pname = "ocaml${ocaml.version}-bitv";
|
||||||
version = "1.3";
|
version = "1.3";
|
||||||
|
|
||||||
src = fetchzip {
|
src = fetchFromGitHub {
|
||||||
url = "https://github.com/backtracking/bitv/archive/${version}.tar.gz";
|
owner = "backtracking";
|
||||||
sha256 = "0vkh1w9fpi5m1sgiqg6r38j3fqglhdajmbyiyr91113lrpljm75i";
|
repo = "bitv";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "sha256-sZwq6c10hBBS9tGvKlWD9GE3JBrZPByfDrXE6xIPcG4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ autoreconfHook which ocaml findlib ];
|
buildInputs = [ autoreconfHook which ocaml findlib ];
|
||||||
|
|
Loading…
Reference in a new issue