python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / applications / misc / usql / default.nix
blobcc02a5d1c89960693782e4e09765f7a280835726
1 { lib
2 , fetchFromGitHub
3 , buildGoModule
4 , unixODBC
5 , icu
6 }:
8 buildGoModule rec {
9   pname = "usql";
10   version = "0.12.13";
12   src = fetchFromGitHub {
13     owner = "xo";
14     repo = "usql";
15     rev = "v${version}";
16     hash = "sha256-F/eOD7/w8HjJBeiXagaf4yBLZcZVuy93rfVFeSESlZo=";
17   };
19   vendorHash = "sha256-7rMCqTfUs89AX0VP689BmKsuvLJWU5ANJVki+JMVf7g=";
21   buildInputs = [ unixODBC icu ];
23   # Exclude broken impala driver
24   # The driver breaks too often and is not used.
25   #
26   # See https://github.com/xo/usql/pull/347
27   #
28   excludedPackages = [
29     "impala"
30   ];
32   # These tags and flags are copied from build-release.sh
33   tags = [
34     "most"
35     "sqlite_app_armor"
36     "sqlite_fts5"
37     "sqlite_introspect"
38     "sqlite_json1"
39     "sqlite_stat4"
40     "sqlite_userauth"
41     "sqlite_vtable"
42     "sqlite_icu"
43     "no_adodb"
44   ];
46   ldflags = [
47     "-s"
48     "-w"
49     "-X github.com/xo/usql/text.CommandVersion=${version}"
50   ];
52   # All the checks currently require docker instances to run the databases.
53   doCheck = false;
55   meta = with lib; {
56     description = "Universal command-line interface for SQL databases";
57     homepage = "https://github.com/xo/usql";
58     license = licenses.mit;
59     maintainers = with maintainers; [ georgyo anthonyroussel ];
60     platforms = with platforms; linux ++ darwin;
61   };