mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 21:53:32 +00:00
47a854ae01
this fixes eval for nix-env -qaA nixpkgs.emacsPackagesNg
31 lines
720 B
Nix
31 lines
720 B
Nix
{stdenv, fetchurl, emacs}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "yaoddmuse-0.1.2";
|
|
|
|
src = fetchurl {
|
|
url = "http://emacswiki.org/emacs/download/yaoddmuse.el";
|
|
sha256 = "0vlllq3xmnlni0ws226pqxj68nshclbl5rgqv6y11i3yvzgiazr6";
|
|
};
|
|
|
|
phases = [ "buildPhase" "installPhase"];
|
|
|
|
buildInputs = [ emacs ];
|
|
|
|
buildPhase = ''
|
|
cp $src yaoddmuse.el
|
|
emacs --batch -f batch-byte-compile yaoddmuse.el
|
|
'';
|
|
|
|
installPhase = ''
|
|
install -d $out/share/emacs/site-lisp
|
|
install yaoddmuse.el $out/share/emacs/site-lisp
|
|
'';
|
|
|
|
meta = {
|
|
description = "Comprehensive Emacs integration with Oddmuse wikis";
|
|
homepage = http://emacswiki.org/emacs/Yaoddmuse;
|
|
platforms = stdenv.lib.platforms.all;
|
|
};
|
|
}
|