extract & rework backports overlay
parent
b718f36bb0
commit
0dfac33429
@ -0,0 +1,20 @@
|
||||
{ lib, ... }@flakeArg:
|
||||
{ pkgs_unstable, ... }@systemArg:
|
||||
final: prev:
|
||||
let
|
||||
list = [
|
||||
# TODO until 24.11
|
||||
"nixfmt-rfc-style"
|
||||
"wcurl"
|
||||
];
|
||||
backport =
|
||||
pkgAttrName:
|
||||
let
|
||||
alreadyStable = builtins.hasAttr pkgAttrName prev;
|
||||
stableSource = lib.warn "consider removing ${pkgAttrName} from backports list as it is now available on stable" prev;
|
||||
source = if alreadyStable then stableSource else pkgs_unstable;
|
||||
pkg = builtins.getAttr pkgAttrName source;
|
||||
in
|
||||
pkg;
|
||||
in
|
||||
lib.genAttrs list backport
|
@ -0,0 +1,14 @@
|
||||
{ lib, ... }@flakeArg:
|
||||
let
|
||||
inherit (lib) systemSpecificVars;
|
||||
rawImport = path: import path flakeArg;
|
||||
wrapOverlay =
|
||||
overlay: final: prev:
|
||||
overlay (systemSpecificVars prev.system) final prev;
|
||||
importOverlay = path: wrapOverlay (rawImport path);
|
||||
in
|
||||
{
|
||||
|
||||
backports = importOverlay ./backports.nix;
|
||||
|
||||
}
|
Loading…
Reference in New Issue