-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #183 from emacs-twist/non-overlay-api
Add a non-overlay API for defining a config
- Loading branch information
Showing
8 changed files
with
56 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
inputs: final: prev: let | ||
{ inputs, pkgs }: | ||
let | ||
lib = import ./build-support { | ||
inherit inputs; | ||
pkgs = prev; | ||
inherit pkgs inputs; | ||
}; | ||
in { | ||
emacsTwist = lib.makeOverridable (import ./emacs { | ||
inherit final lib; | ||
pkgs = prev; | ||
}); | ||
} | ||
in | ||
lib.makeOverridable ( | ||
import ./emacs { | ||
inherit lib pkgs; | ||
} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
lib, | ||
pkgs, | ||
final, | ||
final ? pkgs | ||
}: { | ||
emacsPackage ? pkgs.emacs, | ||
lockDir, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# This is a deprecated API which adds `emacsTwist` function to nixpkgs. | ||
# It is recommended to use the function provided under lib. | ||
inputs: final: prev: | ||
let | ||
lib = import ./build-support { | ||
inherit inputs; | ||
pkgs = prev; | ||
}; | ||
in | ||
{ | ||
emacsTwist = | ||
args: | ||
lib.warn "The overlay API of twist is now deprecated." ( | ||
lib.makeOverridable (import ./emacs { | ||
inherit final lib; | ||
pkgs = prev; | ||
}) args | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
{ | ||
emacsTwist, | ||
pkgs, | ||
emacsPackage, | ||
}: | ||
emacsTwist { | ||
inherit emacsPackage; | ||
initFiles = []; | ||
{ | ||
inherit pkgs emacsPackage; | ||
initFiles = [ ]; | ||
lockDir = ./lock; | ||
registries = []; | ||
registries = [ ]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters