@@ -1,4 +1,4 @@
1−{ lib, stdenv, fetchurl, fetchFromGitHub, ocaml, findlib, ocamlbuild
1+{ lib, stdenv, fetchFromGitHub, ocaml, findlib, ocamlbuild
22, buildDunePackage
33}:
44
@@ -21,13 +21,15 @@ if lib.versionAtLeast ocaml.version "4.02" then
2121
2222buildDunePackage rec {
2323 inherit pname;
24− version = "1.6.7";
24+ version = "1.6.8";
2525
2626 useDune2 = true;
2727
28− src = fetchurl {
29− url = "https://github.com/ocaml-community/cppo/releases/download/v${version}/cppo-v${version}.tbz";
30− sha256 = "17ajdzrnmnyfig3s6hinb56mcmhywbssxhsq32dz0v90dhz3wmfv";
28+ src = fetchFromGitHub {
29+ owner = "ocaml-community";
30+ repo = pname;
31+ rev = "v${version}";
32+ sha256 = "sha256:0xjb1dnj8lvdcccskrhrakknd9q4vfy5330sjbqpf4h95dsz90k9";
3133 };
3234
3335 doCheck = true;