feat(wpcarro/emacs): Package string.el
Mostly just a wrapper around s.el (for now?). Eventually I'd like to prune the dependency on dash.el (and maybe s.el). Change-Id: I5c2ba256524bedd93fcd13933fdbd95b1ddff6f8 Reviewed-on: https://cl.tvl.fyi/c/depot/+/6002 Reviewed-by: wpcarro <wpcarro@gmail.com> Autosubmit: wpcarro <wpcarro@gmail.com> Tested-by: BuildkiteCI
This commit is contained in:
parent
7410928b5b
commit
8989dad5ed
4 changed files with 57 additions and 19 deletions
27
users/wpcarro/emacs/pkgs/string/default.nix
Normal file
27
users/wpcarro/emacs/pkgs/string/default.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{ pkgs, depot, ... }:
|
||||
|
||||
let
|
||||
string = pkgs.callPackage
|
||||
({ emacsPackages }:
|
||||
emacsPackages.trivialBuild {
|
||||
pname = "string";
|
||||
version = "1.0.0";
|
||||
src = ./string.el;
|
||||
packageRequires = [
|
||||
emacsPackages.dash
|
||||
emacsPackages.s
|
||||
];
|
||||
})
|
||||
{ };
|
||||
|
||||
emacs = (pkgs.emacsPackagesFor pkgs.emacs28).emacsWithPackages (epkgs: [
|
||||
string
|
||||
]);
|
||||
in
|
||||
string.overrideAttrs (_old: {
|
||||
doCheck = true;
|
||||
checkPhase = ''
|
||||
${emacs}/bin/emacs -batch \
|
||||
-l ert -l ${./tests.el} -f ert-run-tests-batch-and-exit
|
||||
'';
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue