2014-04-26 17:51:08 +00:00
|
|
|
{ stdenv, fetchurl, emacs }:
|
2014-04-14 23:23:40 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "cryptol-mode-${version}";
|
2014-04-26 17:51:08 +00:00
|
|
|
version = "0.1.0";
|
2014-04-14 23:23:40 +00:00
|
|
|
|
2014-04-26 17:51:08 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/thoughtpolice/cryptol-mode/archive/v${version}.tar.gz";
|
|
|
|
sha256 = "1qyrqvfgpg1nyk1clv7v94r3amm02613hrak5732xzn6iak81cc0";
|
2014-04-14 23:23:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ emacs ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -d $out/share/emacs/site-lisp
|
|
|
|
install *.el *.elc $out/share/emacs/site-lisp
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Emacs major mode for Cryptol";
|
|
|
|
homepage = "https://thoughtpolice/cryptol-mode";
|
|
|
|
license = stdenv.lib.licenses.gpl3Plus;
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.thoughtpolice ];
|
|
|
|
};
|
|
|
|
}
|