Compare commits
1 commit
master
...
emacs-pkgs
Author | SHA1 | Date | |
---|---|---|---|
677f1f05df |
|
@ -6,11 +6,7 @@ let
|
||||||
|
|
||||||
cfg = config.programs.emacs;
|
cfg = config.programs.emacs;
|
||||||
|
|
||||||
# Copied from all-packages.nix, with modifications to support
|
emacsPackages = cfg.package.pkgs.overrideScope' cfg.overrides;
|
||||||
# overrides.
|
|
||||||
emacsPackages = let epkgs = pkgs.emacsPackagesFor cfg.package;
|
|
||||||
in epkgs.overrideScope' cfg.overrides;
|
|
||||||
|
|
||||||
emacsWithPackages = emacsPackages.emacsWithPackages;
|
emacsWithPackages = emacsPackages.emacsWithPackages;
|
||||||
|
|
||||||
createConfPackage = epkgs:
|
createConfPackage = epkgs:
|
||||||
|
|
|
@ -8,9 +8,9 @@ with lib;
|
||||||
(self: super: rec {
|
(self: super: rec {
|
||||||
emacs = pkgs.writeShellScriptBin "dummy-emacs-27.2" "" // {
|
emacs = pkgs.writeShellScriptBin "dummy-emacs-27.2" "" // {
|
||||||
outPath = "@emacs@";
|
outPath = "@emacs@";
|
||||||
|
pkgs =
|
||||||
|
makeScope super.newScope (_: { emacsWithPackages = _: emacs; });
|
||||||
};
|
};
|
||||||
emacsPackagesFor = _:
|
|
||||||
makeScope super.newScope (_: { emacsWithPackages = _: emacs; });
|
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -8,9 +8,9 @@ with lib;
|
||||||
(self: super: rec {
|
(self: super: rec {
|
||||||
emacs = pkgs.writeShellScriptBin "dummy-emacs-28.0.5" "" // {
|
emacs = pkgs.writeShellScriptBin "dummy-emacs-28.0.5" "" // {
|
||||||
outPath = "@emacs@";
|
outPath = "@emacs@";
|
||||||
|
pkgs =
|
||||||
|
makeScope super.newScope (_: { emacsWithPackages = _: emacs; });
|
||||||
};
|
};
|
||||||
emacsPackagesFor = _:
|
|
||||||
makeScope super.newScope (_: { emacsWithPackages = _: emacs; });
|
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -10,9 +10,9 @@ in {
|
||||||
(self: super: rec {
|
(self: super: rec {
|
||||||
emacs = pkgs.writeShellScriptBin "dummy-emacs-27.2" "" // {
|
emacs = pkgs.writeShellScriptBin "dummy-emacs-27.2" "" // {
|
||||||
outPath = "@emacs@";
|
outPath = "@emacs@";
|
||||||
|
pkgs =
|
||||||
|
makeScope super.newScope (_: { emacsWithPackages = _: emacs; });
|
||||||
};
|
};
|
||||||
emacsPackagesFor = _:
|
|
||||||
makeScope super.newScope (_: { emacsWithPackages = _: emacs; });
|
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -10,9 +10,9 @@ in {
|
||||||
(self: super: rec {
|
(self: super: rec {
|
||||||
emacs = pkgs.writeShellScriptBin "dummy-emacs-28.0.5" "" // {
|
emacs = pkgs.writeShellScriptBin "dummy-emacs-28.0.5" "" // {
|
||||||
outPath = "@emacs@";
|
outPath = "@emacs@";
|
||||||
|
pkgs =
|
||||||
|
makeScope super.newScope (_: { emacsWithPackages = _: emacs; });
|
||||||
};
|
};
|
||||||
emacsPackagesFor = _:
|
|
||||||
makeScope super.newScope (_: { emacsWithPackages = _: emacs; });
|
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue