diff options
author | Alyssa Ross <hi@alyssa.is> | 2018-08-15 14:10:38 +0100 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2018-08-15 15:47:24 +0100 |
commit | 0a57de6f5b138ab99bfb72efae742a715f46c46e (patch) | |
tree | 2ed56d69cf6a871c72005d0e03ba4880412c5697 | |
parent | e276965a1626f4f8d4e033b3e256e0e14156b862 (diff) |
slack-cli: add metadata
-rw-r--r-- | maintainers/maintainer-list.nix | 5 | ||||
-rw-r--r-- | pkgs/tools/networking/slack-cli/default.nix | 6 | ||||
-rw-r--r-- | pkgs/tools/networking/slack-cli/wrapper.nix | 10 |
3 files changed, 19 insertions, 2 deletions
diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 6daea45524ac6..8b6a6318326f5 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -3247,6 +3247,11 @@ github = "qoelet"; name = "Kenny Shen"; }; + qyliss = { + email = "hi@alyssa.is"; + github = "alyssais"; + name = "Alyssa Ross"; + }; ragge = { email = "r.dahlen@gmail.com"; github = "ragnard"; diff --git a/pkgs/tools/networking/slack-cli/default.nix b/pkgs/tools/networking/slack-cli/default.nix index ac7d0d4175c9b..24d8278246616 100644 --- a/pkgs/tools/networking/slack-cli/default.nix +++ b/pkgs/tools/networking/slack-cli/default.nix @@ -24,4 +24,10 @@ stdenv.mkDerivation rec { mkdir -p "$out/bin" cp src/slack "$out/bin" ''; + + meta = { + license = stdenv.lib.licenses.mit; + maintainers = [ stdenv.lib.maintainers.qyliss ]; + platforms = stdenv.lib.platforms.unix; + }; } diff --git a/pkgs/tools/networking/slack-cli/wrapper.nix b/pkgs/tools/networking/slack-cli/wrapper.nix index 3612aaa137ee6..f31553bda37fc 100644 --- a/pkgs/tools/networking/slack-cli/wrapper.nix +++ b/pkgs/tools/networking/slack-cli/wrapper.nix @@ -2,7 +2,7 @@ slack-cli: -writeShellScriptBin "slack" '' +(writeShellScriptBin "slack" '' [ "$1" = "init" -a -z "$SLACK_CLI_TOKEN" ] && cat >&2 <<-'MESSAGE' WARNING: slack-cli must be configured using the SLACK_CLI_TOKEN environment variable. Using `slack init` will not work because it tries to write to the @@ -12,4 +12,10 @@ writeShellScriptBin "slack" '' export PATH=${lib.makeBinPath [ curl jq ]}:"$PATH" exec ${slack-cli}/bin/slack "$@" -'' +'') // { + unwrapped = slack-cli; + + meta = slack-cli.meta; + name = slack-cli.name; + version = slack-cli.version; +} |