2015-12-17 13:14:10 +00:00
|
|
|
/*
|
|
|
|
|
|
|
|
# Updating
|
|
|
|
|
|
|
|
To update the list of packages from MELPA,
|
|
|
|
|
2021-05-20 23:03:41 +00:00
|
|
|
1. Run `./update-melpa`
|
2019-04-08 20:06:50 +00:00
|
|
|
2. Check for evaluation errors:
|
2021-05-20 23:03:41 +00:00
|
|
|
env NIXPKGS_ALLOW_BROKEN=1 nix-instantiate --show-trace ../../../../../ -A emacs.pkgs.melpaStablePackages
|
|
|
|
env NIXPKGS_ALLOW_BROKEN=1 nix-instantiate --show-trace ../../../../../ -A emacs.pkgs.melpaPackages
|
2021-06-08 03:51:23 +00:00
|
|
|
3. Run `git commit -m "melpa-packages $(date -Idate)" recipes-archive-melpa.json`
|
2015-12-17 13:14:10 +00:00
|
|
|
|
2020-05-11 12:51:46 +00:00
|
|
|
## Update from overlay
|
|
|
|
|
|
|
|
Alternatively, run the following command:
|
|
|
|
|
|
|
|
./update-from-overlay
|
|
|
|
|
|
|
|
It will update both melpa and elpa packages using
|
2021-05-20 23:03:41 +00:00
|
|
|
https://github.com/nix-community/emacs-overlay. It's almost instantenous and
|
|
|
|
formats commits for you.
|
2020-05-11 12:51:46 +00:00
|
|
|
|
2015-12-17 13:14:10 +00:00
|
|
|
*/
|
|
|
|
|
2021-02-24 13:37:34 +00:00
|
|
|
{ lib, pkgs }: variant: self:
|
2020-05-16 23:35:54 +00:00
|
|
|
let
|
|
|
|
dontConfigure = pkg:
|
|
|
|
if pkg != null then pkg.override (args: {
|
|
|
|
melpaBuild = drv: args.melpaBuild (drv // {
|
|
|
|
dontConfigure = true;
|
|
|
|
});
|
|
|
|
}) else null;
|
|
|
|
|
|
|
|
markBroken = pkg:
|
|
|
|
if pkg != null then pkg.override (args: {
|
|
|
|
melpaBuild = drv: args.melpaBuild (drv // {
|
|
|
|
meta = (drv.meta or { }) // { broken = true; };
|
|
|
|
});
|
|
|
|
}) else null;
|
|
|
|
|
|
|
|
externalSrc = pkg: epkg:
|
|
|
|
if pkg != null then pkg.override (args: {
|
|
|
|
melpaBuild = drv: args.melpaBuild (drv // {
|
|
|
|
inherit (epkg) src version;
|
|
|
|
|
|
|
|
propagatedUserEnvPkgs = [ epkg ];
|
|
|
|
});
|
|
|
|
}) else null;
|
|
|
|
|
2020-10-03 14:29:33 +00:00
|
|
|
buildWithGit = pkg: pkg.overrideAttrs (attrs: {
|
|
|
|
nativeBuildInputs =
|
|
|
|
(attrs.nativeBuildInputs or [ ]) ++ [ pkgs.git ];
|
|
|
|
});
|
|
|
|
|
2020-05-16 23:35:54 +00:00
|
|
|
fix-rtags = pkg:
|
2021-02-24 13:37:34 +00:00
|
|
|
if pkg != null then dontConfigure (externalSrc pkg pkgs.rtags)
|
2020-05-16 23:35:54 +00:00
|
|
|
else null;
|
|
|
|
|
|
|
|
generateMelpa = lib.makeOverridable ({ archiveJson ? ./recipes-archive-melpa.json
|
|
|
|
}:
|
|
|
|
let
|
|
|
|
inherit (import ./libgenerated.nix lib self) melpaDerivation;
|
|
|
|
super = (
|
|
|
|
lib.listToAttrs (builtins.filter
|
|
|
|
(s: s != null)
|
|
|
|
(map
|
|
|
|
(melpaDerivation variant)
|
|
|
|
(lib.importJSON archiveJson)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
);
|
|
|
|
|
2021-08-09 15:36:42 +00:00
|
|
|
overrides = lib.optionalAttrs (variant == "stable") {
|
|
|
|
|
|
|
|
# upstream issue: missing file header
|
|
|
|
speech-tagger = markBroken super.speech-tagger;
|
|
|
|
|
|
|
|
# upstream issue: missing file header
|
|
|
|
textmate = markBroken super.textmate;
|
|
|
|
|
|
|
|
# upstream issue: missing file header
|
|
|
|
window-numbering = markBroken super.window-numbering;
|
|
|
|
|
|
|
|
# upstream issue: missing file header
|
|
|
|
voca-builder = markBroken super.voca-builder;
|
|
|
|
|
|
|
|
# upstream issue: missing file header
|
|
|
|
initsplit = markBroken super.initsplit;
|
|
|
|
|
|
|
|
# upstream issue: missing file header
|
|
|
|
jsfmt = markBroken super.jsfmt;
|
|
|
|
|
|
|
|
# upstream issue: missing file header
|
|
|
|
maxframe = markBroken super.maxframe;
|
|
|
|
|
|
|
|
# upstream issue: missing file header
|
|
|
|
connection = markBroken super.connection;
|
|
|
|
|
|
|
|
# upstream issue: missing file header
|
|
|
|
dictionary = markBroken super.dictionary;
|
|
|
|
|
|
|
|
# upstream issue: missing file header
|
|
|
|
link = markBroken super.link;
|
|
|
|
|
|
|
|
# upstream issue: missing file header
|
|
|
|
bufshow = markBroken super.bufshow;
|
|
|
|
|
|
|
|
# upstream issue: missing file header
|
|
|
|
elmine = markBroken super.elmine;
|
|
|
|
|
|
|
|
# upstream issue: missing file header
|
|
|
|
ido-complete-space-or-hyphen = markBroken super.ido-complete-space-or-hyphen;
|
|
|
|
|
|
|
|
} // {
|
2019-08-03 19:48:11 +00:00
|
|
|
# Expects bash to be at /bin/bash
|
2019-10-29 11:51:11 +00:00
|
|
|
ac-rtags = fix-rtags super.ac-rtags;
|
2016-01-15 21:01:09 +00:00
|
|
|
|
2019-08-03 19:48:11 +00:00
|
|
|
airline-themes = super.airline-themes.override {
|
|
|
|
inherit (self.melpaPackages) powerline;
|
|
|
|
};
|
2017-12-11 08:52:48 +00:00
|
|
|
|
2020-05-16 23:35:54 +00:00
|
|
|
auto-complete-clang-async = super.auto-complete-clang-async.overrideAttrs (old: {
|
2021-02-24 13:37:34 +00:00
|
|
|
buildInputs = old.buildInputs ++ [ pkgs.llvmPackages.llvm ];
|
2021-05-26 19:17:36 +00:00
|
|
|
CFLAGS = "-I${pkgs.llvmPackages.libclang.lib}/include";
|
|
|
|
LDFLAGS = "-L${pkgs.llvmPackages.libclang.lib}/lib";
|
2019-09-01 18:39:17 +00:00
|
|
|
});
|
2017-12-18 18:44:36 +00:00
|
|
|
|
2019-08-03 19:48:11 +00:00
|
|
|
# part of a larger package
|
|
|
|
caml = dontConfigure super.caml;
|
2016-01-15 21:01:09 +00:00
|
|
|
|
2019-10-29 00:27:27 +00:00
|
|
|
# part of a larger package
|
|
|
|
# upstream issue: missing package version
|
|
|
|
cmake-mode = dontConfigure super.cmake-mode;
|
2019-08-12 00:26:34 +00:00
|
|
|
|
2019-10-29 11:51:11 +00:00
|
|
|
company-rtags = fix-rtags super.company-rtags;
|
2018-09-11 14:48:33 +00:00
|
|
|
|
2019-08-03 19:48:11 +00:00
|
|
|
easy-kill-extras = super.easy-kill-extras.override {
|
|
|
|
inherit (self.melpaPackages) easy-kill;
|
|
|
|
};
|
2016-01-15 21:01:09 +00:00
|
|
|
|
2020-05-16 10:11:46 +00:00
|
|
|
dune = dontConfigure super.dune;
|
|
|
|
|
2020-05-16 23:35:54 +00:00
|
|
|
emacsql-sqlite = super.emacsql-sqlite.overrideAttrs (old: {
|
2019-08-14 20:42:01 +00:00
|
|
|
buildInputs = old.buildInputs ++ [ pkgs.sqlite ];
|
|
|
|
|
|
|
|
postBuild = ''
|
|
|
|
cd source/sqlite
|
|
|
|
make
|
|
|
|
cd -
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
install -m=755 -D source/sqlite/emacsql-sqlite \
|
|
|
|
$out/share/emacs/site-lisp/elpa/emacsql-sqlite-${old.version}/sqlite/emacsql-sqlite
|
|
|
|
'';
|
|
|
|
|
|
|
|
stripDebugList = [ "share" ];
|
|
|
|
});
|
|
|
|
|
2021-05-21 17:20:30 +00:00
|
|
|
erlang = super.erlang.overrideAttrs (attrs: {
|
|
|
|
buildInputs = attrs.buildInputs ++ [
|
|
|
|
pkgs.perl
|
|
|
|
pkgs.ncurses
|
|
|
|
];
|
|
|
|
});
|
|
|
|
|
2019-10-18 17:15:21 +00:00
|
|
|
# https://github.com/syl20bnr/evil-escape/pull/86
|
|
|
|
evil-escape = super.evil-escape.overrideAttrs (attrs: {
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace evil-escape.el \
|
|
|
|
--replace ' ;;; evil' ';;; evil'
|
|
|
|
'';
|
|
|
|
packageRequires = with self; [ evil ];
|
|
|
|
});
|
|
|
|
|
2019-08-03 19:48:11 +00:00
|
|
|
ess-R-data-view = super.ess-R-data-view.override {
|
|
|
|
inherit (self.melpaPackages) ess ctable popup;
|
|
|
|
};
|
2018-08-02 05:46:07 +00:00
|
|
|
|
2019-10-29 11:51:11 +00:00
|
|
|
flycheck-rtags = fix-rtags super.flycheck-rtags;
|
2018-08-02 05:46:21 +00:00
|
|
|
|
2020-05-16 23:35:54 +00:00
|
|
|
pdf-tools = super.pdf-tools.overrideAttrs (old: {
|
2021-02-26 17:05:25 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgs.autoconf
|
|
|
|
pkgs.automake
|
|
|
|
pkgs.pkg-config
|
|
|
|
pkgs.removeReferencesTo
|
|
|
|
];
|
|
|
|
buildInputs = old.buildInputs ++ [ pkgs.libpng pkgs.zlib pkgs.poppler ];
|
|
|
|
preBuild = ''
|
|
|
|
make server/epdfinfo
|
2021-03-04 19:47:37 +00:00
|
|
|
remove-references-to ${lib.concatStringsSep " " (
|
|
|
|
map (output: "-t " + output) (
|
|
|
|
[
|
|
|
|
pkgs.glib.dev
|
|
|
|
pkgs.libpng.dev
|
|
|
|
pkgs.poppler.dev
|
|
|
|
pkgs.zlib.dev
|
|
|
|
pkgs.cairo.dev
|
|
|
|
]
|
|
|
|
++ lib.optional pkgs.stdenv.isLinux pkgs.stdenv.cc.libc.dev
|
|
|
|
)
|
|
|
|
)} server/epdfinfo
|
2021-02-26 17:05:25 +00:00
|
|
|
'';
|
2019-08-04 16:55:15 +00:00
|
|
|
recipe = pkgs.writeText "recipe" ''
|
|
|
|
(pdf-tools
|
|
|
|
:repo "politza/pdf-tools" :fetcher github
|
|
|
|
:files ("lisp/pdf-*.el" "server/epdfinfo"))
|
|
|
|
'';
|
|
|
|
});
|
|
|
|
|
2019-08-03 19:48:11 +00:00
|
|
|
# Build same version as Haskell package
|
2021-02-24 13:37:34 +00:00
|
|
|
hindent = (externalSrc super.hindent pkgs.haskellPackages.hindent).overrideAttrs (attrs: {
|
2019-08-03 19:48:11 +00:00
|
|
|
packageRequires = [ self.haskell-mode ];
|
|
|
|
});
|
2019-01-10 16:16:04 +00:00
|
|
|
|
2019-08-26 01:54:45 +00:00
|
|
|
irony = super.irony.overrideAttrs (old: {
|
2020-05-16 23:35:54 +00:00
|
|
|
cmakeFlags = old.cmakeFlags or [ ] ++ [ "-DCMAKE_INSTALL_BINDIR=bin" ];
|
2019-08-29 22:22:00 +00:00
|
|
|
NIX_CFLAGS_COMPILE = "-UCLANG_RESOURCE_DIR";
|
2019-08-04 19:53:10 +00:00
|
|
|
preConfigure = ''
|
|
|
|
cd server
|
|
|
|
'';
|
|
|
|
preBuild = ''
|
|
|
|
make
|
2019-08-26 01:54:45 +00:00
|
|
|
install -D bin/irony-server $out/bin/irony-server
|
|
|
|
cd ..
|
2019-08-04 19:53:10 +00:00
|
|
|
'';
|
2019-08-26 01:54:45 +00:00
|
|
|
checkPhase = ''
|
2019-08-04 19:53:10 +00:00
|
|
|
cd source/server
|
2019-08-26 01:54:45 +00:00
|
|
|
make check
|
|
|
|
cd ../..
|
2019-08-04 19:53:10 +00:00
|
|
|
'';
|
2019-08-29 22:22:00 +00:00
|
|
|
preFixup = ''
|
|
|
|
rm -rf $out/share/emacs/site-lisp/elpa/*/server
|
|
|
|
'';
|
2019-08-04 19:53:10 +00:00
|
|
|
dontUseCmakeBuildDir = true;
|
|
|
|
doCheck = true;
|
|
|
|
packageRequires = [ self.emacs ];
|
2021-05-26 19:17:36 +00:00
|
|
|
nativeBuildInputs = [ pkgs.cmake pkgs.llvmPackages.llvm pkgs.llvmPackages.libclang ];
|
2019-08-04 19:53:10 +00:00
|
|
|
});
|
|
|
|
|
2019-08-03 19:48:11 +00:00
|
|
|
# tries to write a log file to $HOME
|
|
|
|
insert-shebang = super.insert-shebang.overrideAttrs (attrs: {
|
|
|
|
HOME = "/tmp";
|
|
|
|
});
|
2017-12-18 18:44:36 +00:00
|
|
|
|
2019-10-29 11:51:11 +00:00
|
|
|
ivy-rtags = fix-rtags super.ivy-rtags;
|
2018-07-26 20:34:39 +00:00
|
|
|
|
2020-09-20 20:27:19 +00:00
|
|
|
libgit = super.libgit.overrideAttrs(attrs: {
|
|
|
|
nativeBuildInputs = (attrs.nativeBuildInputs or []) ++ [ pkgs.cmake ];
|
|
|
|
buildInputs = attrs.buildInputs ++ [ pkgs.libgit2 ];
|
|
|
|
dontUseCmakeBuildDir = true;
|
|
|
|
postPatch = ''
|
|
|
|
sed -i s/'add_subdirectory(libgit2)'// CMakeLists.txt
|
|
|
|
'';
|
|
|
|
postBuild = ''
|
|
|
|
pushd working/libgit
|
|
|
|
make
|
|
|
|
popd
|
|
|
|
'';
|
|
|
|
postInstall = ''
|
|
|
|
outd=$(echo $out/share/emacs/site-lisp/elpa/libgit-**)
|
|
|
|
mkdir $outd/build
|
|
|
|
install -m444 -t $outd/build ./source/src/libegit2.so
|
|
|
|
rm -r $outd/src $outd/Makefile $outd/CMakeLists.txt
|
|
|
|
'';
|
|
|
|
});
|
|
|
|
|
2020-10-03 14:34:28 +00:00
|
|
|
evil-magit = buildWithGit super.evil-magit;
|
|
|
|
|
|
|
|
eopengrok = buildWithGit super.eopengrok;
|
|
|
|
|
|
|
|
forge = buildWithGit super.forge;
|
|
|
|
|
2020-10-03 14:29:33 +00:00
|
|
|
magit = buildWithGit super.magit;
|
2018-08-02 05:46:43 +00:00
|
|
|
|
2020-10-03 14:29:33 +00:00
|
|
|
magit-find-file = buildWithGit super.magit-find-file;
|
2020-04-24 10:18:29 +00:00
|
|
|
|
2020-10-03 14:29:33 +00:00
|
|
|
magit-gh-pulls = buildWithGit super.magit-gh-pulls;
|
2020-04-24 10:18:44 +00:00
|
|
|
|
2020-10-03 14:29:33 +00:00
|
|
|
magit-imerge = buildWithGit super.magit-imerge;
|
2020-04-24 10:18:58 +00:00
|
|
|
|
2020-10-03 14:29:33 +00:00
|
|
|
magit-lfs = buildWithGit super.magit-lfs;
|
2020-04-24 10:19:10 +00:00
|
|
|
|
2020-10-03 14:29:33 +00:00
|
|
|
magit-org-todos = buildWithGit super.magit-org-todos;
|
2020-04-24 10:19:23 +00:00
|
|
|
|
2020-10-03 14:29:33 +00:00
|
|
|
magit-tbdiff = buildWithGit super.magit-tbdiff;
|
2020-04-24 10:20:51 +00:00
|
|
|
|
2020-10-03 14:29:33 +00:00
|
|
|
magit-topgit = buildWithGit super.magit-topgit;
|
2020-04-24 10:21:15 +00:00
|
|
|
|
2020-10-03 14:29:33 +00:00
|
|
|
magit-vcsh = buildWithGit super.magit-vcsh;
|
2020-04-24 10:21:33 +00:00
|
|
|
|
2020-10-03 14:29:33 +00:00
|
|
|
magit-gerrit = buildWithGit super.magit-gerrit;
|
2020-04-24 10:21:43 +00:00
|
|
|
|
2020-10-03 14:29:33 +00:00
|
|
|
magit-annex = buildWithGit super.magit-annex;
|
2019-08-09 04:51:34 +00:00
|
|
|
|
2020-10-03 14:29:33 +00:00
|
|
|
magit-todos = buildWithGit super.magit-todos;
|
2017-12-18 18:44:36 +00:00
|
|
|
|
2020-10-03 14:29:33 +00:00
|
|
|
magit-filenotify = buildWithGit super.magit-filenotify;
|
2016-01-15 21:01:09 +00:00
|
|
|
|
2020-10-03 14:29:33 +00:00
|
|
|
magit-gitflow = buildWithGit super.magit-gitflow;
|
2019-08-09 04:52:15 +00:00
|
|
|
|
2020-10-03 14:29:33 +00:00
|
|
|
magithub = buildWithGit super.magithub;
|
2019-08-09 04:52:38 +00:00
|
|
|
|
2020-10-03 14:29:33 +00:00
|
|
|
magit-svn = buildWithGit super.magit-svn;
|
2019-08-09 04:53:05 +00:00
|
|
|
|
2020-10-03 14:29:33 +00:00
|
|
|
kubernetes = buildWithGit super.kubernetes;
|
2019-08-06 10:23:53 +00:00
|
|
|
|
2020-10-03 14:29:33 +00:00
|
|
|
kubernetes-evil = buildWithGit super.kubernetes-evil;
|
2020-04-24 10:25:29 +00:00
|
|
|
|
2020-10-03 14:34:28 +00:00
|
|
|
egg = buildWithGit super.egg;
|
|
|
|
|
|
|
|
kapacitor = buildWithGit super.kapacitor;
|
|
|
|
|
|
|
|
gerrit = buildWithGit super.gerrit;
|
|
|
|
|
|
|
|
gerrit-download = buildWithGit super.gerrit-download;
|
|
|
|
|
|
|
|
github-pullrequest = buildWithGit super.github-pullrequest;
|
|
|
|
|
|
|
|
jist = buildWithGit super.jist;
|
|
|
|
|
|
|
|
mandoku = buildWithGit super.mandoku;
|
|
|
|
|
|
|
|
mandoku-tls = buildWithGit super.mandoku-tls;
|
|
|
|
|
|
|
|
magit-p4 = buildWithGit super.magit-p4;
|
|
|
|
|
|
|
|
magit-rbr = buildWithGit super.magit-rbr;
|
|
|
|
|
|
|
|
magit-diff-flycheck = buildWithGit super.magit-diff-flycheck;
|
|
|
|
|
|
|
|
magit-reviewboard = buildWithGit super.magit-reviewboard;
|
|
|
|
|
|
|
|
magit-patch-changelog = buildWithGit super.magit-patch-changelog;
|
|
|
|
|
|
|
|
magit-circleci = buildWithGit super.magit-circleci;
|
|
|
|
|
2020-10-03 14:35:43 +00:00
|
|
|
magit-delta = buildWithGit super.magit-delta;
|
|
|
|
|
2020-10-03 14:34:28 +00:00
|
|
|
orgit = buildWithGit super.orgit;
|
|
|
|
|
|
|
|
orgit-forge = buildWithGit super.orgit-forge;
|
|
|
|
|
2019-09-01 18:16:05 +00:00
|
|
|
# upstream issue: missing file header
|
2019-08-03 19:48:11 +00:00
|
|
|
mhc = super.mhc.override {
|
|
|
|
inherit (self.melpaPackages) calfw;
|
|
|
|
};
|
2016-01-15 21:01:09 +00:00
|
|
|
|
2019-08-03 19:48:11 +00:00
|
|
|
# missing .NET
|
|
|
|
nemerle = markBroken super.nemerle;
|
|
|
|
|
|
|
|
# part of a larger package
|
|
|
|
notmuch = dontConfigure super.notmuch;
|
|
|
|
|
2021-02-24 13:37:34 +00:00
|
|
|
rtags = dontConfigure (externalSrc super.rtags pkgs.rtags);
|
2019-10-29 11:51:11 +00:00
|
|
|
|
2020-05-16 10:02:23 +00:00
|
|
|
rtags-xref = dontConfigure super.rtags;
|
|
|
|
|
2019-08-04 01:26:52 +00:00
|
|
|
shm = super.shm.overrideAttrs (attrs: {
|
2021-02-24 13:37:34 +00:00
|
|
|
propagatedUserEnvPkgs = [ pkgs.haskellPackages.structured-haskell-mode ];
|
2019-08-04 01:26:52 +00:00
|
|
|
});
|
|
|
|
|
2019-08-13 09:43:22 +00:00
|
|
|
# Telega has a server portion for it's network protocol
|
2020-05-16 23:35:54 +00:00
|
|
|
telega = super.telega.overrideAttrs (old: {
|
2019-08-13 09:43:22 +00:00
|
|
|
buildInputs = old.buildInputs ++ [ pkgs.tdlib ];
|
2021-02-24 13:37:34 +00:00
|
|
|
nativeBuildInputs = [ pkgs.pkg-config ];
|
2019-08-13 09:43:22 +00:00
|
|
|
|
2021-02-25 11:13:31 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace telega-customize.el \
|
|
|
|
--replace 'defcustom telega-server-command "telega-server"' \
|
|
|
|
"defcustom telega-server-command \"$out/bin/telega-server\""
|
|
|
|
|
2022-01-11 12:13:31 +00:00
|
|
|
substituteInPlace telega-sticker.el --replace '"dwebp' '"${pkgs.libwebp}/bin/dwebp'
|
|
|
|
substituteInPlace telega-sticker.el --replace '"ffmpeg' '"${pkgs.ffmpeg}/bin/ffmpeg'
|
2021-02-25 11:13:31 +00:00
|
|
|
|
|
|
|
substituteInPlace telega-vvnote.el --replace '"ffmpeg' '"${pkgs.ffmpeg}/bin/ffmpeg'
|
|
|
|
'';
|
|
|
|
|
2019-08-13 09:43:22 +00:00
|
|
|
postBuild = ''
|
|
|
|
cd source/server
|
|
|
|
make
|
|
|
|
cd -
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
install -m755 -Dt $out/bin ./source/server/telega-server
|
|
|
|
'';
|
|
|
|
});
|
|
|
|
|
2020-05-16 10:07:57 +00:00
|
|
|
treemacs-magit = super.treemacs-magit.overrideAttrs (attrs: {
|
|
|
|
# searches for Git at build time
|
|
|
|
nativeBuildInputs =
|
2021-02-24 13:37:34 +00:00
|
|
|
(attrs.nativeBuildInputs or [ ]) ++ [ pkgs.git ];
|
2020-05-16 10:07:57 +00:00
|
|
|
});
|
|
|
|
|
2019-08-03 19:48:11 +00:00
|
|
|
vdiff-magit = super.vdiff-magit.overrideAttrs (attrs: {
|
2018-07-16 10:34:03 +00:00
|
|
|
nativeBuildInputs =
|
2021-02-24 13:37:34 +00:00
|
|
|
(attrs.nativeBuildInputs or [ ]) ++ [ pkgs.git ];
|
2018-07-16 10:34:03 +00:00
|
|
|
});
|
2017-12-29 23:28:25 +00:00
|
|
|
|
2020-05-16 23:35:54 +00:00
|
|
|
zmq = super.zmq.overrideAttrs (old: {
|
2019-08-04 18:08:35 +00:00
|
|
|
stripDebugList = [ "share" ];
|
|
|
|
preBuild = ''
|
2021-04-19 14:43:48 +00:00
|
|
|
export EZMQ_LIBDIR=$(mktemp -d)
|
2019-08-04 18:08:35 +00:00
|
|
|
make
|
|
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
2021-02-24 13:37:34 +00:00
|
|
|
pkgs.autoconf
|
|
|
|
pkgs.automake
|
|
|
|
pkgs.pkg-config
|
|
|
|
pkgs.libtool
|
|
|
|
(pkgs.zeromq.override { enableDrafts = true; })
|
2019-08-04 18:08:35 +00:00
|
|
|
];
|
|
|
|
postInstall = ''
|
2021-04-19 14:43:48 +00:00
|
|
|
mv $EZMQ_LIBDIR/emacs-zmq.* $out/share/emacs/site-lisp/elpa/zmq-*
|
2019-08-04 18:08:35 +00:00
|
|
|
rm -r $out/share/emacs/site-lisp/elpa/zmq-*/src
|
|
|
|
rm $out/share/emacs/site-lisp/elpa/zmq-*/Makefile
|
|
|
|
'';
|
|
|
|
});
|
|
|
|
|
2019-08-03 19:48:11 +00:00
|
|
|
# Map legacy renames from emacs2nix since code generation was ported to emacs lisp
|
|
|
|
_0blayout = super."0blayout";
|
|
|
|
desktop-plus = super."desktop+";
|
|
|
|
ghub-plus = super."ghub+";
|
|
|
|
git-gutter-plus = super."git-gutter+";
|
|
|
|
git-gutter-fringe-plus = super."git-gutter-fringe+";
|
|
|
|
ido-completing-read-plus = super."ido-completing-read+";
|
|
|
|
image-plus = super."image+";
|
|
|
|
image-dired-plus = super."image-dired+";
|
|
|
|
markdown-mode-plus = super."markdown-mode+";
|
|
|
|
package-plus = super."package+";
|
|
|
|
rect-plus = super."rect+";
|
2019-08-31 22:44:41 +00:00
|
|
|
|
2020-12-09 23:08:52 +00:00
|
|
|
# upstream issue: missing file header
|
|
|
|
instapaper = markBroken super.instapaper;
|
|
|
|
|
2020-12-09 22:55:11 +00:00
|
|
|
# upstream issue: doesn't build
|
|
|
|
magit-stgit = markBroken super.magit-stgit;
|
|
|
|
|
2020-12-09 22:57:13 +00:00
|
|
|
# upstream issue: missing file header
|
|
|
|
melancholy-theme = markBroken super.melancholy-theme;
|
|
|
|
|
2019-08-31 22:52:28 +00:00
|
|
|
# upstream issue: doesn't build
|
|
|
|
eterm-256color = markBroken super.eterm-256color;
|
2018-08-02 08:04:57 +00:00
|
|
|
|
2020-12-09 23:13:44 +00:00
|
|
|
# upstream issue: doesn't build
|
|
|
|
per-buffer-theme = markBroken super.per-buffer-theme;
|
|
|
|
|
2019-08-31 22:48:53 +00:00
|
|
|
# upstream issue: missing file header
|
|
|
|
qiita = markBroken super.qiita;
|
|
|
|
|
2020-12-09 23:16:59 +00:00
|
|
|
# upstream issue: missing file header
|
|
|
|
sql-presto = markBroken super.sql-presto;
|
|
|
|
|
2019-08-03 19:48:11 +00:00
|
|
|
editorconfig = super.editorconfig.overrideAttrs (attrs: {
|
2021-02-24 13:37:34 +00:00
|
|
|
propagatedUserEnvPkgs = [ pkgs.editorconfig-core-c ];
|
2019-08-03 19:48:11 +00:00
|
|
|
});
|
2016-01-15 21:01:09 +00:00
|
|
|
|
2019-08-03 19:48:11 +00:00
|
|
|
# missing dependencies
|
|
|
|
evil-search-highlight-persist = super.evil-search-highlight-persist.overrideAttrs (attrs: {
|
|
|
|
packageRequires = with self; [ evil highlight ];
|
|
|
|
});
|
2016-01-15 21:01:09 +00:00
|
|
|
|
2019-10-29 11:51:11 +00:00
|
|
|
helm-rtags = fix-rtags super.helm-rtags;
|
2016-01-15 21:01:09 +00:00
|
|
|
|
2019-08-03 19:48:11 +00:00
|
|
|
# tries to write to $HOME
|
|
|
|
php-auto-yasnippets = super.php-auto-yasnippets.overrideAttrs (attrs: {
|
|
|
|
HOME = "/tmp";
|
|
|
|
});
|
|
|
|
|
|
|
|
racer = super.racer.overrideAttrs (attrs: {
|
|
|
|
postPatch = attrs.postPatch or "" + ''
|
|
|
|
substituteInPlace racer.el \
|
2021-02-24 13:37:34 +00:00
|
|
|
--replace /usr/local/src/rust/src ${pkgs.rustPlatform.rustcSrc}
|
2019-08-03 19:48:11 +00:00
|
|
|
'';
|
|
|
|
});
|
|
|
|
|
|
|
|
spaceline = super.spaceline.override {
|
|
|
|
inherit (self.melpaPackages) powerline;
|
|
|
|
};
|
2019-04-08 20:06:50 +00:00
|
|
|
|
2020-05-16 23:35:54 +00:00
|
|
|
vterm = super.vterm.overrideAttrs (old: {
|
2020-12-31 07:48:55 +00:00
|
|
|
nativeBuildInputs = [ pkgs.cmake ];
|
|
|
|
buildInputs = old.buildInputs ++ [ self.emacs pkgs.libvterm-neovim ];
|
2019-08-13 10:20:23 +00:00
|
|
|
cmakeFlags = [
|
2019-10-18 15:38:28 +00:00
|
|
|
"-DEMACS_SOURCE=${self.emacs.src}"
|
|
|
|
"-DUSE_SYSTEM_LIBVTERM=ON"
|
2019-08-13 10:20:23 +00:00
|
|
|
];
|
2019-10-18 15:38:28 +00:00
|
|
|
# we need the proper out directory to exist, so we do this in the
|
|
|
|
# postInstall instead of postBuild
|
|
|
|
postInstall = ''
|
|
|
|
pushd source/build >/dev/null
|
|
|
|
make
|
|
|
|
install -m444 -t $out/share/emacs/site-lisp/elpa/vterm-** ../*.so
|
|
|
|
popd > /dev/null
|
|
|
|
rm -rf $out/share/emacs/site-lisp/elpa/vterm-**/{CMake*,build,*.c,*.h}
|
2019-08-13 10:20:23 +00:00
|
|
|
'';
|
2019-10-18 15:38:28 +00:00
|
|
|
});
|
2020-03-25 21:09:51 +00:00
|
|
|
|
2019-08-03 19:48:11 +00:00
|
|
|
w3m = super.w3m.override (args: {
|
|
|
|
melpaBuild = drv: args.melpaBuild (drv // {
|
|
|
|
prePatch =
|
2021-02-24 13:37:34 +00:00
|
|
|
let w3m = "${lib.getBin pkgs.w3m}/bin/w3m"; in
|
2020-05-16 23:35:54 +00:00
|
|
|
''
|
2019-08-03 19:48:11 +00:00
|
|
|
substituteInPlace w3m.el \
|
2020-05-16 23:35:54 +00:00
|
|
|
--replace 'defcustom w3m-command nil' \
|
|
|
|
'defcustom w3m-command "${w3m}"'
|
2019-08-03 19:48:11 +00:00
|
|
|
'';
|
|
|
|
});
|
|
|
|
});
|
|
|
|
};
|
|
|
|
|
2021-08-03 17:44:11 +00:00
|
|
|
in lib.mapAttrs (n: v: if lib.hasAttr n overrides then overrides.${n} else v) super);
|
2020-05-16 23:35:54 +00:00
|
|
|
|
|
|
|
in
|
|
|
|
generateMelpa { }
|