utils/flake.nix

36 lines
837 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;
2024-08-16 14:07:25 -05:00
systems = [
"x86_64-linux"
"x86_64-darwin"
"aarch64-linux"
"aarch64-darwin"
];
forAllSystems = f: genAttrs systems (system: f (import nixpkgs { inherit system; }));
2024-08-16 11:02:24 -05:00
in
{
2024-08-16 14:07:25 -05:00
packages = forAllSystems (pkgs: rec {
default = pkgs.callPackage ./meta.nix {inherit tunnel;};
tunnel = pkgs.callPackage ./tunnel-go { };
});
2024-08-16 11:02:24 -05:00
devShells = forAllSystems (pkgs: {
default = pkgs.mkShell {
packages = with pkgs; [
go
nim
];
};
});
formatter = forAllSystems (pkgs: pkgs.nixfmt-rfc-style);
};
}