uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
37
pkgs/tools/security/dieharder/default.nix
Normal file
37
pkgs/tools/security/dieharder/default.nix
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
{ lib, stdenv, fetchurl, gsl
|
||||
, dieharder, testers }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "dieharder";
|
||||
version = "3.31.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://webhome.phy.duke.edu/~rgb/General/dieharder/dieharder-${version}.tgz";
|
||||
hash = "sha256-bP8P+DlMVTVJrHQzNZzPyVX7JnlCYDFGIN+l5M1Lcn8=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Include missing stdint.h header
|
||||
./stdint.patch
|
||||
];
|
||||
|
||||
# Workaround build failure on -fno-common toolchains:
|
||||
# ld: include/dieharder/parse.h:21: multiple definition of `splitbuf';
|
||||
# include/dieharder/parse.h:21: first defined here
|
||||
NIX_CFLAGS_COMPILE = "-fcommon";
|
||||
|
||||
buildInputs = [ gsl ];
|
||||
|
||||
passthru = {
|
||||
tests.version = testers.testVersion { package = dieharder; };
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
broken = stdenv.isDarwin;
|
||||
description = "A Random Number Generator test suite";
|
||||
homepage = "https://webhome.phy.duke.edu/~rgb/General/dieharder.php";
|
||||
license = licenses.gpl2Plus;
|
||||
maintainers = with maintainers; [ zhaofengli ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue