Skip to content

Refactor Nix flake: extract package, apply best practices#79

Merged
elegaanz merged 1 commit into
typst:mainfrom
ck3d:refactor-flake
Jun 29, 2026
Merged

Refactor Nix flake: extract package, apply best practices#79
elegaanz merged 1 commit into
typst:mainfrom
ck3d:refactor-flake

Conversation

@ck3d

@ck3d ck3d commented Jun 28, 2026

Copy link
Copy Markdown
Contributor
  • Fix outdated cargoHash and modernize buildInputs
  • Extract package definition from flake.nix into standalone package.nix to allow non-flake usage
  • Add nixfmt-tree as the default formatter and apply formatting to all Nix files
  • Remove flake-utils input; inline system iteration via lib.genAttrs with an explicit supportedSystems list
  • Eliminate 'with pkgs.dockerTools;' in docker-image copyToRoot for clarity

- Fix outdated cargoHash and modernize buildInputs (drop openssl.dev in
  favor of openssl, which propagates openssl.dev automatically)
- Extract package definition from flake.nix into standalone package.nix
  to allow non-flake usage (nix-build -f package.nix, callPackage, etc.)
- Add nixfmt-tree as the default formatter and apply formatting to all
  Nix files
- Remove flake-utils input; inline system iteration via lib.genAttrs
  with an explicit supportedSystems list (standard Nixpkgs pattern)
- Eliminate 'with pkgs.dockerTools;' in docker-image copyToRoot for
  clarity and to follow current Nixpkgs conventions
@elegaanz elegaanz self-assigned this Jun 29, 2026
@elegaanz

Copy link
Copy Markdown
Member

Thank you!

@elegaanz elegaanz merged commit da2c506 into typst:main Jun 29, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants