Go: Difference between revisions

imported>Pbek
add: ldflags to set version of application
imported>Hypnosis2839
Install using Home Manager: remove outdated instructions, avoid encouraging installing dev packages globally
Line 26: Line 26:
     goDeps = ./deps.nix;
     goDeps = ./deps.nix;
   };
   };
</syntaxhighlight>
==Install using Home Manager==
Enable go in home manager config `home.nix` in `~/.config/nixpkgs`.
<syntaxhighlight lang=nix>
programs.go.enable = true;
</syntaxhighlight>
</syntaxhighlight>