{ lib
, stdenvNoCC
, fetchFromGitHub
}:
stdenvNoCC.mkDerivation rec {
  pname = "rose-pine-grub";
  version = "1.0";

  src = fetchFromGitHub {
    owner = "rose-pine";
    repo = "grub";
    rev = "${version}";
    hash = "sha256-fEWCydlgiDt1j21q0a3YKrYv+bWIJhAQd57LuDtRNwg=";
  };

  installPhase = ''
    runHook preInstall

    mkdir -p $out/
    cp -r * "$out/"

    runHook postInstall
  '';

  meta = {
    description = "All natural pine, faux fur and a bit of soho vibes for GRUB";
    homepage = "https://github.com/rose-pine/grub";
    platforms = lib.platforms.linux;
  };
}