nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

default.nix (807B)


      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   src = fetchFromGitHub {
     16     owner = "jhawthorn";
     17     repo = "sdlmap";
     18     rev = "0baa8fb4472751c28bfe8b063070ea8b2d459224";
     19     hash = "sha256-W09WzCKmuMjV1L2c1bvlBCmNvXxYgGNU/MLtu6TTsIg=";
     20   };
     21 
     22   patches = [
     23     ./tile.patch
     24     ./Makefile.patch
     25   ];
     26 
     27   nativeBuildInputs = [ pkg-config ];
     28 
     29   buildInputs = [
     30     curl
     31     SDL2
     32     SDL2_image
     33   ];
     34 
     35   installPhase = "install -Dm755 sdlmap -t $out/bin";
     36 
     37   meta = {
     38     description = "A SDL + libcurl OpenStreetMap viewer";
     39     homepage = "https://github.com/jhawthorn/sdlmap";
     40     license = lib.licenses.free;
     41     maintainers = [ lib.maintainers.sikmir ];
     42     platforms = lib.platforms.unix;
     43   };
     44 }