nur-packages

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

default.nix (856B)


      1 {
      2   lib,
      3   stdenv,
      4   fetchFromGitea,
      5   cmake,
      6   expat,
      7   exiv2,
      8 }:
      9 
     10 stdenv.mkDerivation {
     11   pname = "gpxtools";
     12   version = "0-unstable-2023-08-13";
     13 
     14   src = fetchFromGitea {
     15     domain = "notabug.org";
     16     owner = "irdvo";
     17     repo = "gpxtools";
     18     rev = "bad31cc7e278c835db196ed4013551034c606f09";
     19     hash = "sha256-QFjHlUByD4iqEUDYhl3dcol3B8sGV+BLN7IumqQXxdA=";
     20   };
     21 
     22   nativeBuildInputs = [ cmake ];
     23   buildInputs = [ expat ];
     24 
     25   postPatch = ''
     26     substituteInPlace gpxgeotag.cpp \
     27       --replace-fail "exiv2" "${exiv2}/bin/exiv2"
     28   '';
     29 
     30   installPhase = "install -Dm755 gpx* -t $out/bin";
     31 
     32   meta = {
     33     description = "A collection of c++ tools for using GPX files";
     34     homepage = "https://notabug.org/irdvo/gpxtools";
     35     license = lib.licenses.gpl3Only;
     36     maintainers = [ lib.maintainers.sikmir ];
     37     platforms = lib.platforms.unix;
     38   };
     39 }