Last active
March 29, 2021 23:33
-
-
Save ony/51393bdc6566d3bfa764bd9b726bab96 to your computer and use it in GitHub Desktop.
cherry-pick packages in nix between channels
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Motivation: | |
# - System uses <nixos> 20.09 | |
# - Pulling any package from <nixpkgs-unstable> effectively keeps part of the system duplicated | |
self: super: | |
let | |
nixpkgs-unstable = import <nixpkgs-unstable> { }; | |
cherryPick = pkg: pkg.override (origArgs: builtins.intersectAttrs origArgs self); | |
in { | |
zig-unstable = (cherryPick nixpkgs-unstable.zig).override { | |
llvmPackages = self.llvmPackages_11; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment