17 lines
370 B
Nix
17 lines
370 B
Nix
{
|
|
inputs,
|
|
name,
|
|
pkgs,
|
|
resolution ? "3840x2160",
|
|
}:
|
|
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
|
|
'';
|
|
}
|