nix: moved y-combinator wallpaper to its own project/input

This commit is contained in:
Primrose 2024-10-25 19:31:49 +02:00
parent 37ac054f17
commit 10ee882d9e
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
6 changed files with 289 additions and 173 deletions

View file

@ -2,14 +2,10 @@
self,
lib,
inputs,
withSystem,
...
}:
{
imports = [ inputs.flakies.flakeModules.typstLib ];
flake.lib.mkNerdFont = ./mkNerdFont.nix;
flake.overlays.packages =
@ -77,25 +73,6 @@
ffgun = final.callPackage ./ffgun.nix { };
easyscan = final.callPackage ./easyscan.nix { };
y-combinator-wallpaper = withSystem final.system (
{ typstLib, ... }:
typstLib.typstDerivation.overrideAttrs {
src = ./y-combinator-wallpaper;
dontFixup = true; # no need to patch the pdf
buildPhase = ''
runHook preBuild
typst compile main.typ main.svg
runHook postBuild
'';
installPhase = ''
runHook preInstall
mkdir -p "$out"
cp main.svg "$out/"
runHook postInstall
'';
}
);
# Unmerged packages from nixfinal
# TODO: use upstream when merged
dl-librescore = final.callPackage ./dl-librescore.nix { };