mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
77 lines
1.2 KiB
Nix
77 lines
1.2 KiB
Nix
{
|
|
fetchFromGitHub,
|
|
file,
|
|
lib,
|
|
pkg-config,
|
|
rustPlatform,
|
|
sqlite,
|
|
zstd,
|
|
cmake,
|
|
}:
|
|
|
|
let
|
|
pname = "qsv";
|
|
version = "4.0.0";
|
|
in
|
|
rustPlatform.buildRustPackage {
|
|
inherit pname version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dathere";
|
|
repo = "qsv";
|
|
rev = version;
|
|
hash = "sha256-rMqDn2Dw64xxAVE3ZslKzpyNfgRMrLIALHjVtcq0vqU=";
|
|
};
|
|
|
|
useFetchCargoVendor = true;
|
|
cargoHash = "sha256-/hkFIM7grcyMYNdM5UP2Mx+hBuw7zk8R2KbUYp2UkTg=";
|
|
|
|
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
|
|
];
|
|
};
|
|
}
|