Adding more cargo make targets to nix

This commit is contained in:
Andrew Rioux 2024-01-24 21:14:55 -05:00
parent 5fe4450f39
commit 28dd9f5138
Signed by: andrew.rioux
GPG Key ID: 9B8BAC47C17ABB94

View File

@ -128,6 +128,20 @@
pname = "sparse-c2-beacon"; pname = "sparse-c2-beacon";
cargoExtraArgs = "-p sparse-c2-beacon --locked"; cargoExtraArgs = "-p sparse-c2-beacon --locked";
}); });
sparse-c2-server = craneLib.buildPackage (commonArgs // {
inherit artifacts;
pname = "sparse-c2-server";
cargoExtraArgs = "-p sparse-c2-server --locked";
});
sparse-c2-client = craneLib.buildPackage (commonArgs // {
inherit artifacts;
pname = "sparse-c2-client";
cargoExtraArgs = "-p sparse-c2-client --locked";
});
in with pkgs; { in with pkgs; {
devShells.default = craneLib.devShell { devShells.default = craneLib.devShell {
name = "sparse"; name = "sparse";
@ -140,10 +154,10 @@
}; };
packages = { packages = {
inherit sparse-05-linux-server sparse-05-windows-server; inherit sparse-05-linux-server sparse-05-windows-server
inherit sparse-05-client; sparse-05-client;
inherit sparse-c2-linux-beacon; inherit sparse-c2-linux-beacon sparse-c2-server sparse-c2-client;
default = sparse-05-client; default = sparse-05-client;
}; };