icomidal/flake.nix
2025-09-23 15:32:58 +02:00

28 lines
701 B
Nix

{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs, ... }@inputs:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
common = {
buildInputs = [ pkgs.openssl ];
nativeBuildInputs = [ pkgs.pkg-config ];
};
in {
devShells.${system}.default = pkgs.mkShell ({
packages = with pkgs; [
rustc
cargo
];
} // common);
packages.${system}.default = pkgs.rustPlatform.buildRustPackage ({
name = "icomidal";
src = ./.;
cargoHash = "sha256-AZ48f1BGGNh4gdJSAC5RFm6FPT3rETLrPbWjMp5TFD8=";
} // common);
};
}