mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-13 16:07:30 +03:00
twitch-cli: init at 1.1.19
This commit is contained in:
parent
40d418d6e6
commit
ac7c37a5d6
13
pkgs/development/tools/twitch-cli/application-name.patch
Normal file
13
pkgs/development/tools/twitch-cli/application-name.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git a/cmd/root.go b/cmd/root.go
|
||||
index 3d85c19..cbbe40c 100644
|
||||
--- a/cmd/root.go
|
||||
+++ b/cmd/root.go
|
||||
@@ -16,7 +16,7 @@ import (
|
||||
var cfgFile string
|
||||
|
||||
var rootCmd = &cobra.Command{
|
||||
- Use: "twitch",
|
||||
+ Use: "twitch-cli",
|
||||
Short: "A simple CLI tool for the New Twitch API and Webhook products.",
|
||||
}
|
||||
|
49
pkgs/development/tools/twitch-cli/default.nix
Normal file
49
pkgs/development/tools/twitch-cli/default.nix
Normal file
@ -0,0 +1,49 @@
|
||||
{ buildGoModule
|
||||
, fetchFromGitHub
|
||||
, lib
|
||||
, testers
|
||||
, twitch-cli
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "twitch-cli";
|
||||
version = "1.1.19";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "twitchdev";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-osR7+oQ0QBIk/OrMb4Txhb31zELi+eoM47GsWgF/PAg=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
./application-name.patch
|
||||
];
|
||||
|
||||
vendorHash = "sha256-OhcRMXY8s+XciF+gV3cZ8fxtzo9+I76tBPZ0xG8ddHU=";
|
||||
|
||||
ldflags = [
|
||||
"-s"
|
||||
"-w"
|
||||
"-X=main.buildVersion=${version}"
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
export HOME=$(mktemp -d)
|
||||
'';
|
||||
|
||||
__darwinAllowLocalNetworking = true;
|
||||
|
||||
passthru.tests.version = testers.testVersion {
|
||||
package = twitch-cli;
|
||||
command = "HOME=$(mktemp -d) ${pname} version";
|
||||
version = "${pname}/${version}";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "The official Twitch CLI to make developing on Twitch easier";
|
||||
homepage = "https://github.com/twitchdev/twitch-cli";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ benediktbroich ];
|
||||
};
|
||||
}
|
@ -37412,6 +37412,8 @@ with pkgs;
|
||||
|
||||
tvheadend = callPackage ../servers/tvheadend { };
|
||||
|
||||
twitch-cli = callPackage ../development/tools/twitch-cli { };
|
||||
|
||||
twiggy = callPackage ../development/tools/twiggy { };
|
||||
|
||||
uacme = callPackage ../tools/admin/uacme { };
|
||||
|
Loading…
Reference in New Issue
Block a user