Skip to content

Commit

Permalink
feat(packages/tx5-signal-srv): only compile single binary
Browse files Browse the repository at this point in the history
  • Loading branch information
steveej committed Mar 21, 2024
1 parent 3a751f2 commit 1cb54dc
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions modules/flake-parts/packages.holochain-tx5.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
system = pkgs.system;
craneLib = inputs.crane.lib.${system};
cranePkgs = inputs.crane.inputs.nixpkgs.legacyPackages.${system};
in {
tx5 = craneLib.buildPackage {

tx5Args = {
pname = "tx5";
src = inputs.tx5;
version = inputs.tx5.rev;
Expand All @@ -30,11 +30,15 @@

doCheck = false;
};
tx5Deps = lib.makeOverridable craneLib.buildDepsOnly tx5Args;
in {
tx5 = lib.makeOverridable craneLib.buildPackage (tx5Args // {
cargoArtifacts = tx5Deps;
});

tx5-signal-srv = pkgs.runCommandNoCC "tx5-signal-srv" {} ''
mkdir -p $out/bin
cp ${self'.packages.tx5}/bin/tx5-signal-srv $out/bin/
'';
tx5-signal-srv = self'.packages.tx5.override {
cargoExtraArgs = "--bin tx5-signal-srv";
};
};
};
flake = {
Expand Down

0 comments on commit 1cb54dc

Please sign in to comment.