emacs.pkgs.prisma-mode: move to a dedicated directory

There is no tangible reason to pollute a file like manual-packages with full
descriptions of expressions. `callPackage` exists for a reason :)
This commit is contained in:
AndersonTorres
2022-11-13 09:17:01 -03:00
parent d19c5a2384
commit c47cbf3aca
2 changed files with 34 additions and 28 deletions
@@ -10,34 +10,7 @@ self: with self; {
matrix-client = callPackage ./matrix-client { _map = self.map; };
prisma-mode = let
rev = "5283ca7403bcb21ca0cac8ecb063600752dfd9d4";
in melpaBuild {
pname = "prisma-mode";
version = "20211207.0";
commit = rev;
packageRequires = [ js2-mode ];
src = pkgs.fetchFromGitHub {
owner = "pimeys";
repo = "emacs-prisma-mode";
inherit rev;
sha256 = "sha256-DJJfjbu27Gi7Nzsa1cdi8nIQowKH8ZxgQBwfXLB0Q/I=";
};
recipe = pkgs.writeText "recipe" ''
(prisma-mode
:repo "pimeys/emacs-prisma-mode"
:fetcher github)
'';
meta = {
description = "Major mode for Prisma Schema Language";
license = lib.licenses.gpl2Only;
};
};
prisma-mode = callPackage ./prisma-mode { };
agda-input = callPackage ./agda-input { };
@@ -0,0 +1,33 @@
{ lib
, fetchFromGitHub
, melpaBuild
, js2-mode
, writeText
}:
let
rev = "5283ca7403bcb21ca0cac8ecb063600752dfd9d4";
in melpaBuild {
pname = "prisma-mode";
version = "20211207.0";
commit = rev;
packageRequires = [ js2-mode ];
src = fetchFromGitHub {
owner = "pimeys";
repo = "emacs-prisma-mode";
inherit rev;
sha256 = "sha256-DJJfjbu27Gi7Nzsa1cdi8nIQowKH8ZxgQBwfXLB0Q/I=";
};
recipe = writeText "recipe" ''
(prisma-mode :repo "pimeys/emacs-prisma-mode" :fetcher github)
'';
meta = {
description = "Major mode for Prisma Schema Language";
license = lib.licenses.gpl2Only;
};
}