forked from nrabulinski/attic
Explicitly specify the cranes to build
This commit is contained in:
parent
864b62652b
commit
ffae7002b3
|
@ -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