2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildGoPackage, fetchFromGitHub }:
|
2020-12-14 18:36:24 +00:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
pname = "docopts";
|
2021-11-03 17:18:48 +00:00
|
|
|
version = "0.6.4-with-no-mangle-double-dash";
|
2020-12-14 18:36:24 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "docopt";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-11-03 17:18:48 +00:00
|
|
|
sha256 = "0zxax0kl8wqpkzmw9ij4qgfhjbk4r7996pjyp9xf5icyk8knp00q";
|
2020-12-14 18:36:24 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
goPackagePath = "github.com/docopt/${pname}";
|
|
|
|
|
|
|
|
goDeps = ./deps.nix;
|
|
|
|
|
2020-12-20 14:50:58 +00:00
|
|
|
subPackages = [ "./" ];
|
|
|
|
|
2020-12-14 18:36:24 +00:00
|
|
|
postInstall = ''
|
|
|
|
install -D -m 755 ./go/src/$goPackagePath/docopts.sh $out/bin/docopts.sh
|
|
|
|
'';
|
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
meta = with lib; {
|
2020-12-14 18:36:24 +00:00
|
|
|
homepage = "https://github.com/docopt/${pname}";
|
|
|
|
description = "docopt CLI tool for shell scripting";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.confus ];
|
2023-02-27 13:16:55 +00:00
|
|
|
platforms = platforms.unix;
|
2020-12-14 18:36:24 +00:00
|
|
|
};
|
|
|
|
}
|