An open API service indexing awesome lists of open source software.

https://github.com/tabe/minasp

A Nix package of Mew
https://github.com/tabe/minasp

Last synced: 11 months ago
JSON representation

A Nix package of Mew

Awesome Lists containing this project

README

          

#+TITLE: Minasp: a Nix package of Mew

* Abstract
Minasp ("Mew Is Not A Single Program") is a [[https://nixos.org/][Nix]] package of [[https://www.mew.org/][Mew]], based on [[https://github.com/NixOS/nixpkgs][nixpkgs]].
This package installs Mew's Emacs Lisp program as well as utility programs
constituting the MUA, e.g. =mewl=, which [[https://github.com/kazu-yamamoto/Mew/issues/138][are ommitted when installing MELPA's Mew package]].

* Usage
Installing Mew by Minasp is easy.
All you have to do is to enable a couple of packages defined in [[file:minasp.nix]] with
=nixpkgs=' =callPackages=.
They are named =minasp.elisp= and =minasp.utils=.
The former is for the Elisp part of Mew while the latter consists of the accompanying utility programs.
The followings illustrate their usage.

** With Home Manager
A minimal configuration in =~/.config/home-manager/home.nix= for making Mew available:
#+begin_src nix
{ config, pkgs, ... }: let

minasp-source = pkgs.fetchFromGitHub {
owner = "tabe";
repo = "Minasp";
rev = "v0.6.10";
hash = "sha256-p1zEcrVA7WjKmQ3s8kBN5eKjVwZm7upmrmZSrnQSkOg=";
};

minasp = pkgs.callPackages "${minasp-source}/minasp.nix" {};

in {

home.packages = [
minasp.utils
pkgs.stunnel
];

programs.emacs = {
enable = true;
extraPackages = epkgs: [
minasp.elisp
];
};

}
#+end_src

** How to choose Mew's version
Minasp installs the latest release of Mew by default.
If you would like to choose another version of Mew, then specify the revision and its hash
by providing =minasp.nix= with attribute =Mew-rev= and =Mew-hash=, respectively.
For example, replace a line in the above example
#+begin_src nix
minasp = pkgs.callPackages "${minasp-source}/minasp.nix" {};
#+end_src
with
#+begin_src nix
minasp = pkgs.callPackages "${minasp-source}/minasp.nix" {
Mew-rev = "f46b06dba0c7f0aa371be30d704b6d9ba30a8321";
Mew-hash = "sha256-y3/ged8wRNPcGF5smpHc66Eubdrnj/9SF6MobzQBAF0=";
};
#+end_src

* License
[[file:LICENSE][MIT License]]