subsurface: 5.0.2 -> 5.0.10 (#202145)

* subsurface: 5.0.2 -> 5.0.10

* override version detection
This commit is contained in:
Peter Hoeg 2022-11-23 20:37:02 +08:00 committed by GitHub
parent 1406f51025
commit 689f590488
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 56 additions and 16 deletions

View File

@ -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;
});
@ -21,7 +42,7 @@ let
src = subsurfaceSrc;
prePatch = "cd libdivecomputer";
sourceRoot = "source/libdivecomputer";
nativeBuildInputs = [ autoreconfHook ];
@ -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;
@ -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 ];
@ -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 ];

View File

@ -11716,7 +11716,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 { };