Merge pull request #21617 from mguentner/subsurface_beta

subsurface 4.5.6 -> 4.5.97
This commit is contained in:
Pascal Wittmann 2017-01-03 17:30:38 +01:00 committed by GitHub
commit c4175a071b
4 changed files with 35 additions and 39 deletions

View File

@ -20,15 +20,14 @@
}:
stdenv.mkDerivation rec {
version = "4.5.6";
version = "4.5.97";
name = "subsurface-${version}";
# use fetchgit instead of the official tgz is not complete
src = fetchgit {
sha256 = "156rqcszy0c4plk2mv7wdd4h7s7mygpq5sdc64pjfs4qvvsdj10f";
sha256 = "0mbf8m5sbimbyvlh65sjlydrycr4ssfyfzdlqyl0wcpzw7h0qfp8";
url = "git://git.subsurface-divelog.org/subsurface";
rev = "4d8d7c2a0fa1b4b0e6953d92287c75b6f97472d0";
branchName = "v4.5-branch";
rev = "5f15ad5a86ada3c5e574041a5f9d85235322dabb";
branchName = "master";
};
buildInputs = [ qtbase libdivecomputer libmarble-ssrf libxslt
@ -43,8 +42,7 @@ stdenv.mkDerivation rec {
marble_libs=$(echo $(echo $CMAKE_LIBRARY_PATH | grep -o "/nix/store/[[:alnum:]]*-libmarble-ssrf-[a-zA-Z0-9\-]*/lib")/libssrfmarblewidget.so)
cmakeFlags="$cmakeFlags -DCMAKE_BUILD_TYPE=Debug \
-DMARBLE_LIBRARIES=$marble_libs \
-DNO_PRINTING=OFF \
-DUSE_LIBGIT23_API=1"
-DNO_PRINTING=OFF"
'';
meta = with stdenv.lib; {

View File

@ -1,27 +0,0 @@
{ stdenv, fetchurl, pkgconfig, cmake, zlib, python, libssh2, openssl, http-parser, libiconv }:
stdenv.mkDerivation (rec {
version = "0.23.2";
name = "libgit2-${version}";
src = fetchurl {
name = "${name}.tar.gz";
url = "https://github.com/libgit2/libgit2/tarball/v${version}";
sha256 = "1d3901bmgvdnmzrx21afi1d0llsqmca3ckj942p0i2wpdpr1kbcp";
};
cmakeFlags = "-DTHREADSAFE=ON";
nativeBuildInputs = [ cmake python pkgconfig ];
buildInputs = [ zlib libssh2 openssl http-parser ];
meta = {
description = "the Git linkable library";
homepage = http://libgit2.github.com/;
license = stdenv.lib.licenses.gpl2;
platforms = with stdenv.lib.platforms; all;
};
} // stdenv.lib.optionalAttrs (!stdenv.isLinux) {
NIX_LDFLAGS = "-liconv";
propagatedBuildInputs = [ libiconv ];
})

View File

@ -0,0 +1,25 @@
{ stdenv, fetchgit, autoreconfHook }:
stdenv.mkDerivation rec {
name = "libdivecomputer-${version}";
version = "ssrf-0.5.0";
src = fetchgit {
url = "git://subsurface-divelog.org/libdc";
rev = "534dd2f34b8271b2a1cac0e3151bfdc81da40e47";
branchName = "Subsurface-branch";
sha256 = "0iw9pczmwqlfjlgrik79b2pd4lmipxhjzj60ysk8qzl3axadjycp";
};
nativeBuildInputs = [ autoreconfHook ];
enableParallelBuilding = true;
meta = with stdenv.lib; {
homepage = http://www.libdivecomputer.org;
description = "A cross-platform and open source library for communication with dive computers from various manufacturers";
maintainers = [ maintainers.mguentner ];
license = licenses.lgpl21;
platforms = platforms.all;
};
}

View File

@ -3832,10 +3832,9 @@ in
su-exec = callPackage ../tools/security/su-exec {};
subsurface =
qt55.callPackage ../applications/misc/subsurface {
libgit2 = pkgs.libgit2_0_23;
};
subsurface = qt55.callPackage ../applications/misc/subsurface {
libdivecomputer = libdivecomputer_ssrf;
};
sudo = callPackage ../tools/security/sudo { };
@ -7219,7 +7218,6 @@ in
);
libgit2_0_21 = callPackage ../development/libraries/git2/0.21.nix { };
libgit2_0_23 = callPackage ../development/libraries/git2/0.23.nix { };
gle = callPackage ../development/libraries/gle { };
@ -7860,6 +7858,8 @@ in
libdivecomputer = callPackage ../development/libraries/libdivecomputer { };
libdivecomputer_ssrf = callPackage ../development/libraries/libdivecomputer/subsurface.nix { };
libdivsufsort = callPackage ../development/libraries/libdivsufsort { };
libdmtx = callPackage ../development/libraries/libdmtx { };