summary refs log tree commit diff
path: root/pkgs/os-specific/linux/cshatag
diff options
context:
space:
mode:
authorrnhmjoj <rnhmjoj@inventati.org>2020-10-29 15:54:52 +0100
committerrnhmjoj <rnhmjoj@inventati.org>2020-10-31 18:43:15 +0100
commit2aaf9630191349b9d634323d9e4a46adf0609b9f (patch)
tree383f3d2e0b33af7ea9b7f0de57a62ca3a6fe4809 /pkgs/os-specific/linux/cshatag
parent533965957eaf8b7a23433ec178c09faa11a682a2 (diff)
downloadnixpkgs-2aaf9630191349b9d634323d9e4a46adf0609b9f.tar
nixpkgs-2aaf9630191349b9d634323d9e4a46adf0609b9f.tar.gz
nixpkgs-2aaf9630191349b9d634323d9e4a46adf0609b9f.tar.bz2
nixpkgs-2aaf9630191349b9d634323d9e4a46adf0609b9f.tar.lz
nixpkgs-2aaf9630191349b9d634323d9e4a46adf0609b9f.tar.xz
nixpkgs-2aaf9630191349b9d634323d9e4a46adf0609b9f.tar.zst
nixpkgs-2aaf9630191349b9d634323d9e4a46adf0609b9f.zip
cshatag: init at 2019-12-03
Diffstat (limited to 'pkgs/os-specific/linux/cshatag')
-rw-r--r--pkgs/os-specific/linux/cshatag/default.nix32
-rw-r--r--pkgs/os-specific/linux/cshatag/deps.nix21
2 files changed, 53 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/cshatag/default.nix b/pkgs/os-specific/linux/cshatag/default.nix
new file mode 100644
index 00000000000..bc1b7f7ecf5
--- /dev/null
+++ b/pkgs/os-specific/linux/cshatag/default.nix
@@ -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;
+  };
+
+}
diff --git a/pkgs/os-specific/linux/cshatag/deps.nix b/pkgs/os-specific/linux/cshatag/deps.nix
new file mode 100644
index 00000000000..6daad985678
--- /dev/null
+++ b/pkgs/os-specific/linux/cshatag/deps.nix
@@ -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";
+    };
+  }
+]