diff --git a/pkgs/development/ocaml-modules/qtest/default.nix b/pkgs/development/ocaml-modules/qtest/default.nix index de1bbca4ef08..a9d71597d44a 100644 --- a/pkgs/development/ocaml-modules/qtest/default.nix +++ b/pkgs/development/ocaml-modules/qtest/default.nix @@ -5,14 +5,14 @@ qcheck, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "qtest"; version = "2.11.2"; src = fetchFromGitHub { owner = "vincent-hugot"; - repo = pname; - rev = "v${version}"; + repo = "qtest"; + rev = "v${finalAttrs.version}"; sha256 = "sha256-VLY8+Nu6md0szW4RVxTFwlSQ9kyrgUqf7wQEA6GW8BE="; }; @@ -27,8 +27,8 @@ buildDunePackage rec { meta = { description = "Inline (Unit) Tests for OCaml"; mainProgram = "qtest"; - inherit (src.meta) homepage; + inherit (finalAttrs.src.meta) homepage; maintainers = with lib.maintainers; [ vbgl ]; license = lib.licenses.gpl3; }; -} +})