Skip to content

Commit 94e1a2c

Browse files
authored
opencpn: 5.8.4 -> 5.10.2 (#348148)
2 parents 6f266c5 + 885ec4f commit 94e1a2c

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

pkgs/applications/misc/opencpn/default.nix

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
, elfutils
1111
, fetchFromGitHub
1212
, flac
13+
, gitMinimal
1314
, gtk3
1415
, glew
1516
, gtest
@@ -48,13 +49,13 @@
4849

4950
stdenv.mkDerivation (finalAttrs: {
5051
pname = "opencpn";
51-
version = "5.8.4";
52+
version = "5.10.2";
5253

5354
src = fetchFromGitHub {
5455
owner = "OpenCPN";
5556
repo = "OpenCPN";
5657
rev = "Release_${finalAttrs.version}";
57-
hash = "sha256-axRI3sssj2Q6IBfIeyvOa494b0EgKFP+lFL/QrGIybQ=";
58+
hash = "sha256-VuMClQ5k1mTMF5yWstTi9YTF4tEN68acH5OPhjdzIwM=";
5859
};
5960

6061
postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
@@ -77,6 +78,7 @@ stdenv.mkDerivation (finalAttrs: {
7778
curl
7879
dbus
7980
flac
81+
gitMinimal
8082
] ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [
8183
AppKit
8284
] ++ [
@@ -118,7 +120,12 @@ stdenv.mkDerivation (finalAttrs: {
118120
lame
119121
];
120122

121-
cmakeFlags = [ "-DOCPN_BUNDLE_DOCS=true" ];
123+
cmakeFlags = [
124+
"-DOCPN_BUNDLE_DOCS=true"
125+
] ++ lib.optionals stdenv.hostPlatform.isLinux [
126+
# Override OpenCPN platform detection.
127+
"-DOCPN_TARGET_TUPLE=unknown;unknown;${stdenv.hostPlatform.linuxArch}"
128+
];
122129

123130
env.NIX_CFLAGS_COMPILE = toString (lib.optionals (!stdenv.hostPlatform.isx86) [
124131
"-DSQUISH_USE_SSE=0"

0 commit comments

Comments
 (0)