ocaml-top: switch to fetchFromGitHub

This commit is contained in:
Felix Buehler
2021-10-30 13:10:23 -07:00
committed by Jonathan Ringer
parent bcf11847a2
commit 1dcfdaf9eb
@@ -1,4 +1,4 @@
{ lib, fetchzip, ncurses, ocamlPackages }:
{ lib, fetchFromGitHub, ncurses, ocamlPackages }:
with ocamlPackages; buildDunePackage rec {
pname = "ocaml-top";
@@ -6,9 +6,11 @@ with ocamlPackages; buildDunePackage rec {
useDune2 = true;
src = fetchzip {
url = "https://github.com/OCamlPro/ocaml-top/archive/${version}.tar.gz";
sha256 = "1r290m9vvr25lgaanivz05h0kf4fd3h5j61wj4hpp669zffcyyb5";
src = fetchFromGitHub {
owner = "OCamlPro";
repo = "ocaml-top";
rev = "1.2.0-rc";
sha256 = "sha256-ZXnPnPvJmHshkTwYWeBojrgJYAF/R6vUo0XkvVMFSeQ=";
};
buildInputs = [ ncurses ocp-build lablgtk3-sourceview3 ocp-index ];