nur-packages

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

default.nix (888B)


      1 {
      2   lib,
      3   rustPlatform,
      4   fetchFromGitHub,
      5   protobuf,
      6 }:
      7 
      8 rustPlatform.buildRustPackage (finalAttrs: {
      9   pname = "rmqtt";
     10   version = "0.13.1";
     11 
     12   src = fetchFromGitHub {
     13     owner = "rmqtt";
     14     repo = "rmqtt";
     15     tag = finalAttrs.version;
     16     hash = "sha256-5drl63QwbcprLIRyaKl3/QUOOoG+uRZd6qxDX9yOLYQ=";
     17   };
     18 
     19   cargoLock = {
     20     lockFile = ./Cargo.lock;
     21     outputHashes = {
     22       "ntex-0.4.1" = "sha256-nt/nLO7oIpE7EvxY2WseiGZH3U6Gw1jaJabPW76RCwk=";
     23       "ntex-mqtt-0.7.2" = "sha256-ijHb37ZpwcfaHnVcB6moqFpCFjU8Jhiv8pxfARgTXkY=";
     24     };
     25   };
     26 
     27   postPatch = ''
     28     ln -s ${./Cargo.lock} Cargo.lock
     29   '';
     30 
     31   nativeBuildInputs = [ protobuf ];
     32 
     33   meta = {
     34     description = "MQTT Broker";
     35     homepage = "https://github.com/rmqtt/rmqtt";
     36     license = lib.licenses.mit;
     37     maintainers = [ lib.maintainers.sikmir ];
     38     broken = true; # failed to get `ahash` as a dependency
     39   };
     40 })