git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #20311 from mguentner/subsurface

subsurface init at 4.5.6 and dependencies (libdivecomputer, libmarble-ssrf, libgit2 @ 0.23.2)

commit8bed505d7e4db8f398651c31c00fae7657bc823a authorFranz Pletz <fpletz@fnordicwalking.de> dateTue 15 Nov 2016, 04:56 (10 years ago) parent02e9c889037752
6 files changed+156
lib/maintainers.nix+1 pkgs/applications/misc/subsurface/default.nix+64 pkgs/development/libraries/git2/0.23.nix+27 pkgs/development/libraries/libdivecomputer/default.nix+21 pkgs/development/libraries/libmarble-ssrf/default.nix+33 pkgs/top-level/all-packages.nix+10
lib/maintainers.nix+1
@@ -274,6 +274,7 @@
274274 mdaiter = "Matthew S. Daiter <mdaiter8121@gmail.com>";
275275 meditans = "Carlo Nucera <meditans@gmail.com>";
276276 meisternu = "Matt Miemiec <meister@krutt.org>";
277+ mguentner = "Maximilian Güntner <code@klandest.in>";
277278 mic92 = "Jörg Thalheim <joerg@higgsboson.tk>";
278279 michaelpj = "Michael Peyton Jones <michaelpj@gmail.com>";
279280 michalrus = "Michal Rus <m@michalrus.com>";
pkgs/applications/misc/subsurface/default.nixnew file+64
@@ -0,0 +1,64 @@
1+{
2+ stdenv,
3+ cmake,
4+ curl,
5+ fetchgit,
6+ grantlee,
7+ libdivecomputer,
8+ libgit2,
9+ libmarble-ssrf,
10+ libssh2,
11+ libxml2,
12+ libxslt,
13+ libzip,
14+ pkgconfig,
15+ qtbase,
16+ qtconnectivity,
17+ qttools,
18+ qtwebkit,
19+ sqlite
20+}:
21+
22+stdenv.mkDerivation rec {
23+ version = "4.5.6";
24+ name = "subsurface-${version}";
25+
26+ # use fetchgit instead of the official tgz is not complete
27+ src = fetchgit {
28+ sha256 = "156rqcszy0c4plk2mv7wdd4h7s7mygpq5sdc64pjfs4qvvsdj10f";
29+ url = "git://git.subsurface-divelog.org/subsurface";
30+ rev = "4d8d7c2a0fa1b4b0e6953d92287c75b6f97472d0";
31+ branchName = "v4.5-branch";
32+ };
33+
34+ buildInputs = [ qtbase libdivecomputer libmarble-ssrf libxslt
35+ libzip libxml2 grantlee qtwebkit qttools
36+ qtconnectivity libgit2 libssh2 curl ];
37+ nativeBuildInputs = [ pkgconfig cmake ];
38+
39+ enableParallelBuilding = true;
40+
41+ # hack incoming...
42+ preConfigure = ''
43+ marble_libs=$(echo $(echo $CMAKE_LIBRARY_PATH | grep -o "/nix/store/[[:alnum:]]*-libmarble-ssrf-[a-zA-Z0-9\-]*/lib")/libssrfmarblewidget.so)
44+ cmakeFlags="$cmakeFlags -DCMAKE_BUILD_TYPE=Debug \
45+ -DMARBLE_LIBRARIES=$marble_libs \
46+ -DNO_PRINTING=OFF \
47+ -DUSE_LIBGIT23_API=1"
48+ '';
49+
50+ meta = with stdenv.lib; {
51+ description = "Subsurface is an open source divelog program that runs on Windows, Mac and Linux";
52+ longDescription = ''
53+ Subsurface can track single- and multi-tank dives using air, Nitrox or TriMix.
54+ It allows tracking of dive locations including GPS coordinates (which can also
55+ conveniently be entered using a map interface), logging of equipment used and
56+ names of other divers, and lets users rate dives and provide additional notes.
57+ '';
58+ homepage = https://subsurface-divelog.org;
59+ license = licenses.gpl2;
60+ maintainers = [ maintainers.mguentner ];
61+ platforms = platforms.all;
62+ };
63+
64+}
pkgs/development/libraries/git2/0.23.nixnew file+27
@@ -0,0 +1,27 @@
1+{ stdenv, fetchurl, pkgconfig, cmake, zlib, python, libssh2, openssl, http-parser, libiconv }:
2+
3+stdenv.mkDerivation (rec {
4+ version = "0.23.2";
5+ name = "libgit2-${version}";
6+
7+ src = fetchurl {
8+ name = "${name}.tar.gz";
9+ url = "https://github.com/libgit2/libgit2/tarball/v${version}";
10+ sha256 = "1d3901bmgvdnmzrx21afi1d0llsqmca3ckj942p0i2wpdpr1kbcp";
11+ };
12+
13+ cmakeFlags = "-DTHREADSAFE=ON";
14+
15+ nativeBuildInputs = [ cmake python pkgconfig ];
16+ buildInputs = [ zlib libssh2 openssl http-parser ];
17+
18+ meta = {
19+ description = "the Git linkable library";
20+ homepage = http://libgit2.github.com/;
21+ license = stdenv.lib.licenses.gpl2;
22+ platforms = with stdenv.lib.platforms; all;
23+ };
24+} // stdenv.lib.optionalAttrs (!stdenv.isLinux) {
25+ NIX_LDFLAGS = "-liconv";
26+ propagatedBuildInputs = [ libiconv ];
27+})
pkgs/development/libraries/libdivecomputer/default.nixnew file+21
@@ -0,0 +1,21 @@
1+{ stdenv, fetchurl }:
2+
3+stdenv.mkDerivation rec {
4+ name = "libdivecomputer-${version}";
5+ version = "0.5.0";
6+
7+ src = fetchurl {
8+ url = "http://www.libdivecomputer.org/releases/${name}.tar.gz";
9+ sha256 = "11n2qpqg4b2h7mqifp9qm5gm1aqwy7wj1j4j5ha0wdjf55zzy30y";
10+ };
11+
12+ enableParallelBuilding = true;
13+
14+ meta = with stdenv.lib; {
15+ homepage = http://www.libdivecomputer.org;
16+ description = "A cross-platform and open source library for communication with dive computers from various manufacturers";
17+ maintainers = [ maintainers.mguentner ];
18+ license = licenses.lgpl21;
19+ platforms = platforms.all;
20+ };
21+}
pkgs/development/libraries/libmarble-ssrf/default.nixnew file+33
@@ -0,0 +1,33 @@
1+{ stdenv, fetchgit, doxygen, pkgconfig, cmake, qtbase, qtscript, qtquick1 }:
2+
3+stdenv.mkDerivation rec {
4+ name = "libmarble-ssrf-${version}";
5+ version = "2016-11-09";
6+
7+ src = fetchgit {
8+ sha256 = "1dm2hdk6y36ls7pxbzkqmyc46hdy2cd5f6pkxa6nfrbhvk5f31zd";
9+ url = "git://git.subsurface-divelog.org/marble";
10+ rev = "4325da93b7516abb6f93a1417adc10593dacd794";
11+ };
12+
13+ buildInputs = [ qtbase qtscript qtquick1 ];
14+ nativeBuildInputs = [ doxygen pkgconfig cmake ];
15+
16+ enableParallelBuilding = true;
17+
18+ preConfigure = ''
19+ cmakeFlags="$cmakeFlags -DCMAKE_BUILD_TYPE=Release \
20+ -DQTONLY=TRUE -DQT5BUILD=ON \
21+ -DBUILD_MARBLE_TESTS=NO \
22+ -DWITH_DESIGNER_PLUGIN=NO \
23+ -DBUILD_MARBLE_APPS=NO"
24+ '';
25+
26+ meta = with stdenv.lib; {
27+ description = "Qt library for a slippy map with patches from the Subsurface project";
28+ homepage = "http://subsurface-divelog.org";
29+ license = licenses.lgpl21;
30+ maintainers = [ maintainers.mguentner ];
31+ platforms = platforms.all;
32+ };
33+}
pkgs/top-level/all-packages.nix+10
@@ -2377,6 +2377,8 @@ in
23772377
23782378 makebootfat = callPackage ../tools/misc/makebootfat { };
23792379
2380+ libmarble-ssrf = qt55.callPackage ../development/libraries/libmarble-ssrf { };
2381+
23802382 matrix-synapse = callPackage ../servers/matrix-synapse { };
23812383
23822384 memtester = callPackage ../tools/system/memtester { };
@@ -3725,6 +3727,11 @@ in
37253727
37263728 sstp = callPackage ../tools/networking/sstp {};
37273729
3730+ subsurface =
3731+ qt55.callPackage ../applications/misc/subsurface {
3732+ libgit2 = pkgs.libgit2_0_23;
3733+ };
3734+
37283735 sudo = callPackage ../tools/security/sudo { };
37293736
37303737 suidChroot = callPackage ../tools/system/suid-chroot { };
@@ -7044,6 +7051,7 @@ in
70447051 );
70457052
70467053 libgit2_0_21 = callPackage ../development/libraries/git2/0.21.nix { };
7054+ libgit2_0_23 = callPackage ../development/libraries/git2/0.23.nix { };
70477055
70487056 gle = callPackage ../development/libraries/gle { };
70497057
@@ -7680,6 +7688,8 @@ in
76807688
76817689 libdiscid = callPackage ../development/libraries/libdiscid { };
76827690
7691+ libdivecomputer = callPackage ../development/libraries/libdivecomputer { };
7692+
76837693 libdivsufsort = callPackage ../development/libraries/libdivsufsort { };
76847694
76857695 libdmtx = callPackage ../development/libraries/libdmtx { };