lol

ocamlPackages.sqlite3EZ: switch to fetchFromGitHub

authored by

Felix Buehler and committed by
Jonathan Ringer
a1f3382f 156e4d31

+10 -7
+10 -7
pkgs/development/ocaml-modules/sqlite3EZ/default.nix
··· 1 - { lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild, twt, ocaml_sqlite3 }: 1 + { lib, stdenv, fetchFromGitHub, ocaml, findlib, ocamlbuild, twt, ocaml_sqlite3 }: 2 2 3 3 assert lib.versionAtLeast (lib.getVersion ocaml) "3.12"; 4 4 ··· 6 6 then throw "sqlite3EZ is not available for OCaml ${ocaml.version}" 7 7 else 8 8 9 - stdenv.mkDerivation { 10 - name = "ocaml-sqlite3EZ-0.1.0"; 9 + stdenv.mkDerivation rec { 10 + pname = "ocaml-sqlite3EZ"; 11 + version = "0.1.0"; 11 12 12 - src = fetchurl { 13 - url = "https://github.com/mlin/ocaml-sqlite3EZ/archive/v0.1.0.tar.gz"; 14 - sha256 = "8ed2c5d5914a65cbd95589ef11bfb8b38a020eb850cdd49b8adce7ee3a563748"; 13 + src = fetchFromGitHub { 14 + owner = "mlin"; 15 + repo = "ocaml-sqlite3EZ"; 16 + rev = "v${version}"; 17 + sha256 = "sha256-pKysvth0efxJeyJQY2Dnqarg7OtsKyyLnFV/1ZhsfDY="; 15 18 }; 16 19 17 20 buildInputs = [ ocaml findlib ocamlbuild twt ]; ··· 25 28 description = "A thin wrapper for sqlite3-ocaml with a simplified interface"; 26 29 license = licenses.mit; 27 30 maintainers = [ maintainers.vbgl ]; 28 - platforms = ocaml.meta.platforms or []; 31 + platforms = ocaml.meta.platforms or [ ]; 29 32 }; 30 33 }