nixpkgs/pkgs/by-name/qs/qsv/package.nix
2025-06-20 23:47:51 +00:00

78 lines
1.2 KiB
Nix

{
fetchFromGitHub,
file,
lib,
pkg-config,
rustPlatform,
sqlite,
zstd,
cmake,
}:
let
pname = "qsv";
version = "5.1.0";
in
rustPlatform.buildRustPackage {
inherit pname version;
src = fetchFromGitHub {
owner = "dathere";
repo = "qsv";
rev = version;
hash = "sha256-AQ7vpxrGa0CtFvKzT2iHmeoafpaWOVLqEL9eO3QeBEM=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-Kmcl7ifAFf7dJ3LESdH1xm7M3Wl/wMKUjN2ZcLkvUHE=";
buildInputs = [
file
sqlite
zstd
];
nativeBuildInputs = [
pkg-config
rustPlatform.bindgenHook
cmake
];
buildFeatures = [
"apply"
"feature_capable"
"fetch"
"foreach"
"geocode"
"to"
];
checkFeatures = [
"apply"
"feature_capable"
"fetch"
"foreach"
"geocode"
];
doCheck = false;
env = {
ZSTD_SYS_USE_PKG_CONFIG = true;
};
meta = {
description = "CSVs sliced, diced & analyzed";
homepage = "https://github.com/dathere/qsv";
changelog = "https://github.com/dathere/qsv/blob/${version}/CHANGELOG.md";
license = with lib.licenses; [
mit
# or
unlicense
];
maintainers = with lib.maintainers; [
detroyejr
];
};
}