package.nix (751B)
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 __structuredAttrs = true; 13 14 src = fetchFromGitHub { 15 owner = "SGL-UT"; 16 repo = "gnsstk"; 17 tag = "v${finalAttrs.version}"; 18 hash = "sha256-bVVLFnV3FZl8cAkvaAp453UEDT9gJc8gN9fz7rMnw1k="; 19 }; 20 21 postPatch = '' 22 sed -i '43i #include <cstdint>' core/lib/NewNav/GLOCNavHeader.hpp 23 ''; 24 25 nativeBuildInputs = [ cmake ]; 26 27 cmakeFlags = [ 28 (lib.cmakeBool "BUILD_EXT" true) 29 ]; 30 31 meta = { 32 description = "GNSSTk libraries"; 33 homepage = "https://github.com/SGL-UT/gnsstk"; 34 license = lib.licenses.lgpl3Plus; 35 maintainers = [ lib.maintainers.sikmir ]; 36 platforms = lib.platforms.unix; 37 }; 38 })
