2015-12-17 14:12:49 +01:00
|
|
|
/*
|
|
|
|
|
|
|
|
# Updating
|
|
|
|
|
2016-04-26 21:06:42 +02:00
|
|
|
To update the list of packages from MELPA,
|
2015-12-17 14:12:49 +01:00
|
|
|
|
2016-04-26 21:06:42 +02:00
|
|
|
1. Clone https://github.com/ttuegel/emacs2nix.
|
|
|
|
2. Run `./elpa-packages.sh` from emacs2nix.
|
|
|
|
3. Copy the new `elpa-generated.nix` file into Nixpkgs.
|
|
|
|
4. Check for evaluation errors: `nix-instantiate ./. -A emacsPackagesNg.elpaPackages`.
|
|
|
|
5. `git add pkgs/applications/editors/emacs-modes/elpa-generated.nix && git commit -m "elpa-packages $(date -Idate)"`
|
2015-12-17 14:12:49 +01:00
|
|
|
|
|
|
|
*/
|
|
|
|
|
2015-12-17 03:39:45 +01:00
|
|
|
{ fetchurl, lib, stdenv, texinfo }:
|
2015-12-06 16:27:19 +01:00
|
|
|
|
2015-12-15 18:57:51 +01:00
|
|
|
self:
|
2015-12-06 16:27:19 +01:00
|
|
|
|
2015-12-15 18:57:51 +01:00
|
|
|
let
|
2016-01-15 04:52:31 +01:00
|
|
|
|
|
|
|
imported = import ./elpa-generated.nix {
|
|
|
|
inherit (self) callPackage;
|
|
|
|
};
|
|
|
|
|
|
|
|
super = removeAttrs imported [ "dash" ];
|
2015-12-15 18:57:51 +01:00
|
|
|
|
2016-01-17 00:20:06 +01:00
|
|
|
elpaBuild = import ../../../build-support/emacs/elpa.nix {
|
2015-12-17 03:39:45 +01:00
|
|
|
inherit fetchurl lib stdenv texinfo;
|
2015-12-15 18:57:51 +01:00
|
|
|
inherit (self) emacs;
|
|
|
|
};
|
|
|
|
|
|
|
|
markBroken = pkg: pkg.override {
|
|
|
|
elpaBuild = args: self.elpaBuild (args // {
|
|
|
|
meta = (args.meta or {}) // { broken = true; };
|
|
|
|
});
|
|
|
|
};
|
2015-12-16 15:13:46 +01:00
|
|
|
|
2016-01-15 04:52:31 +01:00
|
|
|
overrides = {
|
2017-11-29 23:48:15 +01:00
|
|
|
# upstream issue: missing footer
|
|
|
|
ebdb-i18n-chn = markBroken super.ebdb-i18n-chn;
|
2016-03-21 21:36:39 +01:00
|
|
|
el-search = markBroken super.el-search; # requires emacs-25
|
|
|
|
iterators = markBroken super.iterators; # requires emacs-25
|
|
|
|
midi-kbd = markBroken super.midi-kbd; # requires emacs-25
|
2017-11-20 23:12:11 +01:00
|
|
|
rcirc-menu = markBroken super.rcirc-menu; # Missing file header
|
2016-03-21 21:36:39 +01:00
|
|
|
stream = markBroken super.stream; # requires emacs-25
|
|
|
|
cl-lib = null; # builtin
|
2016-04-26 21:09:33 +02:00
|
|
|
tle = null; # builtin
|
2015-12-16 15:13:46 +01:00
|
|
|
};
|
2016-01-15 04:52:31 +01:00
|
|
|
|
|
|
|
elpaPackages = super // overrides;
|
|
|
|
|
2015-12-16 15:13:46 +01:00
|
|
|
in elpaPackages // { inherit elpaBuild elpaPackages; }
|