Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 30 lines 850 B view raw
1{ lib, buildGoModule, fetchFromGitHub }: 2 3buildGoModule rec { 4 pname = "sqldef"; 5 version = "0.17.14"; 6 7 src = fetchFromGitHub { 8 owner = "k0kubun"; 9 repo = "sqldef"; 10 rev = "v${version}"; 11 hash = "sha256-APitl7BZPmMXmW1e45FE3Z6BaWd8pNeL0QQomQb7wgg="; 12 }; 13 14 proxyVendor = true; 15 16 vendorHash = "sha256-cMRzDqsnQwZTSjroaXOgN4uOFCxVb2x7FT57VfN9qhk="; 17 18 ldflags = [ "-s" "-w" "-X main.version=${version}" ]; 19 20 # The test requires a running database 21 doCheck = false; 22 23 meta = with lib; { 24 description = "Idempotent SQL schema management tool"; 25 license = with licenses; [ mit /* for everything except parser */ asl20 /* for parser */ ]; 26 homepage = "https://github.com/k0kubun/sqldef"; 27 changelog = "https://github.com/k0kubun/sqldef/blob/v${version}/CHANGELOG.md"; 28 maintainers = with maintainers; [ kgtkr ]; 29 }; 30}