diff --git a/default.nix b/default.nix index 82ea183..2855001 100644 --- a/default.nix +++ b/default.nix @@ -64,51 +64,46 @@ let evil-escape = super.evil-escape.overrideAttrs (esuper: { patches = [ ./evil-escape.patch ]; }); - evil-markdown = self.trivialBuild rec { + straightBuild = { pname, ... }@args: self.trivialBuild ({ + ename = pname; + version = "1"; + src = lock.get pname; + buildPhase = ":"; + } // args); + evil-markdown = self.straightBuild { pname = "evil-markdown"; - version = "1"; - recipe = null; - ename = pname; - src = lock.get pname; - buildPhase = ":"; }; - evil-org = self.trivialBuild rec { + evil-org = self.straightBuild { pname = "evil-org-mode"; - version = "1"; - recipe = null; - ename = pname; - src = lock.get pname; - buildPhase = ":"; }; - evil-quick-diff = self.trivialBuild rec { + evil-quick-diff = self.straightBuild { pname = "evil-quick-diff"; - version = "1"; - recipe = null; - ename = pname; - src = lock.get pname; - buildPhase = ":"; }; - org-yt = self.trivialBuild rec { + 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 <