2021-07-16 15:49:35 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, rustPlatform }:
|
2016-12-03 22:36:48 +00:00
|
|
|
|
2020-01-08 14:01:08 +00:00
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-08-31 11:41:23 +00:00
|
|
|
pname = "rq";
|
2022-10-01 00:08:04 +00:00
|
|
|
version = "1.0.4";
|
2016-12-03 22:36:48 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dflemstr";
|
2020-01-08 14:01:08 +00:00
|
|
|
repo = pname;
|
2016-12-03 22:36:48 +00:00
|
|
|
rev = "v${version}";
|
2022-10-01 00:08:04 +00:00
|
|
|
sha256 = "sha256-QyYTbMXikLSe3eYJRUALQJxUJjA6VlvaLMwGrxIKfZI=";
|
2016-12-03 22:36:48 +00:00
|
|
|
};
|
|
|
|
|
2022-10-01 00:08:04 +00:00
|
|
|
cargoSha256 = "sha256-WAgWc9rAQBjrsaHP6s3Djpg3iYmfRVC9J9yq0T/zMqA=";
|
2016-12-03 22:36:48 +00:00
|
|
|
|
2021-05-02 20:30:41 +00:00
|
|
|
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)]" ""
|
|
|
|
'';
|
|
|
|
|
2020-01-08 14:01:08 +00:00
|
|
|
meta = with lib; {
|
2016-12-03 22:36:48 +00:00
|
|
|
description = "A tool for doing record analysis and transformation";
|
2020-01-08 14:01:08 +00:00
|
|
|
homepage = "https://github.com/dflemstr/rq";
|
2016-12-03 22:36:48 +00:00
|
|
|
license = with licenses; [ asl20 ];
|
2020-11-17 11:02:06 +00:00
|
|
|
maintainers = with maintainers; [ aristid Br1ght0ne ];
|
2016-12-03 22:36:48 +00:00
|
|
|
};
|
|
|
|
}
|