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