39 rev = "38a0050ac33566dfd34bf94cf1d7ac66034e4118";
40 hash = "sha256-6fNcBF/Ep2xs2z83ZQ09XNb/ZkhK1nUNLChV1x8qh0Y=";
41 fetchSubmodules = true;
45 libdc = stdenv.mkDerivation {
46 pname = "libdivecomputer-ssrf";
51 sourceRoot = "${subsurfaceSrc.name}/libdivecomputer";
65 enableParallelBuilding = true;
68 homepage = "https://www.libdivecomputer.org";
69 description = "Cross-platform and open source library for communication with dive computers from various manufacturers";
70 maintainers = with maintainers; [ mguentner ];
71 license = licenses.lgpl21;
72 platforms = platforms.all;
76 googlemaps = stdenv.mkDerivation rec {
80 src = fetchFromGitHub {
84 hash = "sha256-PfSLFQeCeVNcCVDCZehxyNLQGT6gff5jNxMW8lAaP8c=";
87 nativeBuildInputs = [ qmake ];
95 dontWrapQtApps = true;
97 pluginsSubdir = "lib/qt-${qtbase.qtCompatVersion}/plugins";
100 mkdir -p $out $(dirname ${pluginsSubdir}/geoservices)
101 mkdir -p ${pluginsSubdir}/geoservices
102 mv *.so ${pluginsSubdir}/geoservices
107 inherit (src.meta) homepage;
108 description = "QtLocation plugin for Google maps tile API";
109 maintainers = with maintainers; [ orivej ];
110 license = licenses.mit;
111 platforms = platforms.all;
115 get-version = writeShellScriptBin "get-version" ''
120 stdenv.mkDerivation {
121 pname = "subsurface";
127 install -m555 -t scripts ${lib.getExe get-version}
148 nativeBuildInputs = [
155 "-DLIBDC_FROM_PKGCONFIG=ON"
160 inherit version libdc googlemaps;
161 updateScript = writeScript "update-subsurface" ''
162 #!/usr/bin/env nix-shell
163 #!nix-shell -i bash -p git common-updater-scripts
168 git clone -b current https://github.com/subsurface/subsurface.git
170 # this returns 6.0.????-local
171 new_version=$(./scripts/get-version.sh | cut -d '-' -f 1)
172 new_rev=$(git rev-list -1 HEAD)
174 update-source-version subsurface "$new_version" --rev="$new_rev"
180 description = "Divelog program";
181 mainProgram = "subsurface";
183 Subsurface can track single- and multi-tank dives using air, Nitrox or TriMix.
184 It allows tracking of dive locations including GPS coordinates (which can also
185 conveniently be entered using a map interface), logging of equipment used and
186 names of other divers, and lets users rate dives and provide additional notes.
188 homepage = "https://subsurface-divelog.org";
189 license = licenses.gpl2;
190 maintainers = with maintainers; [ mguentner ];
191 platforms = platforms.all;