Last active
April 5, 2025 19:09
-
-
Save spikespaz/9e840e56eaf08f72a92ff31d00539ca5 to your computer and use it in GitHub Desktop.
Nix snippets not used
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
eachNewer = lib.filterAttrs (name: updatedPackage: | |
let | |
verNixpkgs = pkgs0.${name}.version; | |
verOverride = updatedPackage.version; | |
in if lib.versionOlder verNixpkgs verOverride then | |
true | |
else | |
lib.warn '' | |
package `${name}` has an overlay but the version in Nixpkgs is newer | |
(${verNixpkgs} >= ${verOverride}) | |
the derivation in question will be selected from Nixpkgs, without the overlay | |
'' false); |
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
pathStem = path: | |
lib.findFirst (name: name != null) null | |
(builtins.match "(.+)\\..*|(.+)" (baseNameOf path)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment