3
0
Fork 0
forked from mirrors/nixpkgs

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

spectre-meltdown-checker: 0.29 -> 0.31
This commit is contained in:
Andreas Rammhold 2018-01-14 22:22:05 +00:00 committed by GitHub
commit 890c8047ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,24 +1,19 @@
{ stdenv, fetchFromGitHub, fetchpatch, makeWrapper, binutils-unwrapped }:
{ stdenv, fetchFromGitHub, fetchpatch, makeWrapper, coreutils, binutils-unwrapped }:
stdenv.mkDerivation rec {
name = "spectre-meltdown-checker-${version}";
version = "0.29";
version = "0.31";
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";
sha256 = "14g5q2prd5w2zhwi7sr9pnalakd87zkvxk0vrzw4cv3x71d44nk2";
};
prePatch = ''
substituteInPlace spectre-meltdown-checker.sh \
--replace /bin/echo echo
--replace /bin/echo ${coreutils}/bin/echo
'';
nativeBuildInputs = [ makeWrapper ];