2018-07-21 01:44:44 +01:00
|
|
|
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
2017-04-21 13:37:46 +01:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "madonctl";
|
2017-05-20 18:06:34 +01:00
|
|
|
version = "1.1.0";
|
2017-04-21 13:37:46 +01:00
|
|
|
|
|
|
|
goPackagePath = "github.com/McKael/madonctl";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "McKael";
|
|
|
|
repo = "madonctl";
|
2017-05-20 18:06:34 +01:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1dnc1xaafhwhhf5afhb0wc2wbqq0s1r7qzj5k0xzc58my541gadc";
|
2017-04-21 13:37:46 +01:00
|
|
|
};
|
|
|
|
|
2017-05-20 18:06:34 +01:00
|
|
|
# How to update:
|
|
|
|
# go get -u github.com/McKael/madonctl
|
|
|
|
# cd $GOPATH/src/github.com/McKael/madonctl
|
|
|
|
# git checkout v<version-number>
|
|
|
|
# go2nix save
|
|
|
|
|
|
|
|
goDeps = ./deps.nix;
|
|
|
|
|
2017-04-21 13:37:46 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "CLI for the Mastodon social network API";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/McKael/madonctl";
|
2017-04-21 13:37:46 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.unix;
|
2018-02-21 13:25:45 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2017-04-21 13:37:46 +01:00
|
|
|
};
|
|
|
|
}
|