ocamlPackages.sqlite3EZ: switch to fetchFromGitHub
This commit is contained in:
parent
156e4d312d
commit
a1f3382fb6
@ -1,4 +1,4 @@
|
|||||||
{ lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild, twt, ocaml_sqlite3 }:
|
{ lib, stdenv, fetchFromGitHub, ocaml, findlib, ocamlbuild, twt, ocaml_sqlite3 }:
|
||||||
|
|
||||||
assert lib.versionAtLeast (lib.getVersion ocaml) "3.12";
|
assert lib.versionAtLeast (lib.getVersion ocaml) "3.12";
|
||||||
|
|
||||||
@ -6,12 +6,15 @@ if lib.versionAtLeast ocaml.version "4.06"
|
|||||||
then throw "sqlite3EZ is not available for OCaml ${ocaml.version}"
|
then throw "sqlite3EZ is not available for OCaml ${ocaml.version}"
|
||||||
else
|
else
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation rec {
|
||||||
name = "ocaml-sqlite3EZ-0.1.0";
|
pname = "ocaml-sqlite3EZ";
|
||||||
|
version = "0.1.0";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "https://github.com/mlin/ocaml-sqlite3EZ/archive/v0.1.0.tar.gz";
|
owner = "mlin";
|
||||||
sha256 = "8ed2c5d5914a65cbd95589ef11bfb8b38a020eb850cdd49b8adce7ee3a563748";
|
repo = "ocaml-sqlite3EZ";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "sha256-pKysvth0efxJeyJQY2Dnqarg7OtsKyyLnFV/1ZhsfDY=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ ocaml findlib ocamlbuild twt ];
|
buildInputs = [ ocaml findlib ocamlbuild twt ];
|
||||||
@ -25,6 +28,6 @@ stdenv.mkDerivation {
|
|||||||
description = "A thin wrapper for sqlite3-ocaml with a simplified interface";
|
description = "A thin wrapper for sqlite3-ocaml with a simplified interface";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = [ maintainers.vbgl ];
|
maintainers = [ maintainers.vbgl ];
|
||||||
platforms = ocaml.meta.platforms or [];
|
platforms = ocaml.meta.platforms or [ ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user