Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cshatag: init at 2019-12-03 #102102

Merged
merged 1 commit into from
Nov 1, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions pkgs/os-specific/linux/cshatag/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{ lib, buildGoPackage, fetchFromGitHub }:

buildGoPackage rec {
rnhmjoj marked this conversation as resolved.
Show resolved Hide resolved
pname = "cshatag";
version = "2019-12-03";

goPackagePath = "github.com/rfjakob/cshatag";
goDeps = ./deps.nix;

src = fetchFromGitHub {
owner = "rfjakob";
repo = pname;
rev = "b169f0a9dd35a7381774eb176d4badf64d403560";
sha256 = "16kam3w75avh8khkk6jfdnxwggz2pw6ccv6v7d064j0fbb9y8x0v";
};

makeFlags = [ "PREFIX=$(out)" "GITVERSION=${version}" ];

postInstall = ''
# Install man page
cd go/src/${goPackagePath}
make install $makeFlags
'';

meta = with lib; {
description = "A tool to detect silent data corruption";
homepage = "https://github.com/rfjakob/cshatag";
license = licenses.mit;
platforms = platforms.linux;
};

}
21 changes: 21 additions & 0 deletions pkgs/os-specific/linux/cshatag/deps.nix

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17507,6 +17507,8 @@ in

crda = callPackage ../os-specific/linux/crda { };

cshatag = callPackage ../os-specific/linux/cshatag { };

# Darwin package set
#
# Even though this is a set of packages not single package, use `callPackage`
Expand Down