queeridor/flake.nix

39 lines
935 B
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"
"aarch64-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: {
default = import ./shell.nix
{
inherit pkgs;
additionalBuildInputs = [
(pkgs.rust-bin.selectLatestNightlyWith (toolchain: toolchain.default))
];
};
});
};
2024-07-30 05:09:40 +00:00
}