rust-nix-template/flake.nix
Sridhar Ratnakumar cef7b34c5a Flake support
2021-04-06 18:17:50 -04:00

24 lines
617 B
Nix

{
description = "bouncy";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
rust-overlay.url = "github:oxalica/rust-overlay";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils, rust-overlay }:
flake-utils.lib.eachDefaultSystem
(system:
let pkgs = import nixpkgs {
inherit system;
overlays = [rust-overlay.overlay ];
}; in {
devShell = pkgs.mkShell {
nativeBuildInputs = [
pkgs.rust-bin.stable.latest.default
];
};
}
);
}