Merge pull request #246079 from r-ryantm/auto-update/spectre-meltdown-checker

spectre-meltdown-checker: 0.45 -> 0.46
This commit is contained in:
Robert Schütz 2023-07-29 15:06:28 -07:00 committed by GitHub
commit eeac90ef75
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,14 +1,20 @@
{ lib, stdenv, fetchFromGitHub, makeWrapper, coreutils, binutils-unwrapped }:
{ lib
, stdenv
, fetchFromGitHub
, makeBinaryWrapper
, coreutils
, binutils-unwrapped
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "spectre-meltdown-checker";
version = "0.45";
version = "0.46";
src = fetchFromGitHub {
owner = "speed47";
repo = "spectre-meltdown-checker";
rev = "v${version}";
sha256 = "sha256-yGrsiPBux4YeiQ3BL2fnne5P55R/sQZ4FwzSkE6BqPc=";
rev = "v${finalAttrs.version}";
hash = "sha256-M4ngdtp2esZ+CSqZAiAeOnKtaK8Ra+TmQfMsr5q5gkg=";
};
prePatch = ''
@ -16,23 +22,23 @@ stdenv.mkDerivation rec {
--replace /bin/echo ${coreutils}/bin/echo
'';
nativeBuildInputs = [ makeWrapper ];
nativeBuildInputs = [ makeBinaryWrapper ];
installPhase = with lib; ''
installPhase = ''
runHook preInstall
install -Dm755 spectre-meltdown-checker.sh $out/bin/spectre-meltdown-checker
wrapProgram $out/bin/spectre-meltdown-checker \
--prefix PATH : ${makeBinPath [ binutils-unwrapped ]}
--prefix PATH : ${lib.makeBinPath [ binutils-unwrapped ]}
runHook postInstall
'';
meta = with lib; {
meta = {
description = "Spectre & Meltdown vulnerability/mitigation checker for Linux";
homepage = "https://github.com/speed47/spectre-meltdown-checker";
license = licenses.gpl3;
maintainers = with maintainers; [ dotlambda ];
platforms = platforms.linux;
license = lib.licenses.gpl3;
maintainers = [ lib.maintainers.dotlambda ];
platforms = lib.platforms.linux;
};
}
})