From 67523efcdec5eca16c26c4a6db65d1847ca6fe5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Vask=C3=B3?= Date: Wed, 10 Jun 2020 01:17:11 +0200 Subject: [PATCH 1/2] updating dependencies --- nix/sources.json | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/nix/sources.json b/nix/sources.json index e3c997c..46e62b1 100644 --- a/nix/sources.json +++ b/nix/sources.json @@ -5,10 +5,10 @@ "homepage": "", "owner": "hlissner", "repo": "doom-emacs", - "rev": "75b6e11f5656e86f05097cfca8de4d8cae9da1f5", - "sha256": "13dxqnjzhmb7y60aq5da5ihl8dnzg33mnqnx58f8lpa7vd9ixjvf", + "rev": "dd8b535eb132f430c206bcf3eff40577f07f01f8", + "sha256": "0jipxxd6jjk1wqk8864xanhwdawpvjg66wab4xddfxfpd3nyv5q5", "type": "tarball", - "url": "https://github.com/hlissner/doom-emacs/archive/75b6e11f5656e86f05097cfca8de4d8cae9da1f5.tar.gz", + "url": "https://github.com/hlissner/doom-emacs/archive/dd8b535eb132f430c206bcf3eff40577f07f01f8.tar.gz", "url_template": "https://github.com///archive/.tar.gz" }, "doom-snippets": { @@ -29,10 +29,10 @@ "homepage": "", "owner": "nix-community", "repo": "emacs-overlay", - "rev": "18b06b2a74bd74ef19c06baf1f149b5b6838aea5", - "sha256": "1vhx9yqi7ys5bv9y7xf5fhfxlzpqfvxxnvpca5w1i0yx3j4pgc5g", + "rev": "fe8bfdcf1f15ea80340c1b2174ca1f944fe53fb0", + "sha256": "1hilhwl164xk6p84haflj07wpxb26x66prwamqhkaq63ybw9r8ja", "type": "tarball", - "url": "https://github.com/nix-community/emacs-overlay/archive/18b06b2a74bd74ef19c06baf1f149b5b6838aea5.tar.gz", + "url": "https://github.com/nix-community/emacs-overlay/archive/fe8bfdcf1f15ea80340c1b2174ca1f944fe53fb0.tar.gz", "url_template": "https://github.com///archive/.tar.gz" }, "emacs-so-long": { @@ -53,10 +53,10 @@ "homepage": null, "owner": "Somelauw", "repo": "evil-markdown", - "rev": "685d7fbb81bc02fa32779d2a127b99a0c8c7436b", - "sha256": "1z1sjn6dcqv8mmkh6nfcwhnql2z6xr9yx3hs77bfxj79pf3c466p", + "rev": "064fe9b4767470472356d20bdd08e2f30ebbc9ac", + "sha256": "15mchbzwnlyccplqk0ly298z5kxc5qyvcmpmd8q5l22pdp2b1p9a", "type": "tarball", - "url": "https://github.com/Somelauw/evil-markdown/archive/685d7fbb81bc02fa32779d2a127b99a0c8c7436b.tar.gz", + "url": "https://github.com/Somelauw/evil-markdown/archive/064fe9b4767470472356d20bdd08e2f30ebbc9ac.tar.gz", "url_template": "https://github.com///archive/.tar.gz" }, "evil-org-mode": { @@ -113,10 +113,10 @@ "homepage": "https://code.orgmode.org/bzg/org-mode", "owner": "emacs-straight", "repo": "org-mode", - "rev": "d73fd145c00e8c65da54a9b59224fbf22f9c6822", - "sha256": "0c5bzyih3jdnxn7cwn8sglcyrf4i2azbrj9b3w3q16s122yapf2c", + "rev": "99acb17d06e0c7549841ea6cb7c6ce4df927c6c6", + "sha256": "0kpdly6kzj3fz993hmamqkcj4b40a9r2a7x2m200mhv7ims8w9q8", "type": "tarball", - "url": "https://github.com/emacs-straight/org-mode/archive/d73fd145c00e8c65da54a9b59224fbf22f9c6822.tar.gz", + "url": "https://github.com/emacs-straight/org-mode/archive/99acb17d06e0c7549841ea6cb7c6ce4df927c6c6.tar.gz", "url_template": "https://github.com///archive/.tar.gz" }, "org-yt": { From 2ab836b8f4fb29be307ef65fd925fe2e1b7925bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Vask=C3=B3?= Date: Wed, 10 Jun 2020 01:26:08 +0200 Subject: [PATCH 2/2] extracting overrides to its own file This is the most volatile part of the code base, default.nix should be fairly stable by now. --- default.nix | 73 +------------------------------------------ overrides.nix | 86 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 87 insertions(+), 72 deletions(-) create mode 100644 overrides.nix diff --git a/default.nix b/default.nix index e329dbb..eb1c857 100644 --- a/default.nix +++ b/default.nix @@ -58,78 +58,7 @@ let then dependencyOverrides.${p} else sources.${p}; # Packages we need to get the default doom configuration run - overrides = self: super: { - evil-escape = super.evil-escape.overrideAttrs (esuper: { - patches = [ ./evil-escape.patch ]; - }); - straightBuild = { pname, ... }@args: self.trivialBuild ({ - ename = pname; - version = "1"; - src = lock pname; - buildPhase = ":"; - } // args); - doom-snippets = self.straightBuild { - pname = "doom-snippets"; - }; - evil-markdown = self.straightBuild { - pname = "evil-markdown"; - }; - evil-org = self.straightBuild { - pname = "evil-org-mode"; - }; - 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"; - installPhase = '' - LISPDIR=$out/share/emacs/site-lisp - install -d $LISPDIR - - cp -r * $LISPDIR - - cat > $LISPDIR/lisp/org-version.el < $LISPDIR/lisp/org-version.el <