tvl-depot/users/wpcarro/emacs/pkgs/string/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
571 B
Nix
Raw Normal View History

{ 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
'';
})