mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 11:40:45 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
57 lines
1.5 KiB
Nix
57 lines
1.5 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchurl
|
|
, makeWrapper
|
|
, jdk8_headless
|
|
, jdk11_headless
|
|
, nixosTests
|
|
}:
|
|
|
|
let common = { version, hash, jdk ? jdk11_headless, tests }:
|
|
stdenv.mkDerivation rec {
|
|
pname = "hbase";
|
|
inherit version;
|
|
|
|
src = fetchurl {
|
|
url = "mirror://apache/hbase/${version}/hbase-${version}-bin.tar.gz";
|
|
inherit hash;
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
installPhase = ''
|
|
mkdir -p $out
|
|
cp -R * $out
|
|
wrapProgram $out/bin/hbase --set-default JAVA_HOME ${jdk.home} \
|
|
--run "test -d /etc/hadoop-conf && export HBASE_CONF_DIR=\''${HBASE_CONF_DIR-'/etc/hadoop-conf/'}" \
|
|
--set-default HBASE_CONF_DIR "$out/conf/"
|
|
'';
|
|
|
|
passthru = { inherit tests; };
|
|
|
|
meta = with lib; {
|
|
description = "Distributed, scalable, big data store";
|
|
homepage = "https://hbase.apache.org";
|
|
license = licenses.asl20;
|
|
maintainers = with lib.maintainers; [ illustris ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
};
|
|
in
|
|
{
|
|
hbase_2_4 = common {
|
|
version = "2.4.17";
|
|
hash = "sha256-1JT57kpp+dqoXY5ZZig1nHDtSqvfLjEWviu73J7hKj0=";
|
|
tests.standalone = nixosTests.hbase_2_4;
|
|
};
|
|
hbase_2_5 = common {
|
|
version = "2.5.4";
|
|
hash = "sha256-/7kp0f/K8DCeFheDPzs2ZFqcnZwQtH1rrMx+UMbQ7TM=";
|
|
tests.standalone = nixosTests.hbase2;
|
|
};
|
|
hbase_3_0 = common {
|
|
version = "3.0.0-alpha-3";
|
|
hash = "sha256-TxuiUHc2pTb9nBth1H2XrDRLla2vqM+e1uBU+yY2/EM=";
|
|
tests.standalone = nixosTests.hbase3;
|
|
};
|
|
}
|