mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-21 11:34:13 +00:00
Merge pull request #325168 from atorres1985-contrib/elisp-use-melpabuild
mini-treewide: use melpabuild in some Elisp packages
This commit is contained in:
commit
36cb8eaf62
@ -1,55 +1,34 @@
|
|||||||
{ lib
|
{
|
||||||
, melpaBuild
|
lib,
|
||||||
, fetchFromGitHub
|
melpaBuild,
|
||||||
, acm
|
fetchFromGitHub,
|
||||||
, popon
|
acm,
|
||||||
, writeText
|
popon,
|
||||||
, writeScript
|
unstableGitUpdater,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
|
||||||
rev = "1851d8fa2a27d3fd8deeeb29cd21c3002b8351ba";
|
|
||||||
in
|
|
||||||
melpaBuild {
|
melpaBuild {
|
||||||
pname = "acm-terminal";
|
pname = "acm-terminal";
|
||||||
version = "20231206.1141";
|
version = "0-unstable-2023-12-06";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "twlz0ne";
|
owner = "twlz0ne";
|
||||||
repo = "acm-terminal";
|
repo = "acm-terminal";
|
||||||
inherit rev;
|
rev = "1851d8fa2a27d3fd8deeeb29cd21c3002b8351ba";
|
||||||
sha256 = "sha256-EYhFrOo0j0JSNTdcZCbyM0iLxaymUXi1u6jZy8lTOaY=";
|
hash = "sha256-EYhFrOo0j0JSNTdcZCbyM0iLxaymUXi1u6jZy8lTOaY=";
|
||||||
};
|
};
|
||||||
|
|
||||||
commit = rev;
|
|
||||||
|
|
||||||
packageRequires = [
|
packageRequires = [
|
||||||
acm
|
acm
|
||||||
popon
|
popon
|
||||||
];
|
];
|
||||||
|
|
||||||
recipe = writeText "recipe" ''
|
passthru.updateScript = unstableGitUpdater { hardcodeZeroVersion = true; };
|
||||||
(acm-terminal :repo "twlz0ne/acm-terminal" :fetcher github)
|
|
||||||
'';
|
|
||||||
|
|
||||||
passthru.updateScript = writeScript "update.sh" ''
|
meta = {
|
||||||
#!/usr/bin/env nix-shell
|
|
||||||
#!nix-shell -i bash -p common-updater-scripts coreutils git gnused
|
|
||||||
set -eu -o pipefail
|
|
||||||
tmpdir="$(mktemp -d)"
|
|
||||||
git clone --depth=1 https://github.com/twlz0ne/acm-terminal.git "$tmpdir"
|
|
||||||
pushd "$tmpdir"
|
|
||||||
commit=$(git show -s --pretty='format:%H')
|
|
||||||
# Based on: https://github.com/melpa/melpa/blob/2d8716906a0c9e18d6c979d8450bf1d15dd785eb/package-build/package-build.el#L523-L533
|
|
||||||
version=$(TZ=UTC git show -s --pretty='format:%cd' --date='format-local:%Y%m%d.%H%M' | sed 's|\.0*|.|')
|
|
||||||
popd
|
|
||||||
update-source-version emacsPackages.acm-terminal $version --rev="$commit"
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
description = "Patch for LSP bridge acm on Terminal";
|
|
||||||
homepage = "https://github.com/twlz0ne/acm-terminal";
|
homepage = "https://github.com/twlz0ne/acm-terminal";
|
||||||
license = licenses.gpl3Plus;
|
description = "Patch for LSP bridge acm on Terminal";
|
||||||
maintainers = with maintainers; [ kira-bruneau ];
|
license = lib.licenses.gpl3Plus;
|
||||||
|
maintainers = with lib.maintainers; [ kira-bruneau ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
{ lib
|
{
|
||||||
, trivialBuild
|
lib,
|
||||||
, fetchFromGitHub
|
color-theme,
|
||||||
, color-theme
|
fetchFromGitHub,
|
||||||
|
melpaBuild,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
trivialBuild {
|
melpaBuild {
|
||||||
pname = "color-theme-solarized";
|
pname = "color-theme-solarized";
|
||||||
version = "0-unstable-2017-10-24";
|
version = "0-unstable-2017-10-24";
|
||||||
|
|
||||||
@ -17,10 +18,10 @@ trivialBuild {
|
|||||||
|
|
||||||
packageRequires = [ color-theme ];
|
packageRequires = [ color-theme ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = {
|
||||||
homepage = "http://ethanschoonover.com/solarized";
|
homepage = "http://ethanschoonover.com/solarized";
|
||||||
description = "Precision colors for machines and people; Emacs implementation";
|
description = "Precision colors for machines and people; Emacs implementation";
|
||||||
license = licenses.mit;
|
license = lib.licenses.mit;
|
||||||
maintainers = with maintainers; [ samuelrivas AndersonTorres ];
|
maintainers = with lib.maintainers; [ AndersonTorres ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
{ lib
|
{
|
||||||
, fetchFromGitHub
|
lib,
|
||||||
, trivialBuild
|
fetchFromGitHub,
|
||||||
, emacs
|
melpaBuild,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
trivialBuild {
|
melpaBuild {
|
||||||
pname = "emacs-conflict";
|
pname = "emacs-conflict";
|
||||||
version = "0-unstable-2022-11-21";
|
version = "0-unstable-2022-11-21";
|
||||||
|
|
||||||
@ -12,14 +12,13 @@ trivialBuild {
|
|||||||
owner = "ibizaman";
|
owner = "ibizaman";
|
||||||
repo = "emacs-conflict";
|
repo = "emacs-conflict";
|
||||||
rev = "9f236b93930f3ceb4cb0258cf935c99599191de3";
|
rev = "9f236b93930f3ceb4cb0258cf935c99599191de3";
|
||||||
sha256 = "sha256-DIGvnotSQYIgHxGxtyCALHd8ZbrfkmdvjLXlkcqQ6v4=";
|
hash = "sha256-DIGvnotSQYIgHxGxtyCALHd8ZbrfkmdvjLXlkcqQ6v4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
meta = with lib; {
|
meta = {
|
||||||
description = "Resolve conflicts happening when using file synchronization tools";
|
|
||||||
homepage = "https://github.com/ibizaman/emacs-conflict";
|
homepage = "https://github.com/ibizaman/emacs-conflict";
|
||||||
license = licenses.gpl3;
|
description = "Resolve conflicts happening when using file synchronization tools";
|
||||||
maintainers = with maintainers; [ ibizaman ];
|
license = lib.licenses.gpl3Plus;
|
||||||
inherit (emacs.meta) platforms;
|
maintainers = with lib.maintainers; [ ibizaman ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
{ lib
|
{
|
||||||
, trivialBuild
|
lib,
|
||||||
, fetchFromGitHub
|
evil,
|
||||||
, emacs
|
fetchFromGitHub,
|
||||||
, evil
|
markdown-mode,
|
||||||
, markdown-mode
|
melpaBuild,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
trivialBuild rec {
|
melpaBuild {
|
||||||
pname = "evil-markdown";
|
pname = "evil-markdown";
|
||||||
version = "0-unstable-2021-07-21";
|
version = "0-unstable-2021-07-21";
|
||||||
|
|
||||||
@ -17,18 +17,15 @@ trivialBuild rec {
|
|||||||
hash = "sha256-HBBuZ1VWIn6kwK5CtGIvHM1+9eiNiKPH0GUsyvpUVN8=";
|
hash = "sha256-HBBuZ1VWIn6kwK5CtGIvHM1+9eiNiKPH0GUsyvpUVN8=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = propagatedUserEnvPkgs;
|
packageRequires = [
|
||||||
|
|
||||||
propagatedUserEnvPkgs = [
|
|
||||||
evil
|
evil
|
||||||
markdown-mode
|
markdown-mode
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = {
|
||||||
homepage = "https://github.com/Somelauw/evil-markdown";
|
homepage = "https://github.com/Somelauw/evil-markdown";
|
||||||
description = "Integrates Emacs evil and markdown";
|
description = "Integrates Emacs evil and markdown";
|
||||||
license = licenses.gpl3Plus;
|
license = lib.licenses.gpl3Plus;
|
||||||
maintainers = with maintainers; [ leungbk ];
|
maintainers = with lib.maintainers; [ leungbk ];
|
||||||
inherit (emacs.meta) platforms;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
{ lib
|
{
|
||||||
, fetchFromGitHub
|
lib,
|
||||||
, emacs
|
fetchFromGitHub,
|
||||||
, trivialBuild
|
melpaBuild,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
trivialBuild {
|
melpaBuild {
|
||||||
pname = "git-undo";
|
pname = "git-undo";
|
||||||
version = "0-unstable-2019-12-21";
|
version = "0-unstable-2019-12-21";
|
||||||
|
|
||||||
@ -12,14 +12,13 @@ trivialBuild {
|
|||||||
owner = "jwiegley";
|
owner = "jwiegley";
|
||||||
repo = "git-undo-el";
|
repo = "git-undo-el";
|
||||||
rev = "cf31e38e7889e6ade7d2d2b9f8719fd44f52feb5";
|
rev = "cf31e38e7889e6ade7d2d2b9f8719fd44f52feb5";
|
||||||
sha256 = "sha256-cVkK9EF6qQyVV3uVqnBEjF8e9nEx/8ixnM8PvxqCyYE=";
|
hash = "sha256-cVkK9EF6qQyVV3uVqnBEjF8e9nEx/8ixnM8PvxqCyYE=";
|
||||||
};
|
};
|
||||||
|
|
||||||
meta = with lib; {
|
meta = {
|
||||||
homepage = "https://github.com/jwiegley/git-undo-el";
|
homepage = "https://github.com/jwiegley/git-undo-el";
|
||||||
description = "Revert region to most recent Git-historical version";
|
description = "Revert region to most recent Git-historical version";
|
||||||
license = licenses.gpl2Plus;
|
license = lib.licenses.gpl2Plus;
|
||||||
maintainers = with maintainers; [ leungbk ];
|
maintainers = with lib.maintainers; [ leungbk ];
|
||||||
inherit (emacs.meta) platforms;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
melpaBuild {
|
melpaBuild {
|
||||||
pname = "grid";
|
pname = "grid";
|
||||||
version = "20240526.1305";
|
version = "0-unstable-2024-05-26";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "ichernyshovvv";
|
owner = "ichernyshovvv";
|
||||||
|
@ -1,28 +1,30 @@
|
|||||||
{ lib
|
{
|
||||||
, trivialBuild
|
lib,
|
||||||
, fetchFromGitHub
|
dictionary,
|
||||||
, dictionary
|
fetchFromGitHub,
|
||||||
, emacs
|
helm,
|
||||||
, helm
|
melpaBuild,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
trivialBuild rec {
|
melpaBuild {
|
||||||
pname = "helm-words";
|
pname = "helm-words";
|
||||||
version = "0-unstable-2019-03-12";
|
version = "0-unstable-2019-03-12";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "emacsmirror";
|
owner = "emacsmirror";
|
||||||
repo = pname;
|
repo = "helm-words";
|
||||||
rev = "e6387ece1940a06695b9d910de3d90252efb8d29";
|
rev = "e6387ece1940a06695b9d910de3d90252efb8d29";
|
||||||
hash = "sha256-rh8YKDLZZCUE6JnnRnFyDDyUjK+35+M2dkawR/+qwNM=";
|
hash = "sha256-rh8YKDLZZCUE6JnnRnFyDDyUjK+35+M2dkawR/+qwNM=";
|
||||||
};
|
};
|
||||||
|
|
||||||
packageRequires = [ helm dictionary ];
|
packageRequires = [
|
||||||
|
dictionary
|
||||||
|
helm
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = {
|
||||||
homepage = "https://github.com/emacsmirror/helm-words";
|
homepage = "https://github.com/emacsmirror/helm-words";
|
||||||
description = "Helm extension for looking up words in dictionaries and thesauri";
|
description = "Helm extension for looking up words in dictionaries and thesauri";
|
||||||
license = licenses.gpl3Plus;
|
license = lib.licenses.gpl3Plus;
|
||||||
inherit (emacs.meta) platforms;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,32 +1,29 @@
|
|||||||
{ lib
|
{
|
||||||
, trivialBuild
|
lib,
|
||||||
, fetchFromGitHub
|
fetchFromGitHub,
|
||||||
, emacs
|
melpaBuild,
|
||||||
, prop-menu
|
prop-menu,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
trivialBuild rec {
|
melpaBuild rec {
|
||||||
pname = "idris2-mode";
|
pname = "idris2-mode";
|
||||||
version = "1.1";
|
version = "1.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "idris-community";
|
owner = "idris-community";
|
||||||
repo = pname;
|
repo = "idris2-mode";
|
||||||
rev = version;
|
rev = version;
|
||||||
hash = "sha256-rTeVjkAw44Q35vjaERs4uoZRJ6XR3FKplEUCVPHhY7Q=";
|
hash = "sha256-rTeVjkAw44Q35vjaERs4uoZRJ6XR3FKplEUCVPHhY7Q=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = propagatedUserEnvPkgs;
|
packageRequires = [
|
||||||
|
|
||||||
propagatedUserEnvPkgs = [
|
|
||||||
prop-menu
|
prop-menu
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = {
|
||||||
homepage = "https://github.com/idris-community/idris2-mode";
|
homepage = "https://github.com/idris-community/idris2-mode";
|
||||||
description = "This is an emacs mode for editing Idris 2 code";
|
description = "Emacs mode for editing Idris 2 code";
|
||||||
license = licenses.gpl3Only;
|
license = lib.licenses.gpl3Only;
|
||||||
maintainers = with maintainers; [ wuyoli ];
|
maintainers = with lib.maintainers; [ wuyoli ];
|
||||||
inherit (emacs.meta) platforms;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,18 +1,35 @@
|
|||||||
{ trivialBuild, lib, fetchurl }:
|
{
|
||||||
|
lib,
|
||||||
|
melpaBuild,
|
||||||
|
fetchurl
|
||||||
|
}:
|
||||||
|
|
||||||
trivialBuild rec {
|
let
|
||||||
pname = "pod-mode";
|
pname = "pod-mode";
|
||||||
version = "1.04";
|
version = "1.04";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://cpan/authors/id/F/FL/FLORA/pod-mode-${version}.tar.gz";
|
url = "mirror://cpan/authors/id/F/FL/FLORA/pod-mode-${version}.tar.gz";
|
||||||
sha256 = "1wr0khymkaa65blrc5nya607c1a3sjsww49bbf8f0a6176as71sv";
|
hash = "sha256-W4ejlTnBKOCQWysRzrXUQwV2gFHeFpbpKkapWT2cIPM=";
|
||||||
};
|
};
|
||||||
|
in
|
||||||
|
melpaBuild {
|
||||||
|
inherit pname version src;
|
||||||
|
|
||||||
meta = with lib; {
|
outputs = [
|
||||||
|
"out"
|
||||||
|
"doc"
|
||||||
|
];
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
mkdir -p ''${!outputDoc}/share/doc/pod-mode/
|
||||||
|
install -Dm644 -t ''${!outputDoc}/share/doc/pod-mode/ $sourceRoot/ChangeLog $sourceRoot/README
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
homepage = "https://metacpan.org/dist/pod-mode";
|
||||||
description = "Major mode for editing .pod-files";
|
description = "Major mode for editing .pod-files";
|
||||||
license = licenses.gpl2Plus;
|
license = lib.licenses.gpl2Plus;
|
||||||
maintainers = with maintainers; [ qyliss ];
|
maintainers = with lib.maintainers; [ qyliss ];
|
||||||
platforms = platforms.all;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,21 +1,22 @@
|
|||||||
{ trivialBuild
|
{
|
||||||
, lib
|
lib,
|
||||||
, fetchFromGitHub
|
avy,
|
||||||
, avy
|
bind-key,
|
||||||
, json-rpc-server
|
cl-lib,
|
||||||
, f
|
company,
|
||||||
, nav-flash
|
company-quickhelp,
|
||||||
, helm
|
default-text-scale,
|
||||||
, cl-lib
|
f,
|
||||||
, porthole
|
fetchFromGitHub,
|
||||||
, default-text-scale
|
helm,
|
||||||
, bind-key
|
json-rpc-server,
|
||||||
, yasnippet
|
melpaBuild,
|
||||||
, company
|
nav-flash,
|
||||||
, company-quickhelp
|
porthole,
|
||||||
|
yasnippet,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
trivialBuild {
|
melpaBuild {
|
||||||
pname = "voicemacs";
|
pname = "voicemacs";
|
||||||
version = "0-unstable-2022-02-16";
|
version = "0-unstable-2022-02-16";
|
||||||
|
|
||||||
@ -23,28 +24,29 @@ trivialBuild {
|
|||||||
owner = "jcaw";
|
owner = "jcaw";
|
||||||
repo = "voicemacs";
|
repo = "voicemacs";
|
||||||
rev = "d91de2a31c68ab083172ade2451419d6bd7bb389";
|
rev = "d91de2a31c68ab083172ade2451419d6bd7bb389";
|
||||||
sha256 = "sha256-/MBB2R9/V0aYZp15e0vx+67ijCPp2iPlgxe262ldmtc=";
|
hash = "sha256-/MBB2R9/V0aYZp15e0vx+67ijCPp2iPlgxe262ldmtc=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [ ./add-missing-require.patch ];
|
patches = [ ./0000-add-missing-require.patch ];
|
||||||
|
|
||||||
packageRequires = [
|
packageRequires = [
|
||||||
avy
|
avy
|
||||||
json-rpc-server
|
|
||||||
f
|
|
||||||
nav-flash
|
|
||||||
helm
|
|
||||||
cl-lib
|
|
||||||
porthole
|
|
||||||
default-text-scale
|
|
||||||
bind-key
|
bind-key
|
||||||
yasnippet
|
cl-lib
|
||||||
|
company
|
||||||
company-quickhelp
|
company-quickhelp
|
||||||
|
default-text-scale
|
||||||
|
f
|
||||||
|
helm
|
||||||
|
json-rpc-server
|
||||||
|
nav-flash
|
||||||
|
porthole
|
||||||
|
yasnippet
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Voicemacs is a set of utilities for controlling Emacs by voice";
|
homepage = "https://github.com/jcaw/voicemacs/";
|
||||||
|
description = "Set of utilities for controlling Emacs by voice";
|
||||||
license = lib.licenses.gpl3Only;
|
license = lib.licenses.gpl3Only;
|
||||||
platforms = lib.platforms.all;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
{ lib
|
{
|
||||||
, fetchFromGitHub
|
lib,
|
||||||
, trivialBuild
|
fetchFromGitHub,
|
||||||
, emacs
|
melpaBuild,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
trivialBuild {
|
melpaBuild {
|
||||||
pname = "youtube-dl";
|
pname = "youtube-dl";
|
||||||
version = "1.0-unstable-2018-10-12";
|
version = "1.0-unstable-2018-10-12";
|
||||||
|
|
||||||
@ -12,14 +12,13 @@ trivialBuild {
|
|||||||
owner = "skeeto";
|
owner = "skeeto";
|
||||||
repo = "youtube-dl-emacs";
|
repo = "youtube-dl-emacs";
|
||||||
rev = "af877b5bc4f01c04fccfa7d47a2c328926f20ef4";
|
rev = "af877b5bc4f01c04fccfa7d47a2c328926f20ef4";
|
||||||
sha256 = "sha256-Etl95rcoRACDPjcTPQqYK2L+w8OZbOrTrRT0JadMdH4=";
|
hash = "sha256-Etl95rcoRACDPjcTPQqYK2L+w8OZbOrTrRT0JadMdH4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
meta = with lib; {
|
meta = {
|
||||||
description = "Emacs youtube-dl download manager";
|
description = "Emacs youtube-dl download manager";
|
||||||
homepage = "https://github.com/skeeto/youtube-dl-emacs";
|
homepage = "https://github.com/skeeto/youtube-dl-emacs";
|
||||||
license = licenses.unlicense;
|
license = lib.licenses.unlicense;
|
||||||
maintainers = with maintainers; [ leungbk ];
|
maintainers = with lib.maintainers; [ leungbk ];
|
||||||
inherit (emacs.meta) platforms;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user