ocamlPackages.easy-format: switch to fetchFromGitHub

This commit is contained in:
Felix Buehler 2021-10-30 22:51:25 +02:00
parent 0affb60221
commit 65055e3c84

View file

@ -1,15 +1,15 @@
{ lib, stdenv, fetchzip, ocaml, findlib }: { lib, stdenv, fetchFromGitHub, ocaml, findlib }:
let
stdenv.mkDerivation rec {
pname = "easy-format"; pname = "easy-format";
version = "1.2.0"; version = "1.2.0";
in
stdenv.mkDerivation {
name = "${pname}-${version}"; src = fetchFromGitHub {
owner = "mjambon";
src = fetchzip { repo = "easy-format";
url = "https://github.com/mjambon/${pname}/archive/v${version}.tar.gz"; rev = "v${version}";
sha256 = "00ga7mrlycjc99gzp3bgx6iwhf7i6j8856f8xzrf1yas7zwzgzm9"; sha256 = "sha256-qf73+T9a+eDy78iZgpA08TjIo+lvjftfSkwyT3M96gE=";
}; };
nativeBuildInputs = [ ocaml findlib ]; nativeBuildInputs = [ ocaml findlib ];
@ -22,7 +22,7 @@ stdenv.mkDerivation {
meta = with lib; { meta = with lib; {
description = "A high-level and functional interface to the Format module of the OCaml standard library"; description = "A high-level and functional interface to the Format module of the OCaml standard library";
homepage = "https://github.com/ocaml-community/${pname}"; homepage = "https://github.com/ocaml-community/easy-format";
license = licenses.bsd3; license = licenses.bsd3;
maintainers = [ maintainers.vbgl ]; maintainers = [ maintainers.vbgl ];
}; };