nur-packages

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

default.nix (765B)


      1 {
      2   lib,
      3   stdenv,
      4   rustPlatform,
      5   fetchFromGitHub,
      6   openssl,
      7   perl,
      8 }:
      9 
     10 rustPlatform.buildRustPackage rec {
     11   pname = "akasa";
     12   version = "0.1.1";
     13 
     14   src = fetchFromGitHub {
     15     owner = "akasamq";
     16     repo = "akasa";
     17     tag = "v${version}";
     18     hash = "sha256-ff5B8vJ0r0VGf72oiEUHLI1SbuNupBQ+w59MqVZO8/Q=";
     19   };
     20 
     21   useFetchCargoVendor = true;
     22   cargoHash = "sha256-+AAojzk67nkjcChkx55Qbr5Zskn9Qq4DZwfxynfsoew=";
     23 
     24   cargoPatches = [ ./cargo-lock.patch ];
     25 
     26   nativeBuildInputs = [ perl ];
     27 
     28   buildInputs = [ openssl ];
     29 
     30   meta = {
     31     description = "A high performance, low latency and high extendable MQTT server in Rust";
     32     homepage = "https://github.com/akasamq/akasa";
     33     license = lib.licenses.mit;
     34     maintainers = [ lib.maintainers.sikmir ];
     35   };
     36 }