2016-12-03 23:36:48 +01:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform, llvmPackages, v8 }:
|
|
|
|
|
|
|
|
with rustPlatform;
|
|
|
|
|
|
|
|
buildRustPackage rec {
|
|
|
|
name = "rq-${version}";
|
2017-04-07 20:43:19 +02:00
|
|
|
version = "0.10.4";
|
2016-12-03 23:36:48 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dflemstr";
|
|
|
|
repo = "rq";
|
|
|
|
rev = "v${version}";
|
2017-04-07 20:43:19 +02:00
|
|
|
sha256 = "066f6sdy0vrp113wlg18q9p0clyrg9iqbj17ly0yn8dxr5iar002";
|
2016-12-03 23:36:48 +01:00
|
|
|
};
|
|
|
|
|
2017-08-05 16:38:48 +02:00
|
|
|
cargoSha256 = "0c4awm1d87b396d3g3mp1md5p92i5a64a9jdawpr8mwjd0bly05m";
|
2016-12-03 23:36:48 +01:00
|
|
|
|
|
|
|
buildInputs = [ llvmPackages.clang-unwrapped v8 ];
|
|
|
|
|
|
|
|
configurePhase = ''
|
|
|
|
export LIBCLANG_PATH="${llvmPackages.clang-unwrapped}/lib"
|
|
|
|
export V8_SOURCE="${v8}"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A tool for doing record analysis and transformation";
|
|
|
|
homepage = https://github.com/dflemstr/rq ;
|
|
|
|
license = with licenses; [ asl20 ];
|
|
|
|
maintainers = [ maintainers.aristid ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
broken = true;
|
|
|
|
};
|
|
|
|
}
|