diff options
| author | Franck Cuny <franck@fcuny.net> | 2025-08-24 15:06:29 -0700 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2025-08-24 15:06:29 -0700 |
| commit | 1072ca15a6357623b5260f951cec323635cb73e4 (patch) | |
| tree | 818b3758c915d085627a1f1d38e8c2f9b9feeb6e /nix/packages/goget.nix | |
| parent | add Go vanity URL service for custom import paths (diff) | |
| download | x-1072ca15a6357623b5260f951cec323635cb73e4.tar.gz | |
add nix configurations for building and running `goget`
Diffstat (limited to 'nix/packages/goget.nix')
| -rw-r--r-- | nix/packages/goget.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/nix/packages/goget.nix b/nix/packages/goget.nix new file mode 100644 index 0000000..c767740 --- /dev/null +++ b/nix/packages/goget.nix @@ -0,0 +1,31 @@ +{ + lib, + buildGoModule, +}: + +buildGoModule rec { + pname = "goget"; + version = "0.1.0"; # Consider deriving from git tags: version = builtins.substring 0 8 self.rev; + + src = ../..; + + vendorHash = "sha256-pStRgjhjjZdsYSnYMcWNbHSF7CJ3+7ZQradZgBfi5Gw="; + + subPackages = [ "cmd/goget" ]; + + ldflags = [ + "-s" + "-w" + ]; + + doCheck = false; + + meta = with lib; { + description = "A Go tool for getting things"; # Update with actual description + homepage = "https://github.com/yourusername/yourrepo"; # Update with your repo + license = licenses.mit; + maintainers = with maintainers; [ fcuny ]; + platforms = platforms.unix; + mainProgram = "goget"; + }; +} |
