mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
dieharder: use finalAttrs.finalPackage
This commit is contained in:
parent
fe7de85938
commit
82ada5c114
@ -1,12 +1,12 @@
|
||||
{ lib, stdenv, fetchurl, gsl
|
||||
, dieharder, testers }:
|
||||
, testers }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "dieharder";
|
||||
version = "3.31.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://webhome.phy.duke.edu/~rgb/General/dieharder/dieharder-${version}.tgz";
|
||||
url = "http://webhome.phy.duke.edu/~rgb/General/dieharder/dieharder-${finalAttrs.version}.tgz";
|
||||
hash = "sha256-bP8P+DlMVTVJrHQzNZzPyVX7JnlCYDFGIN+l5M1Lcn8=";
|
||||
};
|
||||
|
||||
@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
|
||||
buildInputs = [ gsl ];
|
||||
|
||||
passthru = {
|
||||
tests.version = testers.testVersion { package = dieharder; };
|
||||
tests.version = testers.testVersion { package = finalAttrs.finalPackage; };
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
@ -34,4 +34,4 @@ stdenv.mkDerivation rec {
|
||||
maintainers = with maintainers; [ zhaofengli ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user