mirror of
https://github.com/zhaofengli/attic.git
synced 2025-03-15 21:08:23 +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`
|
# See comment in `attic-tests`
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
|
cargoExtraArgs = "-p attic-client -p attic-server";
|
||||||
|
|
||||||
postInstall = lib.optionalString (stdenv.hostPlatform == stdenv.buildPlatform) ''
|
postInstall = lib.optionalString (stdenv.hostPlatform == stdenv.buildPlatform) ''
|
||||||
if [[ -f $out/bin/attic ]]; then
|
if [[ -f $out/bin/attic ]]; then
|
||||||
installShellCompletion --cmd attic \
|
installShellCompletion --cmd attic \
|
||||||
|
@ -78,7 +80,7 @@ let
|
||||||
|
|
||||||
# Client-only package.
|
# Client-only package.
|
||||||
attic-client = attic.overrideAttrs (old: {
|
attic-client = attic.overrideAttrs (old: {
|
||||||
cargoExtraArgs = (old.cargoExtraArgs or "") + " -p attic-client";
|
cargoExtraArgs = " -p attic-client";
|
||||||
});
|
});
|
||||||
|
|
||||||
# Server-only package with fat LTO enabled.
|
# Server-only package with fat LTO enabled.
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
, clientOnly ? false
|
, clientOnly ? false
|
||||||
|
|
||||||
# Only build certain crates
|
# Only build certain crates
|
||||||
, crates ? if clientOnly then [ "attic-client" ] else []
|
, crates ? if clientOnly then [ "attic-client" ] else [ "attic-client" "attic-server" ]
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
|
Loading…
Add table
Reference in a new issue