nur-packages

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

package.nix (722B)


      1 {
      2   lib,
      3   rustPlatform,
      4   fetchFromGitHub,
      5   cmake,
      6   protobuf,
      7 }:
      8 
      9 rustPlatform.buildRustPackage (finalAttrs: {
     10   pname = "rmqtt";
     11   version = "0.16.1";
     12 
     13   src = fetchFromGitHub {
     14     owner = "rmqtt";
     15     repo = "rmqtt";
     16     tag = finalAttrs.version;
     17     hash = "sha256-9FhITQOnA4zZCYtBZJSmwf5st2wnGSi8MukiQ3bmTcU=";
     18   };
     19 
     20   cargoLock.lockFile = ./Cargo.lock;
     21 
     22   postPatch = ''
     23     ln -s ${./Cargo.lock} Cargo.lock
     24   '';
     25 
     26   nativeBuildInputs = [
     27     cmake
     28     protobuf
     29   ];
     30 
     31   meta = {
     32     description = "MQTT Broker";
     33     homepage = "https://github.com/rmqtt/rmqtt";
     34     license = lib.licenses.mit;
     35     maintainers = [ lib.maintainers.sikmir ];
     36     broken = true; # error[E0603]: function `get_slot` is private
     37   };
     38 })