decb5802c9
Building packages requires package-build.el from Melpa, but installing packages only requires package.el. Packages from ELPA are already built, so there is no need to involve package-build.el.
48 lines
1.1 KiB
Nix
48 lines
1.1 KiB
Nix
/*
|
|
|
|
# Updating
|
|
|
|
To update the list of packages from ELPA,
|
|
|
|
1. Clone https://github.com/ttuegel/emacs2nix
|
|
2. Run `./elpa-packages.sh` from emacs2nix
|
|
3. Copy the new elpa-packages.json file into Nixpkgs
|
|
4. `git commit -m "elpa-packages $(date -Idate)"`
|
|
|
|
*/
|
|
|
|
{ fetchurl, lib, stdenv, texinfo }:
|
|
|
|
self:
|
|
|
|
let
|
|
|
|
imported = import ./elpa-generated.nix {
|
|
inherit (self) callPackage;
|
|
};
|
|
|
|
super = removeAttrs imported [ "dash" ];
|
|
|
|
elpaBuild = import ../../../build-support/emacs/elpa.nix {
|
|
inherit fetchurl lib stdenv texinfo;
|
|
inherit (self) emacs;
|
|
};
|
|
|
|
markBroken = pkg: pkg.override {
|
|
elpaBuild = args: self.elpaBuild (args // {
|
|
meta = (args.meta or {}) // { broken = true; };
|
|
});
|
|
};
|
|
|
|
overrides = {
|
|
# These packages require emacs-25
|
|
el-search = markBroken super.el-search;
|
|
iterators = markBroken super.iterators;
|
|
midi-kbd = markBroken super.midi-kbd;
|
|
stream = markBroken super.stream;
|
|
};
|
|
|
|
elpaPackages = super // overrides;
|
|
|
|
in elpaPackages // { inherit elpaBuild elpaPackages; }
|