nix-custom/packages/yorha-grub-theme.nix

14 lines
365 B
Nix

{ inputs, name, pkgs, resolution ? "2560x1440" }:
assert builtins.any (s: resolution == s) [ "1920x1080" "2256x1504" "2560x1440" "3840x2160" ];
pkgs.stdenv.mkDerivation {
inherit name;
src = inputs.${name};
installPhase = ''
runHook preInstall
mkdir -p $out/
cp -r yorha-${resolution}/* $out/
runHook postInstall
'';
}