emacsPackages:ott-mode: extract from manual-packages.nix

This commit is contained in:
AndersonTorres 2021-09-15 12:03:58 -03:00
parent 3d059335bd
commit 7ee513fddf
2 changed files with 20 additions and 12 deletions

View File

@ -224,18 +224,7 @@
};
ott-mode = self.trivialBuild {
pname = "ott-mod";
inherit (pkgs.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 (pkgs.haskellPackages.Agda.meta) homepage license;
};
};
ott-mode = callPackage ./ott-mode { };
urweb-mode = callPackage ./urweb-mode { };

View File

@ -0,0 +1,19 @@
{ trivialBuild
, ott
, haskellPackages
}:
trivialBuild {
pname = "ott-mode";
inherit (ott) src version;
postUnpack = ''
mv $sourceRoot/emacs/ott-mode.el $sourceRoot
'';
meta = {
description = "Emacs ott mode (from ott sources)";
inherit (haskellPackages.Agda.meta) homepage license;
};
}