nur-packages

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

package.nix (1031B)


      1 {
      2   lib,
      3   stdenv,
      4   fetchFromGitHub,
      5   cmake,
      6   pkg-config,
      7   opencv4,
      8   rtl-sdr,
      9   zlib,
     10 }:
     11 
     12 stdenv.mkDerivation {
     13   pname = "goestools";
     14   version = "0-unstable-2024-02-10";
     15 
     16   __structuredAttrs = true;
     17 
     18   src = fetchFromGitHub {
     19     owner = "pietern";
     20     repo = "goestools";
     21     rev = "80ece1a7ab8a93fb5dfa50d47387ae7c4a8f2a73";
     22     hash = "sha256-qrtLiS1nFsGIFrazitLQetrEPiMP5SbBSbwp0bPhCV0=";
     23     fetchSubmodules = true;
     24   };
     25 
     26   postPatch = ''
     27     sed -i '3i #include <cstdint>' src/goesrecv/packet_publisher.h
     28   '';
     29 
     30   nativeBuildInputs = [
     31     cmake
     32     pkg-config
     33   ];
     34 
     35   buildInputs = [
     36     opencv4
     37     rtl-sdr
     38     zlib
     39   ];
     40 
     41   cmakeFlags = [
     42     (lib.cmakeFeature "CMAKE_POLICY_VERSION_MINIMUM" "3.10")
     43   ];
     44 
     45   meta = {
     46     description = "Tools to work with signals and files from GOES satellites";
     47     homepage = "https://pietern.github.io/goestools/";
     48     license = lib.licenses.bsd2;
     49     maintainers = [ lib.maintainers.sikmir ];
     50     platforms = lib.platforms.unix;
     51     broken = stdenv.hostPlatform.isDarwin;
     52   };
     53 }