3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #33858 from dotlambda/spectre-meltdown-checker

spectre-meltdown-checker: init at 0.29
This commit is contained in:
adisbladis 2018-01-14 23:37:38 +08:00 committed by GitHub
commit 940d1a99f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 41 additions and 0 deletions

View file

@ -0,0 +1,39 @@
{ stdenv, fetchFromGitHub, fetchpatch, makeWrapper, binutils-unwrapped }:
stdenv.mkDerivation rec {
name = "spectre-meltdown-checker-${version}";
version = "0.29";
src = fetchFromGitHub {
owner = "speed47";
repo = "spectre-meltdown-checker";
rev = "v${version}";
sha256 = "14i9gx1ngs3ixjirlx4qd87pmac916rvv9y61a5f7nl0dig4awl4";
};
patches = fetchpatch {
url = "https://github.com/speed47/spectre-meltdown-checker/pull/79.patch";
sha256 = "185kac5r97s3dnihgpwx4aashnzffb1f09xv9jw409g7i6cv2sq9";
};
prePatch = ''
substituteInPlace spectre-meltdown-checker.sh \
--replace /bin/echo echo
'';
nativeBuildInputs = [ makeWrapper ];
installPhase = with stdenv.lib; ''
install -Dt $out/lib spectre-meltdown-checker.sh
makeWrapper $out/lib/spectre-meltdown-checker.sh $out/bin/spectre-meltdown-checker \
--prefix PATH : ${makeBinPath [ binutils-unwrapped ]}
'';
meta = with stdenv.lib; {
description = "Spectre & Meltdown vulnerability/mitigation checker for Linux";
homepage = https://github.com/speed47/spectre-meltdown-checker;
license = licenses.gpl3;
platforms = platforms.linux;
maintainers = with maintainers; [ dotlambda ];
};
}

View file

@ -4627,6 +4627,8 @@ with pkgs;
sparsehash = callPackage ../development/libraries/sparsehash { };
spectre-meltdown-checker = callPackage ../tools/security/spectre-meltdown-checker { };
spiped = callPackage ../tools/networking/spiped { };
sqliteman = callPackage ../applications/misc/sqliteman { };