nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 43 lines 968 B view raw
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5}: 6 7buildGoModule rec { 8 pname = "pgscv"; 9 version = "0.15.1"; 10 11 src = fetchFromGitHub { 12 owner = "CHERTS"; 13 repo = "pgscv"; 14 tag = "v${version}"; 15 hash = "sha256-ilYr6Q3YpAIqOKTOXhSVDyu4PXiUCgXEI8imUa4sbd4="; 16 }; 17 18 vendorHash = "sha256-qn6e95yB5iaqI/B2C4eM3JGjd9MiHIrHJrAhggdCO7c="; 19 20 ldflags = [ 21 "-X=main.appName=pgscv" 22 "-X=main.gitTag=${src.tag}" 23 "-X=main.gitCommit=${src.tag}" 24 "-X=main.gitBranch=${src.tag}" 25 ]; 26 27 # tests rely on a pretty complex Postgres setup 28 doCheck = false; 29 30 postInstall = '' 31 mv $out/bin/{cmd,pgscv} 32 ''; 33 34 meta = { 35 description = "PostgreSQL ecosystem metrics collector"; 36 homepage = "https://github.com/CHERTS/pgscv/"; 37 changelog = "https://github.com/CHERTS/pgscv/releases/${version}"; 38 license = lib.licenses.bsd3; 39 platforms = lib.platforms.linux; 40 maintainers = with lib.maintainers; [ k900 ]; 41 mainProgram = "pgscv"; 42 }; 43}