diff options
author | Vincent Ambo <tazjin@gmail.com> | 2017-10-20T19·46+0200 |
---|---|---|
committer | Vincent Ambo <tazjin@gmail.com> | 2017-10-20T19·47+0200 |
commit | a8a9bf130048ec1c71ed44a3930da0bd13c626d8 (patch) | |
tree | 94a5431e63cc2970aaedbb0e60c03742392f581d | |
parent | 30f101e75d124def77af7c9cc8727e2bdd990f81 (diff) |
feat(pkgs): Add mq-cli package
-rw-r--r-- | packages.nix | 1 | ||||
-rw-r--r-- | pkgs/mq-cli.nix | 35 |
2 files changed, 36 insertions, 0 deletions
diff --git a/packages.nix b/packages.nix index e8a2645d403d..899d0114bc86 100644 --- a/packages.nix +++ b/packages.nix @@ -63,6 +63,7 @@ in { # Custom packages: (import pkgs/kontemplate.nix) + (import pkgs/mq-cli.nix) (import pkgs/nixfd.nix) (import pkgs/terraform-bin.nix) ]; diff --git a/pkgs/mq-cli.nix b/pkgs/mq-cli.nix new file mode 100644 index 000000000000..03aa34b266b1 --- /dev/null +++ b/pkgs/mq-cli.nix @@ -0,0 +1,35 @@ +# Build and install mq-cli. + +with import <nixpkgs> {}; + +let + # The cached Cargo registry moves *very* slowly, override it: + newRegistry = rustRegistry.overrideAttrs (oldAttrs: rec { + name = "rustRegistry-2017-10-20"; + src = fetchFromGitHub { + owner = "rust-lang"; + repo = "crates.io-index"; + rev = "a1e85af8f57ba61e505c2cb2dc359b66caf355e9"; + sha256 = "0xcszw287kqlz15ikflsim36mrvpvlb2y074vg22szz0r48nn06v"; + }; + }); +in rustPlatform.buildRustPackage rec { + name = "mqcli-${version}"; + version = "0.1.0"; + + rustRegistry = newRegistry; + depsSha256 = "1mdh5adnf58qn0gm2l9bp9dar2h577wvnhnlq8wj8a54vmgpp3ic"; + + src = fetchFromGitHub { + owner = "aprilabank"; + repo = "mq-cli"; + rev = "2c71e092f69f5cd3c31ad8a84aa4168118579898"; + sha256 = "10m11fis5dv3v9y5rg48nbg7170bzakdban5mrjaj2vkv9qgslii"; + }; + + meta = with stdenv.lib; { + description = "CLI interface to POSIX message queues"; + homepage = https://github.com/aprilabank/mq-cli; + license = licenses.mit; + }; +} |