default.nix (1133B)
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 src = fetchFromGitHub { 13 owner = "tomojitakasu"; 14 repo = "rtklib"; 15 rev = "v${finalAttrs.version}"; 16 hash = "sha256-d9hpvmIdSZ3BervVZVvfRTc+q7wUWoWLF81TAsMGe68="; 17 }; 18 19 nativeBuildInputs = [ gfortran ]; 20 21 buildPhase = '' 22 make -C lib/iers/gcc 23 make -C app/consapp 24 ''; 25 26 installPhase = '' 27 install -Dm755 app/consapp/pos2kml/gcc/pos2kml -t $out/bin 28 install -Dm755 app/consapp/str2str/gcc/str2str -t $out/bin 29 install -Dm755 app/consapp/rnx2rtkp/gcc/rnx2rtkp -t $out/bin 30 install -Dm755 app/consapp/rtkrcv/gcc/rtkrcv -t $out/bin 31 install -Dm755 app/consapp/convbin/gcc/convbin -t $out/bin 32 33 install -Dm644 app/consapp/rnx2rtkp/gcc/*.conf -t $out/share/rtklib/rnx2rtkp 34 ''; 35 36 meta = { 37 description = "An Open Source Program Package for GNSS Positioning"; 38 homepage = "http://www.rtklib.com/"; 39 license = lib.licenses.bsd2; 40 maintainers = [ lib.maintainers.sikmir ]; 41 platforms = lib.platforms.linux; 42 skip.ci = stdenv.isDarwin; 43 }; 44 })