2024-07-30 05:09:40 +00:00
|
|
|
{
|
|
|
|
description = "A very basic flake";
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
2024-07-30 05:38:22 +00:00
|
|
|
rust-overlay = {
|
|
|
|
url = "github:oxalica/rust-overlay";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-07-30 05:09:40 +00:00
|
|
|
};
|
|
|
|
|
2024-07-30 05:38:22 +00:00
|
|
|
outputs = { nixpkgs, rust-overlay, ... }:
|
|
|
|
let
|
|
|
|
# System types to support.
|
|
|
|
supportedSystems = [
|
|
|
|
"x86_64-linux"
|
|
|
|
];
|
|
|
|
|
|
|
|
forAllSystems = function: nixpkgs.lib.genAttrs supportedSystems
|
|
|
|
(system: function (import nixpkgs {
|
|
|
|
inherit system;
|
|
|
|
overlays = [ rust-overlay.overlays.default ];
|
|
|
|
}));
|
|
|
|
in
|
|
|
|
{
|
2024-07-30 06:30:34 +00:00
|
|
|
devShells = forAllSystems
|
|
|
|
(pkgs: {
|
2024-07-30 08:03:38 +00:00
|
|
|
default = import ./shell.nix {
|
|
|
|
inherit pkgs;
|
|
|
|
additionalBuildInputs = [
|
|
|
|
(pkgs.rust-bin.selectLatestNightlyWith (toolchain: toolchain.default))
|
|
|
|
];
|
|
|
|
};
|
2024-07-30 06:30:34 +00:00
|
|
|
});
|
2024-07-30 05:38:22 +00:00
|
|
|
};
|
2024-07-30 05:09:40 +00:00
|
|
|
}
|