You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
server/nix/overlays/backports.nix

21 lines
532 B
Nix

{ 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