commit 45cc21841ef68dadb055ded259b06dcbd04597c1 parent 3bf80d32631bab098dbd4c92acafabdd8e2ff23b Author: Nikolay Korotkiy <sikmir@gmail.com> Date: Thu, 16 Apr 2020 21:12:51 +0300 Add ocad2mp Diffstat:
M | pkgs/default.nix | | | 1 | + |
A | pkgs/tools/geo/ocad2mp/default.nix | | | 28 | ++++++++++++++++++++++++++++ |
2 files changed, 29 insertions(+), 0 deletions(-)
diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -111,6 +111,7 @@ lib.makeScope newScope ( morse-talk = python3Packages.callPackage ./tools/morse-talk { inherit sources; }; + ocad2mp = callPackage ./tools/geo/ocad2mp {}; openmtbmap_openvelomap_linux = callPackage ./tools/geo/openmtbmap_openvelomap_linux {}; osm2mp = perlPackages.callPackage ./tools/geo/osm2mp { inherit sources; diff --git a/pkgs/tools/geo/ocad2mp/default.nix b/pkgs/tools/geo/ocad2mp/default.nix @@ -0,0 +1,28 @@ +{ stdenv, fetchsvn }: + +stdenv.mkDerivation rec { + pname = "ocad2mp"; + version = "2011-01-26"; + + src = fetchsvn { + url = "svn://svn.code.sf.net/p/${pname}/code/trunk/${pname}"; + rev = "269"; + sha256 = "1700apfsjd27q9jsvvr94mk7rd0x24ib3bkn4y8hak0zvknib563"; + }; + + NIX_CFLAGS_COMPILE = "-std=c++03 -include stddef.h -Wno-error=format-security"; + + makeFlags = [ "-f" "Makefile.gcc" "CFG=Release" "TARGET_ARCH_BITS=64" ]; + + installPhase = '' + install -Dm755 Release/ocad2mp -t "$out/bin" + ''; + + meta = with stdenv.lib; { + description = "Converter from OCAD map format to Polish format"; + homepage = "https://sourceforge.net/projects/ocad2mp/"; + license = licenses.gpl2; + maintainers = with maintainers; [ sikmir ]; + platforms = platforms.linux; + }; +}