2021-01-25 09:26:54 +01:00
|
|
|
{ lib, buildGoPackage, fetchFromGitHub }:
|
2020-12-14 19:36:24 +01:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
pname = "docopts";
|
|
|
|
version = "0.6.3-rc2";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "docopt";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-PmsTkPT/sf70MKYLhHvjCDb2o3VQ1k7d++RUW7rcoAg=";
|
|
|
|
};
|
|
|
|
|
|
|
|
goPackagePath = "github.com/docopt/${pname}";
|
|
|
|
|
|
|
|
goDeps = ./deps.nix;
|
|
|
|
|
2020-12-20 15:50:58 +01:00
|
|
|
subPackages = [ "./" ];
|
|
|
|
|
2020-12-14 19:36:24 +01:00
|
|
|
postInstall = ''
|
|
|
|
install -D -m 755 ./go/src/$goPackagePath/docopts.sh $out/bin/docopts.sh
|
|
|
|
'';
|
|
|
|
|
2021-01-23 13:26:19 +01:00
|
|
|
meta = with lib; {
|
2020-12-14 19:36:24 +01:00
|
|
|
homepage = "https://github.com/docopt/${pname}";
|
|
|
|
description = "docopt CLI tool for shell scripting";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.confus ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|