mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 08:43:06 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
37 lines
1.0 KiB
Nix
37 lines
1.0 KiB
Nix
{ lib, rustPlatform, fetchFromGitHub }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "rq";
|
|
version = "1.0.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dflemstr";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-QyYTbMXikLSe3eYJRUALQJxUJjA6VlvaLMwGrxIKfZI=";
|
|
};
|
|
|
|
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;
|
|
|
|
meta = with lib; {
|
|
description = "A tool for doing record analysis and transformation";
|
|
mainProgram = "rq";
|
|
homepage = "https://github.com/dflemstr/rq";
|
|
license = with licenses; [ asl20 ];
|
|
maintainers = with maintainers; [ aristid Br1ght0ne figsoda ];
|
|
};
|
|
}
|