diff --git a/pkgs/development/ocaml-modules/frontc/default.nix b/pkgs/development/ocaml-modules/frontc/default.nix index 3f204ad06b68..2f6ee7529693 100644 --- a/pkgs/development/ocaml-modules/frontc/default.nix +++ b/pkgs/development/ocaml-modules/frontc/default.nix @@ -6,14 +6,14 @@ menhir, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "FrontC"; version = "4.1.0"; src = fetchFromGitHub { owner = "BinaryAnalysisPlatform"; repo = "FrontC"; - rev = "v${version}"; + rev = "v${finalAttrs.version}"; sha256 = "1mi1vh4qgscnb470qwidccaqd068j1bqlz6pf6wddk21paliwnqb"; }; @@ -22,10 +22,10 @@ buildDunePackage rec { nativeBuildInputs = [ menhir ]; meta = { - inherit (src.meta) homepage; + inherit (finalAttrs.src.meta) homepage; inherit (ocaml.meta) platforms; description = "C Parsing Library"; license = lib.licenses.lgpl21; maintainers = [ lib.maintainers.maurer ]; }; -} +})