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

nix-folder2channel: init #101524

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

nix-folder2channel: init #101524

wants to merge 1 commit into from

Conversation

yanganto
Copy link
Member

add nix-folder2channel script to make the nixpkgs into a channel in developing nix packages.

Motivation for this change

Some developers and I are confusing about make the source code into a channel when developing nix packages.
It is trival, but friendly for a new developer to contribute on the nix.
I lack of deep knowledge about nix, and am willing to get any better suggestion and take time to work on this.
If you have any comment or suggestion on this script, I am appreciated.
Fix #14698

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@yanganto yanganto closed this Oct 24, 2020
@yanganto
Copy link
Member Author

The PR is reopened because I had packed an input method package, and the package needs to change some configure in nixos and rebuild OS to make sure everything goes well, such that this script is still helpful when developing a package need to change the configuration in NixOS.

I temporally closed the PR, because I forgot to check whether this is solved or not in NixUI.md, which is mentioned in the issue, and make sure that this tool is needed for NixOS. And the command nix install -d seems not to cover the scenario aforementioned. I am sorry for the inconvenience.

Thanks.

add nix-folder2channel script to make the nixpkgs into a channel in developing nix packages.
@stale
Copy link

stale bot commented Jun 2, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jun 2, 2021
@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Mar 20, 2024
@wegank wegank marked this pull request as draft March 20, 2024 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

A simple command to wrap any folder as a nix channel
3 participants