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 { };

View file

@ -1,15 +0,0 @@
#import "@preview/stonewall:0.1.0": lesbian as gae
#import "@preview/weave:0.2.0": compose_ as c_
#set page(width: 3840pt, height: 2160pt, fill: black)
#c_((
align.with(horizon + center),
text.with(
size: 2160pt / 16,
fill: gradient.linear(..gae),
),
))[$lambda f. space
(lambda x. space f space (x space x)) space
(lambda x. space f space (x space x))$]