2
0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-04-15 19:48:43 +00:00

ocaml-top: switch to fetchFromGitHub

This commit is contained in:
Felix Buehler 2021-10-30 13:20:32 +02:00 committed by Jonathan Ringer
parent bcf11847a2
commit 1dcfdaf9eb

View File

@ -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 ];