utils/flake.nix

33 lines
664 B
Nix
Raw Normal View History

2024-08-16 11:02:24 -05:00
{
description = "small utilities";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
};
outputs =
{ nixpkgs, ... }:
let
inherit (nixpkgs.lib) genAttrs;
forAllSystems =
f:
genAttrs [
"x86_64-linux"
"x86_64-darwin"
"aarch64-linux"
"aarch64-darwin"
] (system: f nixpkgs.legacyPackages.${system});
in
{
devShells = forAllSystems (pkgs: {
default = pkgs.mkShell {
packages = with pkgs; [
go
nim
];
};
});
formatter = forAllSystems (pkgs: pkgs.nixfmt-rfc-style);
};
}