Skip to content

Commit

Permalink
init: gocovsh
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Alexandro Becker <[email protected]>
  • Loading branch information
caarlos0 committed Apr 20, 2023
1 parent f36be95 commit e489a5c
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 5 deletions.
8 changes: 3 additions & 5 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,9 @@
discord-applemusic-rich-presence =
pkgs.callPackage ./pkgs/discord-applemusic-rich-presence { };
fork-cleaner = pkgs.callPackage ./pkgs/fork-cleaner { };
gocovsh = pkgs.callPackage ./pkgs/gocovsh { };
goreleaser = pkgs.callPackage ./pkgs/goreleaser { };
goreleaser-pro = pkgs.callPackage ./pkgs/goreleaser-pro { };
jsonfmt = pkgs.callPackage ./pkgs/jsonfmt { };
svu = pkgs.callPackage ./pkgs/svu { };
goreleaser-pro = pkgs.callPackage ./pkgs/goreleaser-pro { };
goreleaser = pkgs.callPackage ./pkgs/goreleaser { };

# some-qt5-package = pkgs.libsForQt5.callPackage ./pkgs/some-qt5-package { };
# ...
}
25 changes: 25 additions & 0 deletions pkgs/gocovsh/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# with import <nixpkgs> { };
{ buildGoModule, fetchFromGitHub, lib, ... }:
buildGoModule rec {
pname = "gocovsh";
version = "0.6.1";

src = fetchFromGitHub {
owner = "orlangure";
repo = "gocovsh";
rev = "v${version}";
sha256 = "sha256-VZNu1uecFVVDgF4xDLTgkCahUWbM+1XASV02PEUfmr0=";
};

vendorSha256 = "sha256-Fb7BIWojOSUIlBdjIt57CSvF1a+x33sB45Z0a86JMUg=";

ldflags =
[ "-s" "-w" "-X=main.version=${version}" "-X=main.builtBy=nixpkgs" ];

meta = with lib; {
description =
"Go Coverage in your terminal: a tool for exploring Go Coverage reports from the command line";
homepage = "https://github.com/orlangure/gocovsh";
license = licenses.gpl3;
};
}

0 comments on commit e489a5c

Please sign in to comment.