Skip to content

Instantly share code, notes, and snippets.

@alter2000
Created February 9, 2022 12:23
Show Gist options
  • Select an option

  • Save alter2000/99b302866d50cf0a0e9a3e406cabe017 to your computer and use it in GitHub Desktop.

Select an option

Save alter2000/99b302866d50cf0a0e9a3e406cabe017 to your computer and use it in GitHub Desktop.
Nix build env for Go
{ buildGoModule
}:
buildGoModule {
pname = "TODO";
version = "0.0.1";
src = ./.;
# goPackagePath = "gitlab.com/USER/TODO";
vendorSha256 = "sha256-00000000000000000000000000000000000000000000";
}
{ pkgs ? import <nixpkgs> {} }:
with pkgs;
let
drv = callPackage ./default.nix {};
in
mkShell {
nativeBuildInputs = [ gopls go ];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment