How to apply nixpkgs patch before PR lands in channel
Open
Nobody has claimed this yet.
- Dominant language
- Nix
- Stars
- 628
- Forks
- 64
- PR merge metrics
- No merged PRs in 30d
Description
Is it possible to apply patches to nixpkgs in Snowfall Lib?
Something like:
lib.mkFlake {
channels.nixpkgs = {
input = inputs.nixpkgs;
patches = [
(inputs.fetchpatch {
url = "https://patch-diff.githubusercontent.com/raw/NixOS/nixpkgs/pull/370304.patch";
sha256 = lib.fakeSha256;
})
];
config.allowUnfree = true;
};
...
Or how would I apply patches to nixpkgs before they land in the stable/unstable channel?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the Snowfall Lib documentation for lib.mkFlake and channel configuration, then check how nixpkgs inputs and fetchpatch are handled. Done means documenting whether and how users can apply a nixpkgs patch before it reaches a channel, including a supported configuration example.
Written by the indexing model from the issue text.
Assessment
- Domain
- build-system
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100