nixpkgs/pkgs/development/tools/misc/docopts/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
744 B
Nix
Raw Normal View History

{ lib, buildGoPackage, fetchFromGitHub }:
2020-12-14 18:36:24 +00:00
buildGoPackage rec {
pname = "docopts";
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}";
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
'';
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 ];
platforms = platforms.linux;
};
}