Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

subsurface: 5.0.2 -> 5.0.10 #202145

Merged
merged 2 commits into from
Nov 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 55 additions & 15 deletions pkgs/applications/misc/subsurface/default.nix
Original file line number Diff line number Diff line change
@@ -1,17 +1,38 @@
{ lib, stdenv, fetchFromGitHub, autoreconfHook, cmake, wrapQtAppsHook, pkg-config, qmake
, curl, grantlee, libgit2, libusb-compat-0_1, libssh2, libxml2, libxslt, libzip, zlib
, qtbase, qtconnectivity, qtlocation, qtsvg, qttools, qtwebkit, libXcomposite
{ lib
, stdenv
, fetchFromGitHub
, autoreconfHook
, writeShellScriptBin
, cmake
, wrapQtAppsHook
, pkg-config
, qmake
, curl
, grantlee
, libgit2
, libssh2
, libxml2
, libxslt
, libzip
, zlib
, qtbase
, qtconnectivity
, qtlocation
, qtsvg
, qttools
, qtwebengine
, libXcomposite
, bluez
}:

let
version = "5.0.2";
version = "5.0.10";

subsurfaceSrc = (fetchFromGitHub {
owner = "Subsurface";
repo = "subsurface";
rev = "v${version}";
sha256 = "1yay06m8p9qp2ghrg8dxavdq55y09apcgdnb7rihgs3hq86k539n";
hash = "sha256-KzUBhFGvocaS1VrVT2stvKrj3uVxYka+dyYZUfkIoNs=";
fetchSubmodules = true;
});

Expand All @@ -21,7 +42,7 @@ let

src = subsurfaceSrc;

prePatch = "cd libdivecomputer";
sourceRoot = "source/libdivecomputer";

nativeBuildInputs = [ autoreconfHook ];

Expand All @@ -30,7 +51,7 @@ let
enableParallelBuilding = true;

meta = with lib; {
homepage = "http://www.libdivecomputer.org";
homepage = "https://www.libdivecomputer.org";
description = "A cross-platform and open source library for communication with dive computers from various manufacturers";
maintainers = with maintainers; [ mguentner ];
license = licenses.lgpl21;
Expand All @@ -40,14 +61,13 @@ let

googlemaps = stdenv.mkDerivation rec {
pname = "googlemaps";

version = "2021-03-19";
version = "0.0.0.2";

src = fetchFromGitHub {
owner = "vladest";
repo = "googlemaps";
rev = "8f7def10c203fd3faa5ef96c5010a7294dca0759";
sha256 = "1irz398g45hk6xizwzd07qcx1ln8f7l6bhjh15f56yc20waqpx1x";
rev = "v.${version}";
hash = "sha256-PfSLFQeCeVNcCVDCZehxyNLQGT6gff5jNxMW8lAaP8c=";
};

nativeBuildInputs = [ qmake ];
Expand All @@ -74,17 +94,37 @@ let
};
};

in stdenv.mkDerivation {
get-version = writeShellScriptBin "get-version" ''
echo -n ${version}
'';

in
stdenv.mkDerivation {
pname = "subsurface";
inherit version;

src = subsurfaceSrc;

postPatch = ''
install -m555 -t scripts ${lib.getExe get-version}
'';

buildInputs = [
libdc googlemaps
curl grantlee libgit2 libssh2 libusb-compat-0_1 libxml2 libxslt libzip
qtbase qtconnectivity qtsvg qttools qtwebkit
bluez
curl
googlemaps
grantlee
libdc
libgit2
libssh2
libxml2
libxslt
libzip
qtbase
qtconnectivity
qtsvg
qttools
qtwebengine
];

nativeBuildInputs = [ cmake wrapQtAppsHook pkg-config ];
Expand Down
2 changes: 1 addition & 1 deletion pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11698,7 +11698,7 @@ with pkgs;

subgit = callPackage ../applications/version-management/git-and-tools/subgit { };

subsurface = libsForQt514.callPackage ../applications/misc/subsurface { };
subsurface = libsForQt5.callPackage ../applications/misc/subsurface { };

sudo = callPackage ../tools/security/sudo { };

Expand Down