nixpkgs/pkgs/by-name/go/go-symbols/package.nix
nicoo 2641d97cbf pkgs/by-name: Convert hashes to SRI format
Reproduction script:
	# Bulk rewrite
	./maintainers/scripts/sha-to-sri.py pkgs/by-name
	# Revert some packages which will need manual intervention
	for n in amdvlk azure-cli cargo-profiler corefonts flatito fluxcd gist perf_data_converter protoc-gen-js solana-cli swt verible; do
		git checkout -- "pkgs/by-name/${n:0:2}/${n}"
	done
2024-09-15 11:24:31 +02:00

40 lines
959 B
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
fetchpatch,
}:
buildGoModule rec {
pname = "go-symbols";
version = "0.1.1";
vendorHash = "sha256-8unWnxTQzPY8tKBtss9qQG+ksWyheKxKRlg65F0vWWU=";
src = fetchFromGitHub {
owner = "acroca";
repo = "go-symbols";
rev = "v${version}";
hash = "sha256-P2N4Hqrazu02CWOfAu7/KGlpjzjN65hkyWI1S5nh33s=";
};
patches = [
# Migrate to Go modules
(fetchpatch {
url = "https://github.com/acroca/go-symbols/commit/414c2283696b50fc5009055e5bc2590ce45f4400.patch";
hash = "sha256-9lndJhyN8eaovjQlfSRGP8lC4F+pAXUoR2AvYvhSx2U=";
})
];
meta = {
description = "Utility for extracting a JSON representation of the package symbols from a go source tree";
mainProgram = "go-symbols";
homepage = "https://github.com/acroca/go-symbols";
maintainers = with lib.maintainers; [
luftmensch-luftmensch
vdemeester
];
license = lib.licenses.mit;
};
}