2641d97cbf
Reproduction script: # Bulk rewrite ./maintainers/scripts/sha-to-sri.py pkgs/by-name # Revert some packages which will need manual intervention for n in amdvlk azure-cli cargo-profiler corefonts flatito fluxcd gist perf_data_converter protoc-gen-js solana-cli swt verible; do git checkout -- "pkgs/by-name/${n:0:2}/${n}" done
35 lines
939 B
Nix
35 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;
|
|
};
|
|
}
|