nur-packages

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

default.nix (791B)


      1 { lib, stdenv, fetchgit, cmake, expat, exiv2 }:
      2 
      3 stdenv.mkDerivation {
      4   pname = "gpxtools";
      5   version = "2020-05-10";
      6 
      7   src = fetchgit {
      8     url = "https://notabug.org/irdvo/gpxtools.git";
      9     rev = "919fb5953af8de1e71f61244eb70dd56b670a429";
     10     sha256 = "sha256-GkrdvwzrxQs/hCghqBnALbRE8oSstNzckzpcLaGfCRs=";
     11   };
     12 
     13   nativeBuildInputs = [ cmake ];
     14   buildInputs = [ expat ];
     15 
     16   postPatch = ''
     17     substituteInPlace gpxgeotag.cpp \
     18       --replace "exiv2" "${exiv2}/bin/exiv2"
     19   '';
     20 
     21   installPhase = "install -Dm755 gpx* -t $out/bin";
     22 
     23   meta = with lib; {
     24     description = "A collection of c++ tools for using GPX files";
     25     homepage = "https://notabug.org/irdvo/gpxtools";
     26     license = licenses.gpl3;
     27     maintainers = [ maintainers.sikmir ];
     28     platforms = platforms.unix;
     29   };
     30 }