nur-packages

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

default.nix (987B)


      1 {
      2   lib,
      3   stdenv,
      4   fetchFromGitHub,
      5   cmake,
      6   pkg-config,
      7   glib,
      8   libacars,
      9   protobufc,
     10   rtl-sdr,
     11   soapysdr,
     12   sqlite,
     13   zeromq,
     14   darwin,
     15 }:
     16 
     17 stdenv.mkDerivation (finalAttrs: {
     18   pname = "dumpvdl2";
     19   version = "2.3.0";
     20 
     21   src = fetchFromGitHub {
     22     owner = "szpajder";
     23     repo = "dumpvdl2";
     24     rev = "v${finalAttrs.version}";
     25     hash = "sha256-lmjVLHFLa819sgZ0NfSyKywEwS6pQxzdOj4y8RwRu/8=";
     26   };
     27 
     28   nativeBuildInputs = [
     29     cmake
     30     pkg-config
     31   ];
     32 
     33   buildInputs =
     34     [
     35       glib
     36       libacars
     37       protobufc
     38       rtl-sdr
     39       soapysdr
     40       sqlite
     41       zeromq
     42     ]
     43     ++ lib.optionals stdenv.isDarwin [
     44       darwin.apple_sdk.frameworks.AppKit
     45       darwin.apple_sdk.frameworks.Foundation
     46     ];
     47 
     48   meta = {
     49     description = "VDL Mode 2 message decoder and protocol analyzer";
     50     homepage = "https://github.com/szpajder/dumpvdl2";
     51     license = lib.licenses.gpl3Plus;
     52     maintainers = [ lib.maintainers.sikmir ];
     53     platforms = lib.platforms.unix;
     54   };
     55 })