default.nix (948B)
1 { 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 fetchpatch, 6 cmake, 7 }: 8 9 stdenv.mkDerivation (finalAttrs: { 10 pname = "gnsstk"; 11 version = "14.3.0"; 12 13 src = fetchFromGitHub { 14 owner = "SGL-UT"; 15 repo = "gnsstk"; 16 rev = "v${finalAttrs.version}"; 17 hash = "sha256-7dD9GDW/1j2f0Tzetr6Fmbnkl1WDnX82eiaZpO8ngd8="; 18 }; 19 20 patches = [ 21 # Fix compilation with GCC13 22 (fetchpatch { 23 url = "https://github.com/SGL-UT/gnsstk/pull/21/commits/16c2c7e5b8dc80bb0eb46792fcb1f6e3dcbffbf4.patch"; 24 hash = "sha256-mIczf1OiHWl+poOulFPLSbNBu4ES8HNjhjOatACaAgI="; 25 }) 26 ]; 27 28 nativeBuildInputs = [ cmake ]; 29 30 cmakeFlags = [ 31 (lib.cmakeBool "BUILD_EXT" true) 32 (lib.cmakeFeature "CMAKE_CXX_STANDARD" "14") 33 ]; 34 35 meta = { 36 description = "GNSSTk libraries"; 37 homepage = "https://github.com/SGL-UT/gnsstk"; 38 license = lib.licenses.lgpl3Plus; 39 maintainers = [ lib.maintainers.sikmir ]; 40 platforms = lib.platforms.unix; 41 }; 42 })