Merge branch 'develop' (early part)

This commit is contained in:
László Vaskó
2020-06-10 01:17:48 +02:00
3 changed files with 33 additions and 15 deletions

View File

@@ -2,10 +2,10 @@
(advice-add 'nix-straight-get-used-packages
:before (lambda (&rest r)
(message "[nix-doom-emacs] Advising doom installer to gather packages to install...")
(advice-add 'doom-cli-reload-autoloads
(advice-add 'doom-autoloads-reload
:override (lambda (&optional file force-p)
(message "[nix-doom-emacs] Skipping generating autoloads...")))
(advice-add 'doom--format-print
(advice-add 'doom--print
:override (lambda (output)
(message output)))))
@@ -19,5 +19,5 @@
:override (lambda (&rest r)))
;; just use straight provided by nix
(advice-add 'doom-ensure-straight
(advice-add 'doom-initialize-core-packages
:override (lambda (&rest r) (require 'straight)))

View File

@@ -80,6 +80,11 @@ let
evil-quick-diff = self.straightBuild {
pname = "evil-quick-diff";
};
magit = super.magit.overrideAttrs (esuper: {
preBuild = ''
make VERSION="${esuper.version}" -C lisp magit-version.el
'';
});
org-mode = self.straightBuild rec {
pname = "org-mode";
version = "9.4";
@@ -111,6 +116,19 @@ let
ob-racket = self.straightBuild {
pname = "ob-racket";
};
# dune has a nontrivial derivation, which does not buildable from the melpa
# wrapper falling back to the one in nixpkgs
dune = pkgs.dune.overrideAttrs (old: {
# Emacs derivations require an ename attribute
ename = old.pname;
# Need to adjust paths here match what doom expects
postInstall = ''
mkdir -p $out/share/emacs/site-lisp/editor-integration
ln -snf $out/share/emacs/site-lisp $out/share/emacs/site-lisp/editor-integration/emacs
'';
});
};
# Stage 1: prepare source for byte-compilation

View File

@@ -5,10 +5,10 @@
"homepage": "",
"owner": "hlissner",
"repo": "doom-emacs",
"rev": "abb9ab7674601c2e90ecf1ca29f575a1effe9a4c",
"sha256": "01445q0sjchymdd9s8iyfczlwnrdjrxfq7h9hz27hd38czb45rll",
"rev": "75b6e11f5656e86f05097cfca8de4d8cae9da1f5",
"sha256": "13dxqnjzhmb7y60aq5da5ihl8dnzg33mnqnx58f8lpa7vd9ixjvf",
"type": "tarball",
"url": "https://github.com/hlissner/doom-emacs/archive/abb9ab7674601c2e90ecf1ca29f575a1effe9a4c.tar.gz",
"url": "https://github.com/hlissner/doom-emacs/archive/75b6e11f5656e86f05097cfca8de4d8cae9da1f5.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
},
"doom-snippets": {
@@ -29,10 +29,10 @@
"homepage": "",
"owner": "nix-community",
"repo": "emacs-overlay",
"rev": "9c64445d5e33e24a1c409cb426a9754c4142a65d",
"sha256": "13hgayxm7vlyfs3zjp0nmblqannygfpw5fib3pwa013i03cvwnrs",
"rev": "18b06b2a74bd74ef19c06baf1f149b5b6838aea5",
"sha256": "1vhx9yqi7ys5bv9y7xf5fhfxlzpqfvxxnvpca5w1i0yx3j4pgc5g",
"type": "tarball",
"url": "https://github.com/nix-community/emacs-overlay/archive/9c64445d5e33e24a1c409cb426a9754c4142a65d.tar.gz",
"url": "https://github.com/nix-community/emacs-overlay/archive/18b06b2a74bd74ef19c06baf1f149b5b6838aea5.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
},
"emacs-so-long": {
@@ -65,10 +65,10 @@
"homepage": null,
"owner": "hlissner",
"repo": "evil-org-mode",
"rev": "9cf661af8ff8ea768ef1e55045be14d0468a90f5",
"sha256": "1rafhagc509rzwcknssvcr3palzzvryhgpjjpbhgmh4awqqp9k1b",
"rev": "2e9c4a295ee6aea7c97c5b1f3892b1c6e28a32d9",
"sha256": "1ljsl23sjvf0haqm3yp9dpyfzf5p58l4bp42s8025vwzy6359rck",
"type": "tarball",
"url": "https://github.com/hlissner/evil-org-mode/archive/9cf661af8ff8ea768ef1e55045be14d0468a90f5.tar.gz",
"url": "https://github.com/hlissner/evil-org-mode/archive/2e9c4a295ee6aea7c97c5b1f3892b1c6e28a32d9.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
},
"evil-quick-diff": {
@@ -113,10 +113,10 @@
"homepage": "https://code.orgmode.org/bzg/org-mode",
"owner": "emacs-straight",
"repo": "org-mode",
"rev": "3dc582c8d5ac08e10ec3f31c41b6daabeb2d3772",
"sha256": "0x6bg31ss0m236dysjnhsrip18dpjakfsxccbayb135bycyh1ib8",
"rev": "d73fd145c00e8c65da54a9b59224fbf22f9c6822",
"sha256": "0c5bzyih3jdnxn7cwn8sglcyrf4i2azbrj9b3w3q16s122yapf2c",
"type": "tarball",
"url": "https://github.com/emacs-straight/org-mode/archive/3dc582c8d5ac08e10ec3f31c41b6daabeb2d3772.tar.gz",
"url": "https://github.com/emacs-straight/org-mode/archive/d73fd145c00e8c65da54a9b59224fbf22f9c6822.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
},
"org-yt": {