Skip to content

Commit

Permalink
Merge pull request #97700 from SuperSandro2000/cod
Browse files Browse the repository at this point in the history
  • Loading branch information
doronbehar committed Sep 15, 2020
2 parents dd97878 + ca682af commit 5a9358c
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
28 changes: 28 additions & 0 deletions pkgs/tools/misc/cod/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{ lib, fetchFromGitHub, buildGoModule }:

buildGoModule rec {
pname = "cod";
version = "unstable-2020-09-10";

goPackagePath = "cod";

src = fetchFromGitHub {
owner = "dim-an";
repo = pname;
rev = "ae68da08339471dd278d6df79abbfd6fe89a10fe";
sha256 = "1l3gn9v8dcy72f5xq9hwbkvkis0vp4dp8qyinsrii3acmhksg9v6";
};

vendorSha256 = "1arllkiz1hk12hq5b2zpg3f8i9lxl66mil5sdv8gnhflmb37vbv3";

buildFlagsArray = [ "-ldflags=-X main.GitSha=${src.rev}" ];

doCheck = false;

meta = with lib; {
description = "Tool for generating Bash/Zsh autocompletions based on `--help` output";
homepage = src.meta.homepage;
license = licenses.asl20;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -954,6 +954,8 @@ in

cloud-custodian = python3Packages.callPackage ../tools/networking/cloud-custodian { };

cod = callPackage ../tools/misc/cod { };

codespell = with python3Packages; toPythonApplication codespell;

coolreader = libsForQt5.callPackage ../applications/misc/coolreader {};
Expand Down

0 comments on commit 5a9358c

Please sign in to comment.