Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: f183291ead64
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 93e0a06de4ea
Choose a head ref
  • 2 commits
  • 3 files changed
  • 2 contributors

Commits on Oct 31, 2020

  1. cshatag: init at 2019-12-03

    rnhmjoj committed Oct 31, 2020
    Copy the full SHA
    2aaf963 View commit details

Commits on Nov 1, 2020

  1. Merge pull request #102102 from rnhmjoj/cshatag

    cshatag: init at 2019-12-03
    rnhmjoj authored Nov 1, 2020
    Copy the full SHA
    93e0a06 View commit details
Showing with 55 additions and 0 deletions.
  1. +32 −0 pkgs/os-specific/linux/cshatag/default.nix
  2. +21 −0 pkgs/os-specific/linux/cshatag/deps.nix
  3. +2 −0 pkgs/top-level/all-packages.nix
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 {
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
@@ -17602,6 +17602,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`