From 0f52f3092889153a1aec19f650005359f2bba5fa Mon Sep 17 00:00:00 2001 From: John Ericson Date: Tue, 5 Jan 2021 13:40:34 -0500 Subject: [PATCH 1/2] ott-mode: Init (version inherited from ott) This way it is pre-compiled. --- .../editors/emacs-modes/manual-packages.nix | 13 +++++++++++++ pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/editors/emacs-modes/manual-packages.nix b/pkgs/applications/editors/emacs-modes/manual-packages.nix index dfe287a7f40..1ff64fe2813 100644 --- a/pkgs/applications/editors/emacs-modes/manual-packages.nix +++ b/pkgs/applications/editors/emacs-modes/manual-packages.nix @@ -114,6 +114,19 @@ org-mac-link = callPackage ./org-mac-link { }; + ott-mode = self.trivialBuild { + pname = "ott-mod"; + + inherit (external.ott) src version; + + postUnpack = "mv $sourceRoot/emacs/ott-mode.el $sourceRoot"; + + meta = { + description = "Standalone package providing ott-mode without building ott and with compiled bytecode."; + inherit (external.Agda.meta) homepage license; + }; + }; + perl-completion = callPackage ./perl-completion { }; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 36dafc45585..349acbb0316 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -21089,7 +21089,7 @@ in inherit autoconf automake editorconfig-core-c git libffi libpng pkgconfig poppler rtags w3m zlib substituteAll rustPlatform cmake llvmPackages - libtool zeromq openssl; + libtool zeromq openssl ott; }; }; From 4eb13669a0b0bcf9aade28510baf06315ec04658 Mon Sep 17 00:00:00 2001 From: John Ericson Date: Tue, 5 Jan 2021 14:00:24 -0500 Subject: [PATCH 2/2] ott: Don't also install emacs mode There is now a separate package for that. --- pkgs/applications/science/logic/ott/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/science/logic/ott/default.nix b/pkgs/applications/science/logic/ott/default.nix index 48ad63eaa99..15a9fa5ccab 100644 --- a/pkgs/applications/science/logic/ott/default.nix +++ b/pkgs/applications/science/logic/ott/default.nix @@ -16,7 +16,13 @@ stdenv.mkDerivation rec { installTargets = "ott.install"; - postInstall = "opaline -prefix $out"; + postInstall = '' + opaline -prefix $out + '' + # There is `emacsPackages.ott-mode` for this now. + + '' + rm -r $out/share/emacs + ''; meta = { description = "A tool for the working semanticist";