rust-nix-template/flake.nix

25 lines
617 B
Nix
Raw Normal View History

2021-04-07 00:17:50 +02:00
{
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
];
};
}
);
}