Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add polyform to flake packages #54

Merged
merged 1 commit into from
Jan 21, 2025

Conversation

kalebpace
Copy link
Contributor

@kalebpace kalebpace commented Jan 20, 2025

Summary

  • Re-works the flake outputs so that polyform and all programs under the examples directory can be run with the nix run command interface.
  • Formats the flake with nix run nixpkgs#nixfmt -- ./flake.nix

Description

The polyform command, as well as each example in the examples directory, can now be run with:

# Add a set of dashes to pass flags to the target polyform command and not the nix command
nix run .#polyform -- --help
nix run .#examples.mesh-util -- --help

The flake outputs for the examples now expose the cross-built packages:

# Outputs to 'result/bin/darwin_amd64/mesh-util'
nix build .#examples.darwin.amd64.mesh-util

# Outputs to 'result/bin/windows_amd64/mesh-util.exe'
nix build .#examples.windows.amd64.mesh-util

### Summary
- Re-works the flake outputs so that `polyform` and all programs under the `examples` directory can be run with the `nix run` command interface.
- Formats the flake with `nix run nixpkgs#nixfmt -- ./flake.nix`

### Description

The `polyform` command, as well as each example in the examples directory, can now be run with:
```
# Add a set of dashes to pass flags to the target polyform command and not the nix command
nix run .#polyform -- --help
nix run .#examples.mesh-util -- --help
```

The flake outputs for the examples now expose the cross-built packages:
```
# Outputs to 'result/bin/darwin_amd64/mesh-util'
nix build .#examples.darwin.amd64.mesh-util

# Outputs to 'result/bin/windows_amd64/mesh-util.exe'
nix build .#examples.windows.amd64.mesh-util
```
@kalebpace kalebpace force-pushed the kpace/push-qxrmnzpqxonu branch from 96e91e3 to fc9b58c Compare January 21, 2025 00:05
@EliCDavis
Copy link
Owner

yee haw

@EliCDavis EliCDavis merged commit ef4cb81 into EliCDavis:main Jan 21, 2025
2 checks passed
@kalebpace kalebpace deleted the kpace/push-qxrmnzpqxonu branch January 21, 2025 01:56
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