nur-packages

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

default.nix (691B)


      1 {
      2   lib,
      3   fetchFromGitHub,
      4   buildGoModule,
      5 }:
      6 
      7 buildGoModule rec {
      8   pname = "mqtt-shell";
      9   version = "2.3.0";
     10 
     11   src = fetchFromGitHub {
     12     owner = "rainu";
     13     repo = "mqtt-shell";
     14     rev = "v${version}";
     15     hash = "sha256-nyNNdlNC5AWJ9jTnBggUf4OVME3OPXWd1MAj2pWwQL4=";
     16   };
     17 
     18   vendorHash = "sha256-kC/APQjdKPjV7ap/2QONX1Y/glqbElNiXsa2uzRLIm8=";
     19 
     20   ldflags = [
     21     "-s"
     22     "-w"
     23     "-X main.ApplicationVersion=${version}"
     24   ];
     25 
     26   doCheck = false;
     27 
     28   meta = {
     29     description = "A interactive shell-like command line interface (CLI) for MQTT";
     30     homepage = "https://github.com/rainu/mqtt-shell";
     31     license = lib.licenses.mit;
     32     maintainers = [ lib.maintainers.sikmir ];
     33   };
     34 }