1{ lib
2, stdenv
3, buildGoModule
4, fetchFromGitHub
5, makeWrapper
6}:
7
8buildGoModule rec {
9 pname = "obs-cli";
10 version = "0.5.0";
11
12 src = fetchFromGitHub {
13 owner = "muesli";
14 repo = "obs-cli";
15 rev = "refs/tags/v${version}";
16 hash = "sha256-4tjS+PWyP/T0zs4IGE6VQ5c+3tuqxlBwfpPBVEcim6c=";
17 };
18
19 vendorHash = "sha256-tjQOHvmhHyVMqIJQvFaisEqci1wkB4ke/a+GSgwXzCo=";
20
21 proxyVendor = true;
22
23 nativeBuildInputs = [
24 makeWrapper
25 ];
26
27 ldflags = [
28 "-s"
29 "-w"
30 ];
31
32 meta = with lib; {
33 description = "OBS-cli is a command-line remote control for OBS";
34 homepage = "https://github.com/muesli/obs-cli";
35 changelog = "https://github.com/muesli/obs-cli/releases/tag/v${version}";
36 license = licenses.mit;
37 maintainers = with maintainers; [ flexiondotorg ];
38 platforms = platforms.linux ++ platforms.darwin;
39 };
40}