mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-19 02:56:18 +00:00
chore(nix): update flake lock & fix devshell+package (#1805)
This commit is contained in:
@@ -40,3 +40,6 @@ PR_DESCRIPTION.md
|
|||||||
IMPLEMENTATION_PLAN.md
|
IMPLEMENTATION_PLAN.md
|
||||||
scripts/s3-tests/selected_tests.txt
|
scripts/s3-tests/selected_tests.txt
|
||||||
docs
|
docs
|
||||||
|
|
||||||
|
# nix stuff
|
||||||
|
result*
|
||||||
|
|||||||
@@ -76,9 +76,9 @@
|
|||||||
|
|
||||||
buildInputs = with pkgs; [
|
buildInputs = with pkgs; [
|
||||||
openssl
|
openssl
|
||||||
] ++ lib.optionals stdenv.isDarwin [
|
] ++ pkgs.lib.optionals pkgs.stdenv.isDarwin [
|
||||||
darwin.apple_sdk.frameworks.Security
|
pkgs.darwin.apple_sdk.frameworks.Security
|
||||||
darwin.apple_sdk.frameworks.SystemConfiguration
|
pkgs.darwin.apple_sdk.frameworks.SystemConfiguration
|
||||||
];
|
];
|
||||||
|
|
||||||
cargoBuildFlags = [
|
cargoBuildFlags = [
|
||||||
@@ -100,5 +100,36 @@
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
devShells = forAllSystems (
|
||||||
|
system:
|
||||||
|
let
|
||||||
|
overlays = [ (import rust-overlay) ];
|
||||||
|
pkgs = import nixpkgs { inherit system overlays; };
|
||||||
|
rustToolchain = pkgs.rust-bin.stable.latest.default.override {
|
||||||
|
extensions = [
|
||||||
|
"rust-src"
|
||||||
|
"rust-analyzer"
|
||||||
|
"clippy"
|
||||||
|
"rustfmt"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
in
|
||||||
|
{
|
||||||
|
default = pkgs.mkShell {
|
||||||
|
packages = [
|
||||||
|
rustToolchain
|
||||||
|
pkgs.pkg-config
|
||||||
|
pkgs.protobuf
|
||||||
|
pkgs.openssl
|
||||||
|
] ++ pkgs.lib.optionals pkgs.stdenv.isDarwin [
|
||||||
|
pkgs.darwin.apple_sdk.frameworks.Security
|
||||||
|
pkgs.darwin.apple_sdk.frameworks.SystemConfiguration
|
||||||
|
];
|
||||||
|
|
||||||
|
PROTOC = "${pkgs.protobuf}/bin/protoc";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user