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

Learning Journey tutorial - Packaging existing software #601

Closed
2 tasks
zmitchell opened this issue Jun 19, 2023 · 2 comments · Fixed by #650
Closed
2 tasks

Learning Journey tutorial - Packaging existing software #601

zmitchell opened this issue Jun 19, 2023 · 2 comments · Fixed by #650
Assignees
Labels
tracking A stopgap for issue dependencies tutorial Topics for new tutorials

Comments

@zmitchell
Copy link
Contributor

Project description

Migrating a project with an already working build system to a Nix-based workflow can be difficult. Doing a very basic derivation with runCommand or mkDerivation is covered in #599, but this follows the happy path of not having no dependencies at all outside of the native Rust build tools. This is not the reality for most developers working with Nix.

A more realistic scenario is that developers have a working project, set up a build using mkDerivation or some other simple builder, and immediately run into issues regarding missing dependencies. We'd like this tutorial to walk a user through that exact situation e.g. how do you find the dependencies that are missing, how do you know whether to use some_pkg vs. some_pkg.dev for missing headers or development libraries, how do you add platform-specific dependencies, etc.

Steps

  • Submit a PR with an outline of the tutorial
  • Submit a PR with a draft of the tutorial

Considerations

There's obviously many, many directions you could take this tutorial, so special care should be taken to keep the scope small and focus on the most common issues a new Nix user will struggle with when trying to build software with Nix.

@zmitchell zmitchell added tracking A stopgap for issue dependencies learning journey labels Jun 19, 2023
@zmitchell zmitchell mentioned this issue Jun 19, 2023
26 tasks
@nixos-discourse
Copy link

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/2023-06-19-tutorial-series-call-for-feedback-1/29377/1

@nixos-discourse
Copy link

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/2023-06-22-learning-journey-working-group-meeting-notes-14/29490/1

@proofconstruction proofconstruction self-assigned this Jul 10, 2023
@zmitchell zmitchell changed the title First steps tutorial - Packaging existing software Learning Journey tutorial - Packaging existing software Sep 19, 2023
@fricklerhandwerk fricklerhandwerk added the tutorial Topics for new tutorials label Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tracking A stopgap for issue dependencies tutorial Topics for new tutorials
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

4 participants