mirror of
https://github.com/zhaofengli/attic.git
synced 2024-12-14 11:57:30 +00:00
Explicitly specify the cranes to build
This commit is contained in:
parent
864b62652b
commit
ffae7002b3
2 changed files with 4 additions and 2 deletions
|
@ -66,6 +66,8 @@ let
|
|||
# See comment in `attic-tests`
|
||||
doCheck = false;
|
||||
|
||||
cargoExtraArgs = "-p attic-client -p attic-server";
|
||||
|
||||
postInstall = lib.optionalString (stdenv.hostPlatform == stdenv.buildPlatform) ''
|
||||
if [[ -f $out/bin/attic ]]; then
|
||||
installShellCompletion --cmd attic \
|
||||
|
@ -78,7 +80,7 @@ let
|
|||
|
||||
# Client-only package.
|
||||
attic-client = attic.overrideAttrs (old: {
|
||||
cargoExtraArgs = (old.cargoExtraArgs or "") + " -p attic-client";
|
||||
cargoExtraArgs = " -p attic-client";
|
||||
});
|
||||
|
||||
# Server-only package with fat LTO enabled.
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
, clientOnly ? false
|
||||
|
||||
# Only build certain crates
|
||||
, crates ? if clientOnly then [ "attic-client" ] else []
|
||||
, crates ? if clientOnly then [ "attic-client" ] else [ "attic-client" "attic-server" ]
|
||||
}:
|
||||
|
||||
let
|
||||
|
|
Loading…
Reference in a new issue