mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 04:33:57 +00:00
916b25435f
Version 0.6.3 was affected by a bug (https://github.com/docopt/docopts/issues/47) that has been resolved in 0.6.4. Signed-off-by: Edoardo Tenani <edoardo.tenani@pm.me>
32 lines
744 B
Nix
32 lines
744 B
Nix
{ lib, buildGoPackage, fetchFromGitHub }:
|
|
|
|
buildGoPackage rec {
|
|
pname = "docopts";
|
|
version = "0.6.4-with-no-mangle-double-dash";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "docopt";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "0zxax0kl8wqpkzmw9ij4qgfhjbk4r7996pjyp9xf5icyk8knp00q";
|
|
};
|
|
|
|
goPackagePath = "github.com/docopt/${pname}";
|
|
|
|
goDeps = ./deps.nix;
|
|
|
|
subPackages = [ "./" ];
|
|
|
|
postInstall = ''
|
|
install -D -m 755 ./go/src/$goPackagePath/docopts.sh $out/bin/docopts.sh
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/docopt/${pname}";
|
|
description = "docopt CLI tool for shell scripting";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.confus ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|