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 5c09399 commit ab5bd72
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 18 deletions.
16 changes: 8 additions & 8 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 @@ -53,7 +53,7 @@
...
}: let
craneLib = inputs.crane.lib.${system};
src = craneLib.cleanCargoSource ./.;
src = craneLib.cleanCargoSource (craneLib.path ./.);
bareCommonArgs = {
inherit src;
nativeBuildInputs = with pkgs; [
Expand All @@ -63,6 +63,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 ab5bd72

Please sign in to comment.