package.nix (1162B)
1 { 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 gfortran, 6 }: 7 8 stdenv.mkDerivation (finalAttrs: { 9 pname = "rtklib"; 10 version = "2.4.3-b34"; 11 12 __structuredAttrs = true; 13 14 src = fetchFromGitHub { 15 owner = "tomojitakasu"; 16 repo = "rtklib"; 17 tag = "v${finalAttrs.version}"; 18 hash = "sha256-d9hpvmIdSZ3BervVZVvfRTc+q7wUWoWLF81TAsMGe68="; 19 }; 20 21 nativeBuildInputs = [ gfortran ]; 22 23 buildPhase = '' 24 make -C lib/iers/gcc 25 make -C app/consapp 26 ''; 27 28 installPhase = '' 29 install -Dm755 app/consapp/pos2kml/gcc/pos2kml -t $out/bin 30 install -Dm755 app/consapp/str2str/gcc/str2str -t $out/bin 31 install -Dm755 app/consapp/rnx2rtkp/gcc/rnx2rtkp -t $out/bin 32 install -Dm755 app/consapp/rtkrcv/gcc/rtkrcv -t $out/bin 33 install -Dm755 app/consapp/convbin/gcc/convbin -t $out/bin 34 35 install -Dm644 app/consapp/rnx2rtkp/gcc/*.conf -t $out/share/rtklib/rnx2rtkp 36 ''; 37 38 meta = { 39 description = "An Open Source Program Package for GNSS Positioning"; 40 homepage = "http://www.rtklib.com/"; 41 license = lib.licenses.bsd2; 42 maintainers = [ lib.maintainers.sikmir ]; 43 platforms = lib.platforms.linux; 44 skip.ci = stdenv.isDarwin; 45 }; 46 })
