Git Product home page Git Product logo

satyxin's Introduction

satyxin

Are you SATySFi-ed with Nix?

License

SATySFiによる文書(以下,単に「文書」)をNixでビルドしたりするための様々を提供します.

Example

Status

実際にGitHub Actions上においてNixで文書をビルドした結果をGitHub Pagesに投げています.

Usage

このFlakeは現在安定していないので記載した情報が古くなっている可能性も有ります. 必要なら開発者によるテンプレートなどを参考にしてください.(おそらく最新のバージョンに追随するようにしています.)

Requirements

  • Nix (もちろん)
  • Nix Flakesの有効化
  • nix-direnv
    • 必須ではありませんが,あったほうが都合が良いです.

Setup

flake.nixに次の内容を記載することで,nix build ".#main"result/main.pdfに生成されます.

{
  inputs = { 
    satyxin.url = "github:SnO2WMaN/satyxin";
  };
  outputs = { 
    satyxin, 
    ...
  } @ inputs:
    flake-utils.lib.eachDefaultSystem (
      system: let
        pkgs = import nixpkgs {
          inherit system;
          overlays = [ 
            satyxin.overlay
          ];
        };
      in rec {
        packages = rec {
          satysfiDist = pkgs.satyxin.buildSatysfiDist {
            # 文書をビルドするために必要なパッケージを記載してください.
            # 利用可能なすべてのパッケージは以下に存在します. https://github.com/SnO2WMaN/satyxin/tree/main/nix/packages
            packages = [
              "bibyfi"
              "sno2wman"
            ];
          };
          main = pkgs.satyxin.buildDocument {
            inherit satysfiDist;
            satysfiLocal = ./.satysfi/local; # 必須ではありません
            name = "main";
            src = ./src;
            entrypoint = "main.saty";
            output = "main.pdf"; # 必須ではありません
          };
        }
      }
    );
}

次の内容を.envrcに書くと,direnvが読み取って.satysfi/dist以下にsatysfiDistを生成します.(書くべきです)

#!/usr/bin/env bash
use flake

nix build ".#satysfiDist"  --out-link "$(pwd)/.satysfi/dist"

References

External flakes for satyxin

satyxin's People

Contributors

aumyf avatar dependabot[bot] avatar momeemt avatar sno2wman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

momeemt

satyxin's Issues

aarch64-darwinをサポートする

概要

Apple SilliconチップのmacOSへのビルドを提供する

補足

  • /etc/nix/nix.confで自身のアーキテクチャをx86_64-darwinであると主張すると(おそらくRosetta2などを介しながら?)satyxinを利用してビルドできます

ローカルパッケージ

local/packagesなどを上手く入れてビルドしないと手前味噌で作ったものが使えない

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.