nur-packages

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

default.nix (740B)


      1 {
      2   lib,
      3   stdenv,
      4   fetchFromGitHub,
      5   cmake,
      6   gnsstk,
      7 }:
      8 
      9 stdenv.mkDerivation (finalAttrs: {
     10   pname = "gnsstk-apps";
     11   version = "14.1.1";
     12 
     13   src = fetchFromGitHub {
     14     owner = "SGL-UT";
     15     repo = "gnsstk-apps";
     16     rev = "v${finalAttrs.version}";
     17     hash = "sha256-gnw42ebL8hxRq8hX2IvTDwbqKDws9n3jmcSXLvBre8A=";
     18   };
     19 
     20   nativeBuildInputs = [ cmake ];
     21 
     22   buildInputs = [ gnsstk ];
     23 
     24   cmakeFlags = [
     25     (lib.cmakeBool "BUILD_EXT" true)
     26     (lib.cmakeFeature "CMAKE_CXX_STANDARD" "14")
     27   ];
     28 
     29   meta = {
     30     description = "GNSSTk applications suite";
     31     homepage = "https://github.com/SGL-UT/gnsstk-apps";
     32     license = lib.licenses.lgpl3Plus;
     33     maintainers = [ lib.maintainers.sikmir ];
     34     platforms = lib.platforms.unix;
     35   };
     36 })