1
0
Fork 0
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:
Zhaofeng Li 2023-01-08 00:57:22 -07:00
parent 864b62652b
commit ffae7002b3
2 changed files with 4 additions and 2 deletions

View file

@ -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.

View file

@ -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