mirror of
https://github.com/zhaofengli/attic.git
synced 2025-03-05 08:17:05 +00:00
crane.nix: Make attic-client actually contain the client only
This commit is contained in:
parent
94a1d44a10
commit
cb493f2982
1 changed files with 7 additions and 3 deletions
10
crane.nix
10
crane.nix
|
@ -57,7 +57,7 @@ let
|
|||
installCargoArtifactsMode = "use-zstd";
|
||||
};
|
||||
|
||||
attic = craneLib.buildPackage {
|
||||
mkAttic = args: craneLib.buildPackage ({
|
||||
pname = "attic";
|
||||
inherit src version nativeBuildInputs buildInputs cargoArtifacts;
|
||||
|
||||
|
@ -84,12 +84,16 @@ let
|
|||
maintainers = with maintainers; [ zhaofengli ];
|
||||
platforms = platforms.linux ++ platforms.darwin;
|
||||
};
|
||||
} // args);
|
||||
|
||||
attic = mkAttic {
|
||||
cargoExtraArgs = "-p attic-client -p attic-server";
|
||||
};
|
||||
|
||||
# Client-only package.
|
||||
attic-client = attic.overrideAttrs (old: {
|
||||
attic-client = mkAttic {
|
||||
cargoExtraArgs = " -p attic-client";
|
||||
});
|
||||
};
|
||||
|
||||
# Server-only package with fat LTO enabled.
|
||||
#
|
||||
|
|
Loading…
Add table
Reference in a new issue