package.nix (722B)
1 { 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 }: 7 8 stdenv.mkDerivation (finalAttrs: { 9 pname = "gnsstk"; 10 version = "15.0.0"; 11 12 src = fetchFromGitHub { 13 owner = "SGL-UT"; 14 repo = "gnsstk"; 15 tag = "v${finalAttrs.version}"; 16 hash = "sha256-bVVLFnV3FZl8cAkvaAp453UEDT9gJc8gN9fz7rMnw1k="; 17 }; 18 19 postPatch = '' 20 sed -i '43i #include <cstdint>' core/lib/NewNav/GLOCNavHeader.hpp 21 ''; 22 23 nativeBuildInputs = [ cmake ]; 24 25 cmakeFlags = [ 26 (lib.cmakeBool "BUILD_EXT" true) 27 ]; 28 29 meta = { 30 description = "GNSSTk libraries"; 31 homepage = "https://github.com/SGL-UT/gnsstk"; 32 license = lib.licenses.lgpl3Plus; 33 maintainers = [ lib.maintainers.sikmir ]; 34 platforms = lib.platforms.unix; 35 }; 36 })
