ascendancy/flake.nix

41 lines
1 KiB
Nix
Raw Normal View History

2024-07-30 05:09:40 +00:00
{
description = "A very basic flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
rust-overlay = {
url = "github:oxalica/rust-overlay";
inputs.nixpkgs.follows = "nixpkgs";
};
2024-07-30 05:09:40 +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;
2024-09-25 12:26:03 +00:00
additionalBuildInputs =
let latestNightlyWith = pkgs.rust-bin.selectLatestNightlyWith;
in [
(latestNightlyWith (toolchain: toolchain.default.override {
extensions = [ "rust-src" ];
}))
];
2024-07-30 08:03:38 +00:00
};
2024-07-30 06:30:34 +00:00
});
};
2024-07-30 05:09:40 +00:00
}