mastodon: 4.3.1 -> 4.3.2 (#361487)
[NixPkgs.git] / pkgs / by-name / do / docopts / package.nix
blobcb63a666973ebfe5d9adae7ad519f0841829479f
1 { lib
2 , buildGoModule
3 , fetchFromGitHub
4 , fetchpatch
5 }:
6 buildGoModule rec {
7   pname = "docopts";
8   version = "0.6.4-with-no-mangle-double-dash";
10   src = fetchFromGitHub {
11     owner = "docopt";
12     repo = "docopts";
13     rev = "refs/tags/v${version}";
14     hash = "sha256-GIBrJ5qexeJ6ul5ek9LJZC4J3cNExsTrnxdzRCfoqn8=";
15   };
17   patches = [
18     # Migrate project to Go modules.
19     (fetchpatch {
20       url = "https://github.com/docopt/docopts/pull/74/commits/2c516165e72b35516a64c4529dbc938c0aaa9442.patch";
21       hash = "sha256-Tp05B3tmctnSYIQzCxCc/fhcAWWuEz2ifu/CQZt0XPU=";
22     })
23   ];
25   vendorHash = "sha256-+pMgaHB69itbQ+BDM7/oaJg3HrT1UN+joJL7BO/2vxE=";
27   meta = {
28     homepage = "https://github.com/docopt/docopts";
29     description = "Shell interpreter for docopt, the command-line interface description language";
30     license = lib.licenses.mit;
31     maintainers = [ lib.maintainers.confus ];
32     platforms = lib.platforms.unix;
33   };