nur-packages

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

default.nix (800B)


      1 {
      2   lib,
      3   rustPlatform,
      4   fetchFromGitHub,
      5   pkg-config,
      6   soapysdr,
      7 }:
      8 
      9 rustPlatform.buildRustPackage rec {
     10   pname = "dump1090_rs";
     11   version = "0.8.1";
     12 
     13   src = fetchFromGitHub {
     14     owner = "rsadsb";
     15     repo = "dump1090_rs";
     16     tag = "v${version}";
     17     hash = "sha256-YMi+DaLORiy36rl02sKoCanI1hQSh4eRKJdrruxvMWg=";
     18   };
     19 
     20   useFetchCargoVendor = true;
     21   cargoHash = "sha256-d/v2BTPOYW6nJdDlrKektrXTwQUgaapKkwwaG+W3oFY=";
     22 
     23   nativeBuildInputs = [ pkg-config ];
     24 
     25   buildInputs = [ soapysdr ];
     26 
     27   meta = {
     28     description = "Multi-SDR supported Rust translation of the popular dump1090 project for ADS-B demodulation";
     29     homepage = "https://github.com/rsadsb/dump1090_rs";
     30     license = lib.licenses.gpl2;
     31     maintainers = [ lib.maintainers.sikmir ];
     32     platforms = lib.platforms.unix;
     33   };
     34 }