chore(emacs): Move carp-mode to third-party
This commit is contained in:
parent
00c9060c2f
commit
02e2877193
2 changed files with 25 additions and 20 deletions
23
third_party/emacs/carp-mode.nix
vendored
Normal file
23
third_party/emacs/carp-mode.nix
vendored
Normal file
|
@ -0,0 +1,23 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
with pkgs.third_party;
|
||||
with emacsPackagesNg;
|
||||
|
||||
melpaBuild rec {
|
||||
pname = "carp-mode";
|
||||
version = "3.0";
|
||||
packageRequires = [ clojure-mode ];
|
||||
|
||||
recipe = builtins.toFile "recipe" ''
|
||||
(carp-mode :fetcher github
|
||||
:repo "carp-lang/carp"
|
||||
:files ("emacs/*.el"))
|
||||
'';
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "carp-lang";
|
||||
repo = "carp";
|
||||
rev = "6954642cadee730885717201c3180c7acfb1bfa9";
|
||||
sha256 = "1pz4x2qkwjbz789bwc6nkacrjpzlxawxhl2nv0xdp731y7q7xyk9";
|
||||
};
|
||||
}
|
|
@ -5,29 +5,11 @@
|
|||
|
||||
with pkgs;
|
||||
with third_party.emacsPackagesNg;
|
||||
with third_party.emacs;
|
||||
|
||||
let
|
||||
emacsWithPackages = (third_party.emacsPackagesNgGen third_party.emacs26).emacsWithPackages;
|
||||
|
||||
carpMode = melpaBuild {
|
||||
pname = "carp-mode";
|
||||
ename = "carp-mode";
|
||||
version = "3.0";
|
||||
recipe = builtins.toFile "recipe" ''
|
||||
(carp-mode :fetcher github
|
||||
:repo "carp-lang/carp"
|
||||
:files ("emacs/*.el"))
|
||||
'';
|
||||
|
||||
packageRequires = [ clojure-mode ];
|
||||
src = third_party.fetchFromGitHub {
|
||||
owner = "carp-lang";
|
||||
repo = "carp";
|
||||
rev = "6954642cadee730885717201c3180c7acfb1bfa9";
|
||||
sha256 = "1pz4x2qkwjbz789bwc6nkacrjpzlxawxhl2nv0xdp731y7q7xyk9";
|
||||
};
|
||||
};
|
||||
|
||||
tazjinsEmacs = (emacsWithPackages(epkgs:
|
||||
# Actual ELPA packages (the enlightened!)
|
||||
(with epkgs.elpaPackages; [
|
||||
|
@ -99,7 +81,7 @@ let
|
|||
]) ++
|
||||
|
||||
# Custom packages
|
||||
[ carpMode ]
|
||||
[ carp-mode ]
|
||||
));
|
||||
in third_party.writeShellScriptBin "tazjins-emacs" ''
|
||||
exec ${tazjinsEmacs}/bin/emacs \
|
||||
|
|
Loading…
Reference in a new issue