nur-packages

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

default.nix (875B)


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