package.nix (836B)
1 { 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 pkg-config, 6 curl, 7 SDL2, 8 SDL2_image, 9 }: 10 11 stdenv.mkDerivation { 12 pname = "sdlmap"; 13 version = "2014-02-09"; 14 15 __structuredAttrs = true; 16 17 src = fetchFromGitHub { 18 owner = "jhawthorn"; 19 repo = "sdlmap"; 20 rev = "0baa8fb4472751c28bfe8b063070ea8b2d459224"; 21 hash = "sha256-W09WzCKmuMjV1L2c1bvlBCmNvXxYgGNU/MLtu6TTsIg="; 22 }; 23 24 patches = [ 25 ./tile.patch 26 ./Makefile.patch 27 ]; 28 29 nativeBuildInputs = [ pkg-config ]; 30 31 buildInputs = [ 32 curl 33 SDL2 34 SDL2_image 35 ]; 36 37 installPhase = "install -Dm755 sdlmap -t $out/bin"; 38 39 meta = { 40 description = "A SDL + libcurl OpenStreetMap viewer"; 41 homepage = "https://github.com/jhawthorn/sdlmap"; 42 license = lib.licenses.free; 43 maintainers = [ lib.maintainers.sikmir ]; 44 platforms = lib.platforms.unix; 45 }; 46 }
