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