{ ocamlVersion }: let lock = builtins.fromJSON (builtins.readFile ./../../flake.lock); src = fetchGit { url = with lock.nodes.nixpkgs.locked; "https://github.com/${owner}/${repo}"; inherit (lock.nodes.nixpkgs.locked) rev; allRefs = true; }; nix-filter-src = fetchGit { url = with lock.nodes.nix-filter.locked; "https://github.com/${owner}/${repo}"; inherit (lock.nodes.nix-filter.locked) rev; # inherit (lock.nodes.nixpkgs.original) ref; allRefs = true; }; nix-filter = import "${nix-filter-src}"; pkgs = import "${src}" { extraOverlays = [ (self: super: { ocamlPackages = super.ocaml-ng."ocamlPackages_${ocamlVersion}"; }) ]; }; in pkgs.callPackage ./.. { inherit nix-filter; doCheck = true; }