nixpkgs/pkgs/development/tools/rq/default.nix

36 lines
1004 B
Nix
Raw Normal View History

{ lib, rustPlatform, fetchFromGitHub }:
2020-01-08 17:01:08 +03:00
rustPlatform.buildRustPackage rec {
2019-08-31 14:41:23 +03:00
pname = "rq";
2022-10-01 03:08:04 +03:00
version = "1.0.4";
src = fetchFromGitHub {
owner = "dflemstr";
2020-01-08 17:01:08 +03:00
repo = pname;
rev = "v${version}";
2022-10-01 03:08:04 +03:00
sha256 = "sha256-QyYTbMXikLSe3eYJRUALQJxUJjA6VlvaLMwGrxIKfZI=";
};
2022-10-01 03:08:04 +03:00
cargoSha256 = "sha256-WAgWc9rAQBjrsaHP6s3Djpg3iYmfRVC9J9yq0T/zMqA=";
postPatch = ''
# Remove #[deny(warnings)] which is equivalent to -Werror in C.
# Prevents build failures when upgrading rustc, which may give more warnings.
substituteInPlace src/lib.rs \
--replace "#![deny(warnings)]" ""
# build script tries to get version information from git
# this fixes the --version output
rm build.rs
'';
VERGEN_SEMVER = version;
2020-01-08 17:01:08 +03:00
meta = with lib; {
description = "A tool for doing record analysis and transformation";
2020-01-08 17:01:08 +03:00
homepage = "https://github.com/dflemstr/rq";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ aristid Br1ght0ne figsoda ];
};
}