This commit is contained in:
Invariantspace 2024-09-15 18:34:27 -07:00
parent b7bde14d75
commit 246483e3d9
No known key found for this signature in database
GPG key ID: EBC4A20067373921
8 changed files with 187 additions and 178 deletions

View file

@ -1,14 +1,17 @@
{ 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
'';
}
{
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
'';
}