ocamlPackages.twt: switch to fetchFromGitHub

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

View file

@ -1,11 +1,14 @@
{ lib, stdenv, fetchzip, ocaml, findlib }: { lib, stdenv, fetchFromGitHub, ocaml, findlib }:
stdenv.mkDerivation { stdenv.mkDerivation rec {
name = "ocaml${ocaml.version}-twt-0.94.0"; pname = "ocaml${ocaml.version}-twt";
version = "0.94.0";
src = fetchzip { src = fetchFromGitHub {
url = "https://github.com/mlin/twt/archive/v0.94.0.tar.gz"; owner = "mlin";
sha256 = "0298gdgzl4cifxnc1d8sbrvz1lkiq5r5ifkq1fparm6gvqywpf65"; repo = "twt";
rev = "v${version}";
sha256 = "sha256-xbjLPd7P1KyuC3i6WHLBcdLwd14atcBsd5ER+l97KAk=";
}; };
buildInputs = [ ocaml findlib ]; buildInputs = [ ocaml findlib ];
@ -26,6 +29,6 @@ stdenv.mkDerivation {
description = "The Whitespace Thing for OCaml"; description = "The Whitespace Thing for OCaml";
license = licenses.mit; license = licenses.mit;
maintainers = [ maintainers.vbgl ]; maintainers = [ maintainers.vbgl ];
platforms = ocaml.meta.platforms or []; platforms = ocaml.meta.platforms or [ ];
}; };
} }