Skip to content

Package pitty for Nix source builds#17

Merged
kexi merged 1 commit into
mainfrom
docs/contributing-md
Jun 7, 2026
Merged

Package pitty for Nix source builds#17
kexi merged 1 commit into
mainfrom
docs/contributing-md

Conversation

@kexi

@kexi kexi commented Jun 7, 2026

Copy link
Copy Markdown
Owner

Why

pitty should be installable from source with Nix now, while keeping the package expression close to what nixpkgs expects for a future official package submission.

What

  • add a nixpkgs-style rustPlatform.buildRustPackage expression in nix/package.nix
  • expose packages.default, packages.pitty, apps.pitty, and checks.pitty from the flake
  • track Cargo.lock so application source builds are reproducible
  • document Nix install/build/run flows and nixpkgs submission notes

Verification

  • nix build .#pitty
  • ./result/bin/pitty --version
  • nix run .#pitty -- --version
  • nix flake check
  • git diff --cached --check

Add a buildRustPackage expression and flake package/app outputs so pitty can be installed from source with Nix now and carried into nixpkgs later. Track Cargo.lock because pitty is an application and reproducible source builds need a fixed dependency graph.
@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedserde@​1.0.2288110093100100
Addedserde_json@​1.0.1508210093100100
Addedclap@​4.6.19910093100100
Addedportable-pty@​0.8.110010093100100
Addedregex@​1.12.310010093100100
Addedserde_norway@​0.9.4210010093100100
Addedtempfile@​3.27.09810093100100
Addedsimilar@​2.7.010010095100100

View full report

@socket-security

Copy link
Copy Markdown

Warning

Review the following alerts detected in dependencies.

According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.

Action Severity Alert  (click "▶" to expand/collapse)
Warn High
Obfuscated code: cargo libc is 90.0% likely obfuscated

Confidence: 0.90

Location: Package overview

From: ?cargo/tempfile@3.27.0cargo/portable-pty@0.8.1cargo/libc@0.2.186

ℹ Read more on: This package | This alert | What is obfuscated code?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Packages should not obfuscate their code. Consider not using packages with obfuscated code.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore cargo/libc@0.2.186. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

View full report

@kexi kexi merged commit a25d661 into main Jun 7, 2026
14 checks passed
@kexi kexi deleted the docs/contributing-md branch June 7, 2026 09:25
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.

1 participant