lol

camlp5: replace fetchzip with fetchFromGitHub

+8 -5
+8 -5
pkgs/development/tools/ocaml/camlp5/default.nix
··· 1 - { lib, stdenv, fetchzip, ocaml, perl }: 1 + { lib, stdenv, fetchFromGitHub, ocaml, perl }: 2 2 3 3 if lib.versionOlder ocaml.version "4.02" 4 4 then throw "camlp5 is not available for OCaml ${ocaml.version}" 5 5 else 6 6 7 - stdenv.mkDerivation { 7 + stdenv.mkDerivation rec { 8 8 9 - name = "camlp5-7.14"; 9 + pname = "camlp5"; 10 + version = "7.14"; 10 11 11 - src = fetchzip { 12 - url = "https://github.com/camlp5/camlp5/archive/rel714.tar.gz"; 12 + src = fetchFromGitHub { 13 + owner = "camlp5"; 14 + repo = "camlp5"; 15 + rev = "rel${builtins.replaceStrings [ "." ] [ "" ] version}"; 13 16 sha256 = "1dd68bisbpqn5lq2pslm582hxglcxnbkgfkwhdz67z4w9d5nvr7w"; 14 17 }; 15 18