nur-packages

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

package.nix (910B)


      1 {
      2   lib,
      3   stdenv,
      4   fetchFromGitHub,
      5   boost188,
      6   qt5,
      7 }:
      8 
      9 stdenv.mkDerivation (finalAttrs: {
     10   pname = "gps-whatsnew";
     11   version = "2017-01-23";
     12 
     13   __structuredAttrs = true;
     14 
     15   src = fetchFromGitHub {
     16     owner = "centurn";
     17     repo = "gps-whatsnew";
     18     rev = "b856f0b7472ed6287920a41568d951e0a0330387";
     19     hash = "sha256-lZSjFdaQizXYi0OTChOKrSwllgzOCy6gTbBohcegJxk=";
     20   };
     21 
     22   postPatch = ''
     23     sed -i '1 i #include <iostream>' gps_analyze.cpp
     24   '';
     25 
     26   nativeBuildInputs = [ qt5.qmake ];
     27   buildInputs = [ boost188 ];
     28 
     29   dontWrapQtApps = true;
     30 
     31   installPhase = ''
     32     install -Dm755 gps-whatsnew -t $out/bin
     33   '';
     34 
     35   meta = {
     36     description = "Compare gpx tracks to find new segments (places never traveled before)";
     37     homepage = "https://github.com/centurn/gps-whatsnew";
     38     license = lib.licenses.gpl3Only;
     39     maintainers = [ lib.maintainers.sikmir ];
     40     platforms = lib.platforms.unix;
     41   };
     42 })