nur-packages

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

default.nix (804B)


      1 {
      2   lib,
      3   stdenv,
      4   rustPlatform,
      5   fetchFromGitHub,
      6   cmake,
      7   darwin,
      8 }:
      9 
     10 rustPlatform.buildRustPackage rec {
     11   pname = "rumqtt";
     12   version = "0.19.0";
     13 
     14   src = fetchFromGitHub {
     15     owner = "bytebeamio";
     16     repo = "rumqtt";
     17     rev = "rumqttd-${version}";
     18     hash = "sha256-3rDnJ1VsyGBDhjOq0Rd55WI1EbIo+17tcFZCoeJB3Kc=";
     19   };
     20 
     21   cargoHash = "sha256-a6HVcaL6OKIK0h3yuUFDlPASNRciOdW09uXoewld4F8=";
     22 
     23   nativeBuildInputs = [ cmake ];
     24 
     25   buildInputs = lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security;
     26 
     27   meta = {
     28     description = "The MQTT ecosystem in rust";
     29     homepage = "https://github.com/bytebeamio/rumqtt";
     30     license = lib.licenses.asl20;
     31     maintainers = [ lib.maintainers.sikmir ];
     32     broken = true; # error on crate `time` caused by an API change in Rust 1.80.0
     33   };
     34 }