nur-packages

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

default.nix (741B)


      1 {
      2   lib,
      3   stdenv,
      4   fetchFromGitHub,
      5   cmake,
      6   libxml2,
      7   zlib,
      8 }:
      9 
     10 stdenv.mkDerivation (finalAttrs: {
     11   pname = "libacars";
     12   version = "2.2.0";
     13 
     14   src = fetchFromGitHub {
     15     owner = "szpajder";
     16     repo = "libacars";
     17     rev = "v${finalAttrs.version}";
     18     hash = "sha256-2n1tuKti8Zn5UzQHmRdvW5Q+x4CXS9QuPHFQ+DFriiE=";
     19   };
     20 
     21   nativeBuildInputs = [ cmake ];
     22 
     23   buildInputs = [
     24     libxml2
     25     zlib
     26   ];
     27 
     28   cmakeFlags = [ (lib.cmakeFeature "CMAKE_INSTALL_LIBDIR" "lib") ];
     29 
     30   meta = {
     31     description = "A library for decoding various ACARS message payloads";
     32     homepage = "https://github.com/szpajder/libacars";
     33     license = lib.licenses.mit;
     34     maintainers = [ lib.maintainers.sikmir ];
     35     platforms = lib.platforms.unix;
     36   };
     37 })