diff options
Diffstat (limited to 'nixpkgs/pkgs/development/ocaml-modules/macaque/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/ocaml-modules/macaque/default.nix | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/nixpkgs/pkgs/development/ocaml-modules/macaque/default.nix b/nixpkgs/pkgs/development/ocaml-modules/macaque/default.nix index 61ee7ebfe9c5..a91e898227d6 100644 --- a/nixpkgs/pkgs/development/ocaml-modules/macaque/default.nix +++ b/nixpkgs/pkgs/development/ocaml-modules/macaque/default.nix @@ -1,10 +1,14 @@ -{ lib, stdenv, fetchzip, ocaml, findlib, ocamlbuild, pgocaml, camlp4 }: +{ lib, stdenv, fetchFromGitHub, ocaml, findlib, ocamlbuild, pgocaml, camlp4 }: -stdenv.mkDerivation { - name = "ocaml-macaque-0.7.2"; - src = fetchzip { - url = "https://github.com/ocsigen/macaque/archive/0.7.2.tar.gz"; - sha256 = "14i0a8cndzndjmlkyhf31r451q99cnkndgxcj0id4qjqhdl4bmjv"; +stdenv.mkDerivation rec { + pname = "ocaml-macaque"; + version = "0.7.2"; + + src = fetchFromGitHub { + owner = "ocsigen"; + repo = "macaque"; + rev = version; + sha256 = "sha256-W9ZFaINYYtIikKy/ZqdlKeFQSA7DQT9plc3+ZhlSIJI="; }; buildInputs = [ ocaml findlib ocamlbuild camlp4 ]; @@ -16,7 +20,7 @@ stdenv.mkDerivation { description = "Macros for Caml Queries"; homepage = "https://github.com/ocsigen/macaque"; license = licenses.lgpl2; - platforms = ocaml.meta.platforms or []; + platforms = ocaml.meta.platforms or [ ]; maintainers = with maintainers; [ vbgl ]; }; } |