Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 33 lines 758 B view raw
1{ stdenv, buildGoPackage, fetchFromGitHub, sqlite }: 2 3buildGoPackage rec { 4 pname = "textql"; 5 version = "2.0.3"; 6 7 goPackagePath = "github.com/dinedal/textql"; 8 9 src = fetchFromGitHub { 10 owner = "dinedal"; 11 repo = "textql"; 12 rev = version; 13 sha256 = "1b61w4pc5gl7m12mphricihzq7ifnzwn0yyw3ypv0d0fj26h5hc3"; 14 }; 15 16 postInstall = '' 17 install -Dm644 -t $out/share/man/man1 ${src}/man/textql.1 18 ''; 19 20 # needed for tests 21 nativeBuildInputs = [ sqlite ]; 22 23 goDeps = ./deps.nix; 24 25 doCheck = true; 26 27 meta = with stdenv.lib; { 28 description = "Execute SQL against structured text like CSV or TSV"; 29 homepage = "https://github.com/dinedal/textql"; 30 license = licenses.mit; 31 maintainers = with maintainers; [ vrthra ]; 32 }; 33}