Unverified Commit 1306659b authored by @mjones's avatar @mjones Committed by GitHub
Browse files

nail-parquet: init at 1.6.5 (#449066)

parents e23332c1 daf13446
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -18262,6 +18262,12 @@
    githubId = 18604892;
    name = "Nathan Ruiz";
  };
  nathanscully = {
    email = "nath@nscully.com";
    github = "nathanscully";
    githubId = 3359816;
    name = "Nathan Scully";
  };
  nathyong = {
    github = "nathyong";
    githubId = 818502;
+47 −0
Original line number Diff line number Diff line
{
  lib,
  fetchFromGitHub,
  rustPlatform,
  testers,
  nail-parquet,
  stdenv,
  pkg-config,
  openssl,
}:

rustPlatform.buildRustPackage (finalAttrs: {
  pname = "nail-parquet";
  version = "1.6.5";

  src = fetchFromGitHub {
    owner = "Vitruves";
    repo = "nail-parquet";
    tag = "v${finalAttrs.version}";
    hash = "sha256-CPiOeaESerQj+nV0hQIGv06/MFP8s7p9olpmhnWpAAg=";
  };

  cargoHash = "sha256-x4BJZcQkisw9hA/TBzSSdkxh7oUNL0OD3H/v67otYj8=";

  nativeBuildInputs = lib.optionals stdenv.hostPlatform.isLinux [
    pkg-config
  ];

  buildInputs = lib.optionals stdenv.hostPlatform.isLinux [
    openssl
  ];

  passthru.tests = {
    version = testers.testVersion {
      package = nail-parquet;
      command = "nail --version";
    };
  };

  meta = {
    description = "High-performance command-line utility for working with Parquet files";
    homepage = "https://github.com/Vitruves/nail-parquet";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ nathanscully ];
    mainProgram = "nail";
  };
})