calling using self to get the current packages.

This commit is contained in:
lIlIlIlIIIIlIIIllIIlIllIIllIII 2022-05-31 16:59:09 +02:00
parent bf3b24a3f4
commit 13b94eb469
No known key found for this signature in database
GPG Key ID: 0D4F3CEF398F7CC0
3 changed files with 9 additions and 7 deletions

View File

@ -32,7 +32,7 @@ buildDunePackage rec {
minimumOCamlVersion = "4.11";
src = ./.;
src = ../.;
useDune2 = true;

View File

@ -13,9 +13,10 @@ ocamlPackages.overrideScope' (self: super: {
}).overrideAttrs (_: {
doCheck = false;
});
bindlib = ocamlPackages.callPackage ./bindlib.nix { };
unionfind = ocamlPackages.callPackage ./unionfind.nix { };
ninja_utils = ocamlPackages.callPackage ./ninja_utils.nix { };
clerk = ocamlPackages.callPackage ./clerk.nix { };
ppx_yojson_conv = ocamlPackages.callPackage ./ppx_yojson_conv.nix { };
catala = self.callPackage ./catala.nix { };
bindlib = self.callPackage ./bindlib.nix { };
unionfind = self.callPackage ./unionfind.nix { };
ninja_utils = self.callPackage ./ninja_utils.nix { };
clerk = self.callPackage ./clerk.nix { };
ppx_yojson_conv = self.callPackage ./ppx_yojson_conv.nix { };
})

View File

@ -14,7 +14,8 @@
in
rec {
packages = {
catala = ocamlPackages.callPackage ./. {};
catala = ocamlPackages.catala;
clerk = ocamlPackages.clerk;
};
defaultPackage = packages.catala;
devShell = pkgs.mkShell {