mirror of
https://github.com/nix-community/emacs-overlay.git
synced 2025-12-06 02:40:25 -08:00
Add melpa packages
This commit is contained in:
parent
24fe120733
commit
aa1d14d8c2
4 changed files with 96703 additions and 3 deletions
|
|
@ -7,6 +7,7 @@ env:
|
||||||
- DEPLOY_BRANCH="master"
|
- DEPLOY_BRANCH="master"
|
||||||
- GIT_NAME="EXWM-Updater"
|
- GIT_NAME="EXWM-Updater"
|
||||||
- GIT_EMAIL="exwm-updater@example.org"
|
- GIT_EMAIL="exwm-updater@example.org"
|
||||||
|
- NIX_PATH=nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/nixos-unstable.tar.gz
|
||||||
before_install:
|
before_install:
|
||||||
- openssl aes-256-cbc -K $encrypted_88023bb2dbf0_key -iv $encrypted_88023bb2dbf0_iv -in .travis/deploy_rsa.enc -out $SSH_KEY -d
|
- openssl aes-256-cbc -K $encrypted_88023bb2dbf0_key -iv $encrypted_88023bb2dbf0_iv -in .travis/deploy_rsa.enc -out $SSH_KEY -d
|
||||||
|
|
||||||
|
|
|
||||||
24
default.nix
24
default.nix
|
|
@ -1,5 +1,6 @@
|
||||||
self: super:
|
self: super:
|
||||||
let
|
let
|
||||||
|
|
||||||
mkExDrv = emacsPackagesNg: name: args: let
|
mkExDrv = emacsPackagesNg: name: args: let
|
||||||
repoMeta = super.lib.importJSON (./. + "/repos/${name}.json");
|
repoMeta = super.lib.importJSON (./. + "/repos/${name}.json");
|
||||||
in emacsPackagesNg.melpaBuild (args // {
|
in emacsPackagesNg.melpaBuild (args // {
|
||||||
|
|
@ -36,14 +37,31 @@ in {
|
||||||
];
|
];
|
||||||
});
|
});
|
||||||
|
|
||||||
emacsPackagesNgFor = emacs:
|
emacsPackagesNgFor = emacs: (
|
||||||
(super.emacsPackagesNgFor emacs).overrideScope'(eself: esuper: {
|
(super.emacsPackagesNgFor emacs).overrideScope'(eself: esuper: let
|
||||||
|
|
||||||
|
melpaStablePackages = esuper.melpaStablePackages.override {
|
||||||
|
archiveJson = ./repos/recipes-archive-melpa.json;
|
||||||
|
};
|
||||||
|
|
||||||
|
melpaPackages = esuper.melpaPackages.override {
|
||||||
|
archiveJson = ./repos/recipes-archive-melpa.json;
|
||||||
|
};
|
||||||
|
|
||||||
|
# TODO: Org/elpa packages
|
||||||
|
|
||||||
|
epkgs = esuper.override {
|
||||||
|
inherit melpaStablePackages melpaPackages;
|
||||||
|
};
|
||||||
|
|
||||||
|
in epkgs // {
|
||||||
xelb = mkExDrv eself "xelb" {
|
xelb = mkExDrv eself "xelb" {
|
||||||
packageRequires = [ eself.cl-generic eself.emacs ];
|
packageRequires = [ eself.cl-generic eself.emacs ];
|
||||||
};
|
};
|
||||||
|
|
||||||
exwm = mkExDrv eself "exwm" {
|
exwm = mkExDrv eself "exwm" {
|
||||||
packageRequires = [ eself.xelb ];
|
packageRequires = [ eself.xelb ];
|
||||||
};
|
};
|
||||||
});
|
}));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
96673
repos/recipes-archive-melpa.json
Normal file
96673
repos/recipes-archive-melpa.json
Normal file
File diff suppressed because it is too large
Load diff
8
update
8
update
|
|
@ -18,8 +18,16 @@ function update_repo() {
|
||||||
echo "{\"rev\": \"${commit_sha}\", \"sha256\": \"${digest}\", \"version\": \"${version_number}\"}" > repos/$repo.json
|
echo "{\"rev\": \"${commit_sha}\", \"sha256\": \"${digest}\", \"version\": \"${version_number}\"}" > repos/$repo.json
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function update_melpa() {
|
||||||
|
cd repos
|
||||||
|
eval $(nix-instantiate --eval --expr 'let nixpath = builtins.toString (import <nixpkgs> {}).path; in "${nixpath}/pkgs/applications/editors/emacs-modes/update-melpa"')
|
||||||
|
cd -
|
||||||
|
}
|
||||||
|
|
||||||
update_repo ch11ng exwm
|
update_repo ch11ng exwm
|
||||||
update_repo ch11ng xelb
|
update_repo ch11ng xelb
|
||||||
update_repo emacs-mirror emacs
|
update_repo emacs-mirror emacs
|
||||||
|
|
||||||
|
update_melpa
|
||||||
|
|
||||||
nix-build --no-out-link --show-trace ./test.nix
|
nix-build --no-out-link --show-trace ./test.nix
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue