ocamlPackages.sqlite3EZ: switch to fetchFromGitHub

This commit is contained in:
Felix Buehler 2021-10-30 16:58:33 +02:00 committed by Jonathan Ringer
parent 156e4d312d
commit a1f3382fb6

View File

@ -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";
@ -6,12 +6,15 @@ if lib.versionAtLeast ocaml.version "4.06"
then throw "sqlite3EZ is not available for OCaml ${ocaml.version}"
else
stdenv.mkDerivation {
name = "ocaml-sqlite3EZ-0.1.0";
stdenv.mkDerivation rec {
pname = "ocaml-sqlite3EZ";
version = "0.1.0";
src = fetchurl {
url = "https://github.com/mlin/ocaml-sqlite3EZ/archive/v0.1.0.tar.gz";
sha256 = "8ed2c5d5914a65cbd95589ef11bfb8b38a020eb850cdd49b8adce7ee3a563748";
src = fetchFromGitHub {
owner = "mlin";
repo = "ocaml-sqlite3EZ";
rev = "v${version}";
sha256 = "sha256-pKysvth0efxJeyJQY2Dnqarg7OtsKyyLnFV/1ZhsfDY=";
};
buildInputs = [ ocaml findlib ocamlbuild twt ];
@ -25,6 +28,6 @@ stdenv.mkDerivation {
description = "A thin wrapper for sqlite3-ocaml with a simplified interface";
license = licenses.mit;
maintainers = [ maintainers.vbgl ];
platforms = ocaml.meta.platforms or [];
platforms = ocaml.meta.platforms or [ ];
};
}