44 lines
754 B
Nix
44 lines
754 B
Nix
{ lib
|
|
, stdenvNoCC
|
|
, fetchFromGitHub
|
|
, nix-update-script
|
|
,
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation {
|
|
pname = "grub-bios-theme";
|
|
version = "1.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Blaysht";
|
|
repo = "grub_bios_theme";
|
|
rev = "main";
|
|
hash = "sha256-kYcEMCV9ipwPGgfAwOtFgYO4eHZxkUS97tOr0ft4rUE=";
|
|
};
|
|
|
|
dontBuild = true;
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
themeDir="$out/"
|
|
mkdir -p "$themeDir"
|
|
|
|
echo "Copying files from source root:"
|
|
ls -R .
|
|
|
|
cp -r ./OldBIOS/* "$themeDir/"
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "Minimalistic GRUB theme";
|
|
homepage = "https://github.com/Blaysht/grub_bios_theme";
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|
|
|