Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 35 lines 935 B view raw
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5 fetchpatch, 6}: 7buildGoModule rec { 8 pname = "docopts"; 9 version = "0.6.4-with-no-mangle-double-dash"; 10 11 src = fetchFromGitHub { 12 owner = "docopt"; 13 repo = "docopts"; 14 tag = "v${version}"; 15 hash = "sha256-GIBrJ5qexeJ6ul5ek9LJZC4J3cNExsTrnxdzRCfoqn8="; 16 }; 17 18 patches = [ 19 # Migrate project to Go modules. 20 (fetchpatch { 21 url = "https://github.com/docopt/docopts/pull/74/commits/2c516165e72b35516a64c4529dbc938c0aaa9442.patch"; 22 hash = "sha256-Tp05B3tmctnSYIQzCxCc/fhcAWWuEz2ifu/CQZt0XPU="; 23 }) 24 ]; 25 26 vendorHash = "sha256-+pMgaHB69itbQ+BDM7/oaJg3HrT1UN+joJL7BO/2vxE="; 27 28 meta = { 29 homepage = "https://github.com/docopt/docopts"; 30 description = "Shell interpreter for docopt, the command-line interface description language"; 31 license = lib.licenses.mit; 32 maintainers = [ lib.maintainers.confus ]; 33 platforms = lib.platforms.unix; 34 }; 35}