nixpkgs/pkgs/development/tools/rq/default.nix

31 lines
839 B
Nix
Raw Normal View History

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