nimpkgs/flake.nix

27 lines
606 B
Nix
Raw Normal View History

2024-02-07 15:03:04 -06:00
{
description = "nimpkgs website";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
};
2024-08-17 09:35:44 -05:00
outputs = {
2024-02-07 15:03:04 -06:00
nixpkgs,
2024-08-17 09:35:44 -05:00
...
2024-02-07 15:03:04 -06:00
}: let
inherit (nixpkgs.lib) genAttrs;
supportedSystems = ["x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin"];
forAllSystems = f: genAttrs supportedSystems (system: f nixpkgs.legacyPackages.${system});
in {
devShells = forAllSystems (pkgs: {
default = pkgs.mkShell {
buildInputs = with pkgs; [
nim
2024-08-17 09:35:44 -05:00
nimble
2024-02-07 15:03:04 -06:00
watchexec
nodePackages.pnpm
];
};
});
};
}