Skip to content

Latest commit

 

History

History
64 lines (53 loc) · 1.98 KB

File metadata and controls

64 lines (53 loc) · 1.98 KB

Minasp: a Nix package of Mew

Abstract

Minasp (“Mew Is Not A Single Program”) is a Nix package of Mew, based on nixpkgs. This package installs Mew’s Emacs Lisp program as well as utility programs constituting the MUA, e.g. mewl, which 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 minasp.nix with nixpkgscallPackages. 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:

{ 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
    ];
  };

}

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

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

with

minasp = pkgs.callPackages "${minasp-source}/minasp.nix" {
  Mew-rev = "f46b06dba0c7f0aa371be30d704b6d9ba30a8321";
  Mew-hash = "sha256-y3/ged8wRNPcGF5smpHc66Eubdrnj/9SF6MobzQBAF0=";
};

License

MIT License