nur-packages

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

default.nix (722B)


      1 {
      2   lib,
      3   fetchFromGitHub,
      4   buildGoModule,
      5   cyrus_sasl,
      6 }:
      7 
      8 buildGoModule rec {
      9   pname = "mqtt-proxy";
     10   version = "0.5.0";
     11 
     12   src = fetchFromGitHub {
     13     owner = "grepplabs";
     14     repo = "mqtt-proxy";
     15     rev = "v${version}";
     16     hash = "sha256-odSVoBBjg4TGP5Jw+7p9+kTBR2JP1ZJUKR3lBcOjK4g=";
     17   };
     18 
     19   vendorHash = null;
     20 
     21   buildInputs = [ cyrus_sasl ];
     22 
     23   ldflags = [
     24     "-s"
     25     "-w"
     26     "-X github.com/prometheus/common/version.Version=${version}"
     27   ];
     28 
     29   meta = {
     30     description = "MQTT Proxy allows MQTT clients to send messages to other messaging systems";
     31     homepage = "https://github.com/grepplabs/mqtt-proxy";
     32     #license = lib.licenses.cc-by-nc-nd-40;
     33     maintainers = [ lib.maintainers.sikmir ];
     34   };
     35 }