From 0ce87b9a4da59cc52a66aca6f8c39b1a048e4514 Mon Sep 17 00:00:00 2001 From: Ethan Reece Date: Mon, 15 Jul 2024 06:31:32 -0500 Subject: [PATCH] Add build steps --- .gitignore | 148 -------------------------------------- Justfile | 5 ++ channels.scm | 11 +++ generate-typst-package.sh | 2 + 4 files changed, 18 insertions(+), 148 deletions(-) create mode 100644 Justfile create mode 100644 channels.scm create mode 100644 generate-typst-package.sh diff --git a/.gitignore b/.gitignore index 0f74b5d..019ee64 100644 --- a/.gitignore +++ b/.gitignore @@ -10,152 +10,4 @@ .#* \#*\# ,* -/ABOUT-NLS -/INSTALL -/aclocal.m4 -/autom4te.cache -/build-aux/ar-lib -/build-aux/compile -/build-aux/config.guess -/build-aux/config.rpath -/build-aux/config.sub -/build-aux/depcomp -/build-aux/install-sh -/build-aux/mdate-sh -/build-aux/missing -/build-aux/test-driver -/build-aux/texinfo.tex -/config.status -/configure -/doc/*.1 -/doc/.dirstamp -/doc/contributing.*.texi -/doc/guix*.aux -/doc/guix*.cp -/doc/guix*.cps -/doc/guix*.fn -/doc/guix*.fns -/doc/guix*.html -/doc/guix*.info -/doc/guix*.info-[0-9] -/doc/guix*.ky -/doc/guix*.pg -/doc/guix*.toc -/doc/guix*.t2p -/doc/guix*.tp -/doc/guix*.vr -/doc/guix*.vrs -/doc/guix.*.texi -/doc/guix-cookbook.*.texi -/doc/guix.aux -/doc/guix.cp -/doc/guix.cps -/doc/guix.fn -/doc/guix.fns -/doc/guix.html -/doc/guix.info -/doc/guix.info-[0-9] -/doc/guix.ky -/doc/guix.pg -/doc/guix.toc -/doc/guix.t2p -/doc/guix.tp -/doc/guix.vr -/doc/guix.vrs -/doc/os-config-bare-bones.texi -/doc/os-config-desktop.texi -/doc/stamp-vti -/doc/version.texi -/doc/version-*.texi -/etc/committer.scm -/etc/gnu-store.mount -/etc/guix-daemon.cil -/etc/guix-daemon.conf -/etc/guix-daemon.service -/etc/guix-publish.conf -/etc/guix-publish.service -/etc/guix-gc.service -/etc/init.d/guix-daemon -/etc/openrc/guix-daemon -/guix-* -/guix/config.scm -/libformat.a -/libstore.a -/libutil.a -/m4/* -/m4/ChangeLog -/m4/gettext.m4 -/m4/iconv.m4 -/m4/lib-ld.m4 -/m4/lib-link.m4 -/m4/lib-prefix.m4 -/m4/nls.m4 -/m4/po.m4 -/m4/progtest.m4 -/nix/config.h -/nix/config.h.in -/po/doc/*.mo -/po/doc/*.pot -/po/guix/*.gmo -/po/guix/*.insert-header -/po/guix/*.mo -/po/guix/ChangeLog -/po/guix/Makefile.in.in -/po/guix/Makevars.template -/po/guix/POTFILES -/po/guix/Rules-quot -/po/guix/boldquot.sed -/po/guix/en@boldquot.* -/po/guix/en@quot.* -/po/guix/guix.pot -/po/guix/insert-header.sin -/po/guix/quot.sed -/po/guix/remove-potcdate.sed -/po/guix/remove-potcdate.sin -/po/guix/stamp-po -/po/packages/*.gmo -/po/packages/*.insert-header -/po/packages/*.mo -/po/packages/ChangeLog -/po/packages/Makefile.in.in -/po/packages/Makevars.template -/po/packages/POTFILES -/po/packages/Rules-quot -/po/packages/boldquot.sed -/po/packages/en@boldquot.* -/po/packages/en@quot.* -/po/packages/guix-packages.pot -/po/packages/insert-header.sin -/po/packages/quot.sed -/po/packages/remove-potcdate.sed -/po/packages/remove-potcdate.sin -/po/packages/stamp-po -/pre-inst-env -/release-* -/scripts/guix -/t-*/ -/test-env -/test-tmp -/tests/*.trs -/tests/services/*.trs -GPATH -GRTAGS -GTAGS -Makefile -Makefile.in -config.cache -stamp-h[0-9] -.am[0-9]*/ -.dirstamp -.deps -tmp -/doc/os-config-lightweight-desktop.texi -/nix/scripts/download -/.tarball-version -/.version -/doc/stamp-* -/gnu/packages/bootstrap -/gnu/packages/aux-files/guile-guile-launcher.o -/guile .DS_Store -.mumi/current-issue \ No newline at end of file diff --git a/Justfile b/Justfile new file mode 100644 index 0000000..399b091 --- /dev/null +++ b/Justfile @@ -0,0 +1,5 @@ +default: + guix time-machine --channels=./channels.scm -- shell --container --manifest=./guix.scm -- typst compile main.typ + +dev: + guix time-machine --channels=./channels.scm -- shell --manifest=./guix.scm diff --git a/channels.scm b/channels.scm new file mode 100644 index 0000000..80c5766 --- /dev/null +++ b/channels.scm @@ -0,0 +1,11 @@ +(list (channel + (name 'guix) + (url "https://git.savannah.gnu.org/git/guix.git") + (branch "master") + (commit + "ddbbb78786e104a9a9e93cffe9f69b6c0f3bd4ed") + (introduction + (make-channel-introduction + "9edb3f66fd807b096b48283debdcddccfea34bad" + (openpgp-fingerprint + "BBB0 2DDF 2CEA F6A8 0D1D E643 A2A0 6DF2 A33A 54FA"))))) diff --git a/generate-typst-package.sh b/generate-typst-package.sh new file mode 100644 index 0000000..7c0bce2 --- /dev/null +++ b/generate-typst-package.sh @@ -0,0 +1,2 @@ +#!/bin/sh +guix import -i ./.guix/modules/typst-package.scm crate --recursive --recursive-dev-dependencies --allow-yanked typst-cli