Last active
October 29, 2024 14:47
-
-
Save knedlsepp/28b945a3aa41d15b694bc766521994b1 to your computer and use it in GitHub Desktop.
nix: Composing overlays
This file contains 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
let | |
lib = (import <nixpkgs> { overlays = []; }).lib; | |
composeOverlays = lib.foldl' lib.composeExtensions (self: super: {}); | |
in | |
composeOverlays [(import ./overlay1.nix) | |
(import ./overlay2.nix) | |
(self: super: {package30 = self.htop; }) | |
] |
This file contains 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
self: super: { package1 = self.git; } |
This file contains 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
self: super: { package2 = self.htop; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment