Skip to content

Commit

Permalink
Add workaround for ipetkov/crane#385
Browse files Browse the repository at this point in the history
  • Loading branch information
linyinfeng committed Oct 1, 2023
1 parent 836b909 commit c632217
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 41 deletions.
62 changes: 31 additions & 31 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 9 additions & 9 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
...
}: let
craneLib = inputs.crane.lib.${system};
src = craneLib.cleanCargoSource ./.;
src = craneLib.cleanCargoSource (craneLib.path ./.);
bareCommonArgs = {
inherit src;
nativeBuildInputs = with pkgs; [
Expand All @@ -62,6 +62,8 @@
openssl
sqlite
];
# TODO https://github.com/ipetkov/crane/issues/385
doNotLinkInheritedArtifacts = true;
};
cargoArtifacts = craneLib.buildDepsOnly bareCommonArgs;
commonArgs = bareCommonArgs // {inherit cargoArtifacts;};
Expand Down

0 comments on commit c632217

Please sign in to comment.