28 lines
586 B
Nix
28 lines
586 B
Nix
|
{
|
||
|
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
|
||
|
];
|
||
|
};
|
||
|
}
|
||
|
);
|
||
|
}
|