File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
pkgs/applications/misc/opencpn Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 1010, elfutils
1111, fetchFromGitHub
1212, flac
13+ , gitMinimal
1314, gtk3
1415, glew
1516, gtest
4849
4950stdenv . 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"
You can’t perform that action at this time.
0 commit comments