rust/src/tools/nix-dev-shell/flake.nix
Ross Smyth 5a38550a39 Deduplicate nix code
And clean it up a little.
2025-04-17 00:01:04 -04:00

24 lines
531 B
Nix

{
description = "rustc dev shell";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
outputs =
{
self,
nixpkgs,
}:
let
inherit (nixpkgs) lib;
forEachSystem = lib.genAttrs lib.systems.flakeExposed;
in
{
devShells = forEachSystem (system: {
default = nixpkgs.legacyPackages.${system}.callPackage ./shell.nix { };
});
packages = forEachSystem (system: {
default = nixpkgs.legacyPackages.${system}.callPackage ./x { };
});
};
}