14 lines
361 B
Nix
14 lines
361 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
|
|
'';
|
|
}
|