Files
nixpkgs/pkgs/by-name/ps/psb_status/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

45 lines
1000 B
Nix

{
lib,
stdenvNoCC,
fetchFromGitHub,
bash,
iotools,
makeWrapper,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "psb_status";
version = "0-unstable-2024-10-10";
src = fetchFromGitHub {
owner = "mkopec";
repo = "psb_status";
rev = "be896832c53d6b0b70cf8a87f7ee46ad33deefc2";
hash = "sha256-4anPyjO8y3FgnYWa4bGFxI8Glk9srw/XF552tnixc8I=";
};
dontBuild = true;
nativeBuildInputs = [ makeWrapper ];
installPhase = ''
runHook preInstall
mkdir -p $out/bin
install -m755 psb_status.sh $out/bin/psb_status
wrapProgram $out/bin/psb_status \
--prefix PATH : ${lib.makeBinPath [ iotools ]}
runHook postInstall
'';
meta = {
description = "Script to check Platform Secure Boot enablement on Zen based AMD CPUs";
homepage = "https://github.com/mkopec/psb_status";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ phodina ];
platforms = [ "x86_64-linux" ];
mainProgram = "psb_status";
};
})