cshatag: init at 2019-12-03

This commit is contained in:
rnhmjoj 2020-10-29 15:54:52 +01:00
parent 533965957e
commit 2aaf963019
No known key found for this signature in database
GPG Key ID: BFBAF4C975F76450
3 changed files with 55 additions and 0 deletions

View File

@ -0,0 +1,32 @@
{ lib, buildGoPackage, fetchFromGitHub }:
buildGoPackage rec {
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
pkgs/os-specific/linux/cshatag/deps.nix generated Normal file
View File

@ -0,0 +1,21 @@
# This file was generated by https://github.com/kamilchm/go2nix v1.3.0
[
{
goPackagePath = "github.com/pkg/xattr";
fetch = {
type = "git";
url = "https://github.com/pkg/xattr";
rev = "d304131d5e58ca76d8b31ceefbb0c85c7b2d2a36";
sha256 = "0bxskiai283zfra13z5f7q7f77zz2cgswaj6l6jr2nwnc3l5m80i";
};
}
{
goPackagePath = "golang.org/x/sys";
fetch = {
type = "git";
url = "https://go.googlesource.com/sys";
rev = "201ba4db2418b54b698efb4d8082dcb504617cdb";
sha256 = "1cqaiwp19kl38g4d6brfhi32822rhnh2q8x1j0i6yg7a8dzfvbz6";
};
}
]

View File

@ -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`