diff --git a/pkgs/development/ocaml-modules/httpaf/default.nix b/pkgs/development/ocaml-modules/httpaf/default.nix index ec39fd662995..c42cc1c36178 100644 --- a/pkgs/development/ocaml-modules/httpaf/default.nix +++ b/pkgs/development/ocaml-modules/httpaf/default.nix @@ -8,7 +8,7 @@ alcotest, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "httpaf"; version = "0.7.1"; @@ -16,8 +16,8 @@ buildDunePackage rec { src = fetchFromGitHub { owner = "inhabitedtype"; - repo = pname; - rev = version; + repo = "httpaf"; + rev = finalAttrs.version; sha256 = "0zk78af3qyvf6w66mg8sxygr6ndayzqw5s3zfxibvn121xwni26z"; }; @@ -33,6 +33,6 @@ buildDunePackage rec { description = "High-performance, memory-efficient, and scalable web server for OCaml"; license = lib.licenses.bsd3; maintainers = [ lib.maintainers.vbgl ]; - inherit (src.meta) homepage; + inherit (finalAttrs.src.meta) homepage; }; -} +})