diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2018-12-11 18:10:48 +0300 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2018-12-11 18:10:48 +0300 |
commit | 8b0968b2054d3bb8d90b5ac056727f7c2ebeaed3 (patch) | |
tree | d03b70f693463fc836a8dbe4240424d2547530c8 /pkgs/cassandra3 | |
parent | c4273035cf5876e3ba8ed2c6b492d31c2de290ee (diff) | |
download | nixsap-8b0968b2054d3bb8d90b5ac056727f7c2ebeaed3.tar.gz |
(* HUGE *) Use nixpkgs overlays
Diffstat (limited to 'pkgs/cassandra3')
-rw-r--r-- | pkgs/cassandra3/default.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/cassandra3/default.nix b/pkgs/cassandra3/default.nix new file mode 100644 index 0000000..467f665 --- /dev/null +++ b/pkgs/cassandra3/default.nix @@ -0,0 +1,39 @@ +{ pkgs }: + +pkgs.stdenv.mkDerivation rec { + version = "3.11"; + name = "cassandra-${version}"; + + src = pkgs.fetchgit { + url = "https://git-wip-us.apache.org/repos/asf/cassandra.git"; + rev = "30412b08c0eb4a5cc5296725c7359f2741483ea2"; + sha256 = "0a5xgsgd5a91qckh4i40bxa6w9fw4bry0cqa3aj2hc7friwj199s"; + }; + + buildInputs = with pkgs; [ ant jdk ]; + + patches = [ + ]; + + configurePhase = '' + rm -rfv lib/*sigar* + cp --symbolic-link -fv ${pkgs.hyperic-sigar}/share/java/* lib/ + ''; + + buildPhase = '' + ant jar + ''; + + installPhase = '' + mkdir -p $out/lib/jni + mkdir -p $out/share/java + + cp -v lib/*.jar $out/share/java/ + cp -v lib/*.zip $out/share/java/ + cp -v build/apache-cassandra*.jar $out/share/java/ + + cp --symbolic-link -fv ${pkgs.hyperic-sigar}/share/java/* $out/share/java/ + cp --symbolic-link -fv ${pkgs.hyperic-sigar}/lib/jni/* $out/lib/jni/ + + ''; +} |