Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5}: 6 7buildGoModule rec { 8 pname = "sqlpkg-cli"; 9 version = "0.2.3"; 10 11 src = fetchFromGitHub { 12 owner = "nalgeon"; 13 repo = "sqlpkg-cli"; 14 tag = version; 15 hash = "sha256-qytqTaoslBcoIn84tSiLABwRcnY/FsyWYD3sugGEYB0="; 16 }; 17 18 vendorHash = null; 19 20 ldflags = [ 21 "-s" 22 "-w" 23 ]; 24 25 postInstall = '' 26 mv -v $out/bin/cli $out/bin/sqlpkg 27 ''; 28 29 preCheck = '' 30 export HOME="$TMP" 31 ''; 32 33 meta = { 34 description = "SQLite package manager"; 35 homepage = "https://github.com/nalgeon/sqlpkg-cli"; 36 changelog = "https://github.com/nalgeon/sqlpkg-cli/releases/tag/${version}"; 37 license = lib.licenses.mit; 38 maintainers = [ lib.maintainers.pbsds ]; 39 mainProgram = "sqlpkg"; 40 platforms = lib.platforms.unix; 41 badPlatforms = [ 42 "aarch64-linux" # assets_test.go:44: BuildAssetPath: unexpected error unsupported platform: linux-arm64 43 "x86_64-darwin" # assets_test.go:44: BuildAssetPath: unexpected error unsupported platform: darwin-amd64 44 "aarch64-darwin" # install_test.go:22: installation error: failed to dequarantine files: exec: "xattr": executable file not found in $PATH 45 ]; 46 }; 47}