25 lines
638 B
Nix
25 lines
638 B
Nix
{
|
|
description = "Template for Rust";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
|
utils.url = "github:numtide/flake-utils";
|
|
rust-overlay.url = "github:oxalica/rust-overlay";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, utils, rust-overlay }:
|
|
utils.lib.eachDefaultSystem (system :
|
|
let
|
|
overlays = [(import rust-overlay)];
|
|
pkgs = import nixpkgs { inherit system overlays; };
|
|
in {
|
|
devShells.default = with pkgs; mkShell {
|
|
packages = [
|
|
openssl
|
|
pkg-config
|
|
rust-bin.stable.latest.default
|
|
];
|
|
};
|
|
}
|
|
);
|
|
}
|