pkgs/overlays/version-info-fixup: support unstable-with-meta overlay
This commit is contained in:
parent
77ef7434f2
commit
bb3c272119
3 changed files with 12 additions and 5 deletions
|
@ -1,8 +1,8 @@
|
|||
{ inputs ? import ../../inputs.nix {} }:
|
||||
{ revision }:
|
||||
|
||||
selfLib: superLib: {
|
||||
trivial = superLib.trivial // {
|
||||
versionSuffix = ".git.${builtins.substring 0 12 inputs.lock.nixpkgs.revision}";
|
||||
revisionWithDefault = default: inputs.lock.nixpkgs.revision or default;
|
||||
versionSuffix = ".git.${builtins.substring 0 12 revision}";
|
||||
revisionWithDefault = default: revision;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
let
|
||||
|
||||
lib = (import "${inputs.nixpkgs}/lib").extend (import ./lib/overlays/version-info-fixup.nix { inherit inputs; });
|
||||
lib = (import "${inputs.nixpkgs}/lib").extend (import ./lib/overlays/version-info-fixup.nix { revision = inputs.lock.nixpkgs.revision; });
|
||||
|
||||
self = {
|
||||
inherit inputs lib self;
|
||||
|
|
|
@ -1,5 +1,12 @@
|
|||
{ inputs ? import ../../inputs.nix {} }:
|
||||
|
||||
self: super: {
|
||||
lib = super.lib.extend (import ../../lib/overlays/version-info-fixup.nix { inherit inputs; });
|
||||
lib = super.lib.extend (import ../../lib/overlays/version-info-fixup.nix { revision = inputs.lock.nixpkgs.revision; });
|
||||
} //
|
||||
super.lib.optionalAttrs (super ? unstable && super ? unstableRevision) {
|
||||
unstable = super.unstable // {
|
||||
lib = super.unstable.lib.extend (import ../../lib/overlays/version-info-fixup.nix {
|
||||
revision = super.unstableRevision;
|
||||
});
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue