git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #13790 from puffnfresh/package/eventstore

eventstore: 3.0.3 -> 3.5.0

commit08ac4380ca600341496cdc7c921f861284910f29 authorArseniy Seroka <jagajaga@users.noreply.github.com> dateWed 9 Mar 2016, 17:19 (11 years ago) parented0a76927b445b
1 file changed+11−18
pkgs/servers/nosql/eventstore/default.nix+11−18
pkgs/servers/nosql/eventstore/default.nix+11−18
@@ -1,34 +1,26 @@
1−{ stdenv, fetchFromGitHub, fetchpatch, git, mono, v8, icu }:
1+{ stdenv, fetchFromGitHub, fetchpatch, mono, v8 }:
22
33# There are some similarities with the pinta derivation. We should
44# have a helper to make it easy to package these Mono apps.
55
66stdenv.mkDerivation rec {
77 name = "EventStore-${version}";
8− version = "3.0.3";
8+ version = "3.5.0";
99 src = fetchFromGitHub {
1010 owner = "EventStore";
1111 repo = "EventStore";
1212 rev = "oss-v${version}";
13− sha256 = "1xz1dpnbkqqd3ph9g3z5cghr8zp14sr9y31lrdjrdydr3gm4sll2";
13+ sha256 = "0dp5914hxwdzw62q49wavqfqkw3jy0dvml09y7gh8frnbiajcxq9";
1414 };
1515
16− patches = [
17− # see: https://github.com/EventStore/EventStore/issues/461
18− (fetchpatch {
19− url = https://github.com/EventStore/EventStore/commit/9a0987f19935178df143a3cf876becaa1b11ffae.patch;
20− sha256 = "04qw0rb1pypa8dqvj94j2mwkc1y6b40zrpkn1d3zfci3k8cam79y";
21− })
22− ];
23−
2416 buildPhase = ''
25− ln -s ${v8}/lib/libv8.so src/libs/libv8.so
26− ln -s ${icu}/lib/libicui18n.so src/libs/libicui18n.so
27− ln -s ${icu}/lib/libicuuc.so src/libs/libicuuc.so
17+ mkdir -p src/libs/x64/nixos
18+ pushd src/EventStore.Projections.v8Integration
19+ cc -o ../libs/x64/nixos/libjs1.so -fPIC -lv8 -shared -std=c++0x *.cpp
20+ popd
2821
2922 patchShebangs build.sh
30− ./build.sh js1
31− ./build.sh quick ${version}
23+ ./build.sh ${version} release nixos
3224 '';
3325
3426 installPhase = ''
@@ -41,8 +33,9 @@ stdenv.mkDerivation rec {
4133 chmod +x $out/bin/clusternode
4234 '';
4335
44− buildInputs = [ git v8 mono ];
36+ buildInputs = [ v8 mono ];
4537
38+ phases = [ "unpackPhase" "buildPhase" "installPhase" ];
4639 dontStrip = true;
4740
4841 meta = {
@@ -50,6 +43,6 @@ stdenv.mkDerivation rec {
5043 description = "Event sourcing database with processing logic in JavaScript";
5144 license = stdenv.lib.licenses.bsd3;
5245 maintainers = with stdenv.lib.maintainers; [ puffnfresh ];
53− platforms = with stdenv.lib.platforms; linux;
46+ platforms = [ "x86_64-linux" ];
5447 };
5548}