1{ stdenv, fetchFromGitHub, rustPlatform, llvmPackages, v8 }:
2
3with rustPlatform;
4
5buildRustPackage rec {
6 name = "rq-${version}";
7 version = "0.10.4";
8
9 src = fetchFromGitHub {
10 owner = "dflemstr";
11 repo = "rq";
12 rev = "v${version}";
13 sha256 = "066f6sdy0vrp113wlg18q9p0clyrg9iqbj17ly0yn8dxr5iar002";
14 };
15
16 depsSha256 = "138h0q2a2gghfjpwfi11zw4rkipvmglb7srqz56ibbw2xliid2wl";
17
18 buildInputs = [ llvmPackages.clang-unwrapped v8 ];
19
20 configurePhase = ''
21 export LIBCLANG_PATH="${llvmPackages.clang-unwrapped}/lib"
22 export V8_SOURCE="${v8}"
23 '';
24
25 meta = with stdenv.lib; {
26 description = "A tool for doing record analysis and transformation";
27 homepage = https://github.com/dflemstr/rq ;
28 license = with licenses; [ asl20 ];
29 maintainers = [ maintainers.aristid ];
30 platforms = platforms.all;
31 broken = true;
32 };
33}