pb/flake.nix

28 lines
586 B
Nix
Raw Normal View History

2024-08-29 22:05:49 +00:00
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs =
inputs:
inputs.flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = inputs.nixpkgs.legacyPackages.${system};
in
{
### nix {run,shell,build}
packages.default = pkgs.callPackage ./package.nix { };
### nix develop
devShells.default = pkgs.mkShellNoCC {
nativeBuildInputs = with pkgs; [
go
gopls
];
};
}
);
}