Initial commit
This commit is contained in:
commit
82d714d8a3
9 changed files with 251 additions and 0 deletions
36
flake.nix
Normal file
36
flake.nix
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
{
|
||||
description = "Go Template";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
};
|
||||
|
||||
outputs = {
|
||||
nixpkgs,
|
||||
flake-utils,
|
||||
...
|
||||
}:
|
||||
flake-utils.lib.eachDefaultSystem (
|
||||
system: let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
|
||||
nativeBuildInputs = with pkgs; [
|
||||
go
|
||||
gopls
|
||||
];
|
||||
buildInputs = with pkgs; [];
|
||||
in {
|
||||
devShells.default = pkgs.mkShell {inherit nativeBuildInputs buildInputs;};
|
||||
|
||||
packages.default = pkgs.buildGoModule rec {
|
||||
name = "template";
|
||||
src = ./.;
|
||||
|
||||
inherit buildInputs;
|
||||
|
||||
vendorHash = null;
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue