159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
34 lines
939 B
Nix
34 lines
939 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
, fetchpatch
|
|
}:
|
|
buildGoModule rec {
|
|
pname = "docopts";
|
|
version = "0.6.4-with-no-mangle-double-dash";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "docopt";
|
|
repo = "docopts";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-GIBrJ5qexeJ6ul5ek9LJZC4J3cNExsTrnxdzRCfoqn8=";
|
|
};
|
|
|
|
patches = [
|
|
# Migrate project to Go modules.
|
|
(fetchpatch {
|
|
url = "https://github.com/docopt/docopts/pull/74/commits/2c516165e72b35516a64c4529dbc938c0aaa9442.patch";
|
|
hash = "sha256-Tp05B3tmctnSYIQzCxCc/fhcAWWuEz2ifu/CQZt0XPU=";
|
|
})
|
|
];
|
|
|
|
vendorHash = "sha256-+pMgaHB69itbQ+BDM7/oaJg3HrT1UN+joJL7BO/2vxE=";
|
|
|
|
meta = {
|
|
homepage = "https://github.com/docopt/docopts";
|
|
description = "Shell interpreter for docopt, the command-line interface description language";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ lib.maintainers.confus ];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
}
|