Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# shellcheck shell=bash
if has devenv; then
eval "$(devenv direnvrc)"
use devenv
else
echo "Cannot find devenv. Install it: https://devenv.sh/getting-started/" >&2
fi
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,9 @@
.eask/
.cask/
dist/

# Nix and devenv
/.devenv/
/.devenv.flake.nix
/devenv.local.nix
/.direnv/
13 changes: 13 additions & 0 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,19 @@ git log --format='%aN <%aE>' -1
The variable =magit-standup-author= (singular) still works, but it is
obsolete since version 0.2.0. Use =magit-standup-authors= instead.

* Development

The project uses [[https://devenv.sh/][devenv]]. It gives you Emacs and
[[https://emacs-eask.github.io/][Eask]].

#+begin_src shell
devenv shell # open a shell with the tools
devenv test # compile, lint and test
#+end_src

With [[https://direnv.net/][direnv]], run =direnv allow= once. The tools then
load when you enter the directory.

* Release

To make a release, run:
Expand Down
65 changes: 65 additions & 0 deletions devenv.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"nodes": {
"devenv": {
"locked": {
"dir": "src/modules",
"lastModified": 1789773873,
"narHash": "sha256-lFR8A3JzpXn4Az9quklprOje/+Njyh9+bP+CE1TCIxI=",
"owner": "cachix",
"repo": "devenv",
"rev": "2ba2f9ed32596289874c58981a4d3e56cadd639d",
"type": "github"
},
"original": {
"dir": "src/modules",
"owner": "cachix",
"repo": "devenv",
"type": "github"
}
},
"nixpkgs": {
"inputs": {
"nixpkgs-src": "nixpkgs-src"
},
"locked": {
"lastModified": 1789506231,
"narHash": "sha256-vNkJbtmqyBfFhn/HnzQo4ROuoyYWuy/allqTfJb4kMY=",
"owner": "cachix",
"repo": "devenv-nixpkgs",
"rev": "c2f38fe7f9e04d9aadd354d380f2bd40531d9737",
"type": "github"
},
"original": {
"owner": "cachix",
"ref": "rolling",
"repo": "devenv-nixpkgs",
"type": "github"
}
},
"nixpkgs-src": {
"flake": false,
"locked": {
"lastModified": 1789370336,
"narHash": "sha256-6RSEDHIWQtesQKWSu5qRai8L2h4KgCgMEfJHstW99G4=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "c7def046b9a883d46974757852106483d741586f",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"devenv": "devenv",
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}
15 changes: 15 additions & 0 deletions devenv.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{ pkgs, ... }:

{
packages = [
pkgs.emacs-nox
pkgs.eask-cli
];

enterTest = ''
eask install-deps
eask compile
eask lint package
eask test buttercup
'';
}
5 changes: 5 additions & 0 deletions devenv.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
strict_ports: true

inputs:
nixpkgs:
url: github:cachix/devenv-nixpkgs/rolling
Loading