mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
nix: +y-combinator-wallpaper
This commit is contained in:
parent
c902a681ec
commit
51b68d468e
4 changed files with 230 additions and 22 deletions
|
|
@ -2,10 +2,14 @@
|
|||
self,
|
||||
lib,
|
||||
inputs,
|
||||
|
||||
withSystem,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports = [ inputs.flakies.flakeModules.typstLib ];
|
||||
|
||||
flake.lib.mkNerdFont = ./mkNerdFont.nix;
|
||||
|
||||
flake.overlays.packages =
|
||||
|
|
@ -71,6 +75,18 @@
|
|||
ffgun = final.callPackage ./ffgun.nix { };
|
||||
easyscan = final.callPackage ./easyscan.nix { };
|
||||
|
||||
y-combinator-wallpaper = withSystem final.system (
|
||||
{ typstLib, ... }:
|
||||
typstLib.typstDerivation.overrideAttrs {
|
||||
src = ./y-combinator-wallpaper;
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
typst compile main.typ "$out"/main.svg
|
||||
'';
|
||||
dontFixup = true;
|
||||
}
|
||||
);
|
||||
|
||||
# Unmerged packages from nixfinal
|
||||
# TODO: use upstream when merged
|
||||
dl-librescore = final.callPackage ./dl-librescore.nix { };
|
||||
|
|
|
|||
13
nix/packages/y-combinator-wallpaper/main.typ
Normal file
13
nix/packages/y-combinator-wallpaper/main.typ
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#set page(width: 3840pt, height: 2160pt, fill: black)
|
||||
#set text(size: 2160pt / 16)
|
||||
#set align(horizon + center)
|
||||
|
||||
#import "@preview/stonewall:0.1.0": lesbian
|
||||
#let y_combinator = $lambda f. space (
|
||||
(lambda x. space f (x space x) space (lambda x. space f (x space x))
|
||||
)$
|
||||
|
||||
#text(
|
||||
fill: gradient.linear(..(lesbian)),
|
||||
y_combinator,
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue