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