2020-06-05 11:08:28 +02:00
|
|
|
{ stdenv, lib, fetchFromGitHub, rustPlatform, libiconv, llvmPackages, v8 }:
|
2016-12-03 23:36:48 +01:00
|
|
|
|
2020-01-08 15:01:08 +01:00
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-08-31 13:41:23 +02:00
|
|
|
pname = "rq";
|
2020-01-08 15:01:08 +01:00
|
|
|
version = "1.0.2";
|
2016-12-03 23:36:48 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dflemstr";
|
2020-01-08 15:01:08 +01:00
|
|
|
repo = pname;
|
2016-12-03 23:36:48 +01:00
|
|
|
rev = "v${version}";
|
2020-01-08 15:01:08 +01:00
|
|
|
sha256 = "0km9d751jr6c5qy4af6ks7nv3xfn13iqi03wq59a1c73rnf0zinp";
|
2016-12-03 23:36:48 +01:00
|
|
|
};
|
|
|
|
|
2020-02-16 22:49:11 +01:00
|
|
|
cargoSha256 = "0c5vwy3c5ji602dj64z6jqvcpi2xff03zvjbnwihb3ydqwnb3v67";
|
2016-12-03 23:36:48 +01:00
|
|
|
|
2020-06-05 11:08:28 +02:00
|
|
|
buildInputs = [ llvmPackages.clang-unwrapped v8 ]
|
|
|
|
++ lib.optionals stdenv.isDarwin [ libiconv ];
|
2016-12-03 23:36:48 +01:00
|
|
|
|
|
|
|
configurePhase = ''
|
|
|
|
export LIBCLANG_PATH="${llvmPackages.clang-unwrapped}/lib"
|
|
|
|
export V8_SOURCE="${v8}"
|
|
|
|
'';
|
|
|
|
|
2020-01-08 15:01:08 +01:00
|
|
|
meta = with lib; {
|
2016-12-03 23:36:48 +01:00
|
|
|
description = "A tool for doing record analysis and transformation";
|
2020-01-08 15:01:08 +01:00
|
|
|
homepage = "https://github.com/dflemstr/rq";
|
2016-12-03 23:36:48 +01:00
|
|
|
license = with licenses; [ asl20 ];
|
2020-01-08 15:01:25 +01:00
|
|
|
maintainers = with maintainers; [ aristid filalex77 ];
|
2016-12-03 23:36:48 +01:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|