add tracing-mode in nix
This commit is contained in:
parent
dc15d4833b
commit
56dd40cd1c
10
flake.nix
10
flake.nix
@ -26,13 +26,15 @@
|
||||
rustc = toolchain;
|
||||
};
|
||||
|
||||
buildWithPackages = pkgs: pkgsStatic: (buildRustPlatform pkgsStatic).buildRustPackage rec {
|
||||
buildWithPackages = pkgs: pkgsStatic: features: (buildRustPlatform pkgsStatic).buildRustPackage rec {
|
||||
pname = "x2t-sandbox";
|
||||
version = "1.0.0";
|
||||
|
||||
nativeBuildInputs = buildTools pkgs;
|
||||
buildInputs = libraries pkgsStatic;
|
||||
|
||||
buildFeatures = features;
|
||||
|
||||
src = ./.;
|
||||
|
||||
cargoLock = {
|
||||
@ -53,8 +55,10 @@
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
in
|
||||
rec {
|
||||
x2t-sandbox-static = buildWithPackages pkgs pkgs.pkgsStatic;
|
||||
x2t-sandbox = buildWithPackages pkgs pkgs;
|
||||
x2t-sandbox-static = buildWithPackages pkgs pkgs.pkgsStatic [];
|
||||
x2t-sandbox-static-tracing-mode = buildWithPackages pkgs pkgs.pkgsStatic ["tracing-mode"];
|
||||
|
||||
x2t-sandbox = buildWithPackages pkgs pkgs [];
|
||||
|
||||
default = x2t-sandbox-static;
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user