uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
38
pkgs/tools/security/spectre-meltdown-checker/default.nix
Normal file
38
pkgs/tools/security/spectre-meltdown-checker/default.nix
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
{ lib, stdenv, fetchFromGitHub, makeWrapper, coreutils, binutils-unwrapped }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "spectre-meltdown-checker";
|
||||
version = "0.45";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "speed47";
|
||||
repo = "spectre-meltdown-checker";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-yGrsiPBux4YeiQ3BL2fnne5P55R/sQZ4FwzSkE6BqPc=";
|
||||
};
|
||||
|
||||
prePatch = ''
|
||||
substituteInPlace spectre-meltdown-checker.sh \
|
||||
--replace /bin/echo ${coreutils}/bin/echo
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
installPhase = with lib; ''
|
||||
runHook preInstall
|
||||
|
||||
install -Dm755 spectre-meltdown-checker.sh $out/bin/spectre-meltdown-checker
|
||||
wrapProgram $out/bin/spectre-meltdown-checker \
|
||||
--prefix PATH : ${makeBinPath [ binutils-unwrapped ]}
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
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;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue