a96132f715
Semi-automatic update generated by https://github.com/ryantm/nix-update tools. This update was made based on information from https://repology.org/metapackage/spectre-meltdown-checker/versions. These checks were done: - built on NixOS - ran `/nix/store/7lrw74lhzrxf9qlykxbq0z4zqick818s-spectre-meltdown-checker-0.36/bin/spectre-meltdown-checker -h` got 0 exit code - ran `/nix/store/7lrw74lhzrxf9qlykxbq0z4zqick818s-spectre-meltdown-checker-0.36/bin/spectre-meltdown-checker --help` got 0 exit code - ran `/nix/store/7lrw74lhzrxf9qlykxbq0z4zqick818s-spectre-meltdown-checker-0.36/bin/spectre-meltdown-checker --version` and found version 0.36 - ran `/nix/store/7lrw74lhzrxf9qlykxbq0z4zqick818s-spectre-meltdown-checker-0.36/bin/spectre-meltdown-checker -h` and found version 0.36 - ran `/nix/store/7lrw74lhzrxf9qlykxbq0z4zqick818s-spectre-meltdown-checker-0.36/bin/spectre-meltdown-checker --help` and found version 0.36 - found 0.36 with grep in /nix/store/7lrw74lhzrxf9qlykxbq0z4zqick818s-spectre-meltdown-checker-0.36 - directory tree listing: https://gist.github.com/ecf768a2a6ae0c7389c9248d2e0b98dc
34 lines
1 KiB
Nix
34 lines
1 KiB
Nix
{ stdenv, fetchFromGitHub, makeWrapper, coreutils, binutils-unwrapped }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "spectre-meltdown-checker-${version}";
|
|
version = "0.36";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "speed47";
|
|
repo = "spectre-meltdown-checker";
|
|
rev = "v${version}";
|
|
sha256 = "0pcw300hizzm130d0ip7j0ivf53sjlv6qzsdk9l68bj2lpx9n3kd";
|
|
};
|
|
|
|
prePatch = ''
|
|
substituteInPlace spectre-meltdown-checker.sh \
|
|
--replace /bin/echo ${coreutils}/bin/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 ];
|
|
};
|
|
}
|