overlays: drop the call argument to simplify

This commit is contained in:
Primrose 2025-05-23 10:53:48 +02:00
parent 5da726a8af
commit 7b78d6bf54
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
8 changed files with 52 additions and 44 deletions

View file

@ -5,7 +5,7 @@ in
lib.mapAttrs lib.mapAttrs
( (
name: _: name: _:
import (./by-name + "/${name}/overlay.nix") {inherit sources;} import (./by-name + "/${name}/overlay.nix")
) )
( (
lib.filterAttrs (_: type: type == "directory") (builtins.readDir ./by-name) lib.filterAttrs (_: type: type == "directory") (builtins.readDir ./by-name)

View file

@ -1,5 +1,6 @@
{sources}: let
# sources = import ../../../sources.nix;
final: prev: { in
final: prev: {
inherit (final.callPackage sources.agenix {}) agenix; inherit (final.callPackage sources.agenix {}) agenix;
} }

View file

@ -1,7 +1,8 @@
{sources}: let
# sources = import ../../../sources.nix;
final: _: { in
final: _: {
disko = disko =
final.callPackage (sources.disko + "/package.nix") final.callPackage (sources.disko + "/package.nix")
{diskoVersion = sources.disko.version;}; {diskoVersion = sources.disko.version;};
} }

View file

@ -1,8 +1,9 @@
{sources}: let
# sources = import ../../../sources.nix;
_: _: { in
_: _: {
emacs28 = let emacs28 = let
pkgs = import sources.pin-emacs28 {}; pkgs = import sources.pin-emacs28 {};
in in
pkgs.emacs; pkgs.emacs;
} }

View file

@ -1,8 +1,9 @@
{sources}: let
# sources = import ../../../sources.nix;
_: prev: { in
_: prev: {
nur = import sources.nur { nur = import sources.nur {
nurpkgs = prev; nurpkgs = prev;
pkgs = prev; pkgs = prev;
}; };
} }

View file

@ -1,6 +1,7 @@
{sources}: let
# sources = import ../../../sources.nix;
_: _: { in
_: _: {
# Isabelle version 2023 # Isabelle version 2023
isabelle-2023 = (import sources.pin-isabelle {}).isabelle; isabelle-2023 = (import sources.pin-isabelle {}).isabelle;
} }

View file

@ -1,7 +1,8 @@
{sources}: let
# sources = import ../../../sources.nix;
_: _: { in
_: _: {
# Wireshark bug # Wireshark bug
# https://gitlab.com/wireshark/wireshark/-/issues/19574 # https://gitlab.com/wireshark/wireshark/-/issues/19574
inherit (import sources.pin-wireshark {}) wireshark; inherit (import sources.pin-wireshark {}) wireshark;
} }

View file

@ -1,2 +1,4 @@
{sources}: let
(import sources.wired-notify).overlays.default sources = import ../../../sources.nix;
in
(import sources.wired-notify).overlays.default