summary refs log tree commit diff
path: root/pkgs/applications/editors/emacs-modes/org-packages.nix
blob: b8543841a7ff32b9b7a583dfea05ed6050d652b6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*

# Updating

To update the list of packages from ELPA,

1. Clone https://github.com/ttuegel/emacs2nix
2. Run `./org-packages.sh` from emacs2nix
3. Copy the new org-packages.json file into Nixpkgs
4. `git commit -m "org-packages $(date -Idate)"`

*/

{ fetchurl, lib, stdenv, texinfo }:

self:

  let

    imported = import ./org-generated.nix {
      inherit (self) callPackage;
    };

    super = imported;

    markBroken = pkg: pkg.override {
      elpaBuild = args: self.elpaBuild (args // {
        meta = (args.meta or {}) // { broken = true; };
      });
    };

    overrides = {
    };

    orgPackages = super // overrides;

  in orgPackages // { inherit orgPackages; }