20 src = fetchFromGitHub {
21 owner = "multiprocessio";
24 hash = "sha256-FZBJe+2y4HV3Pgeap4yvD0a8M/j+6pAJEFpoQVVE1ec=";
27 vendorSha256 = "sha256-MbBR+OC1OGhZZGcZqc+Jzmabdc5ZfFEwzqP5YMrj6mY=";
29 ldflags = [ "-X" "main.Version=${version}" ];
31 checkInputs = [ python3 curl jq p7zip ];
34 substituteInPlace scripts/test.py \
35 --replace 'dsq latest' 'dsq ${version}'
41 7z e testdata/taxi.csv.7z
42 cp "$GOPATH/bin/dsq" .
43 python3 scripts/test.py
49 updateScript = nix-update-script { attrPath = pname; };
51 tests.version = testers.testVersion { package = dsq; };
55 description = "Commandline tool for running SQL queries against JSON, CSV, Excel, Parquet, and more";
56 homepage = "https://github.com/multiprocessio/dsq";
57 license = licenses.asl20;
58 maintainers = with maintainers; [ liff ];