add rust package to flake

This commit is contained in:
Joeri Exelmans 2025-09-23 13:40:56 +02:00
parent 5f0f9999fc
commit 75c85c2ee4

View file

@ -8,19 +8,22 @@
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in
{
devShells.${system}.default = pkgs.mkShell
{
common = {
buildInputs = [ pkgs.openssl ];
nativeBuildInputs = [ pkgs.pkg-config ];
};
in {
devShells.${system}.default = pkgs.mkShell ({
packages = with pkgs; [
rustc
cargo
];
buildInputs = with pkgs; [
openssl
];
nativeBuildInputs = [ pkgs.pkg-config ];
# env.RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rust}";
};
} // common);
packages.${system}.default = pkgs.rustPlatform.buildRustPackage ({
name = "icomidal";
src = ./.;
cargoHash = "sha256-vaMAQmDT2ZCZTbI9Kp/5MOTbe1a1DFqTKlcQqvR4vxA=";
} // common);
};
}