From 59ebcccc59eea028494334e9a8c04de62ac80c13 Mon Sep 17 00:00:00 2001 From: Jan Malakhovski Date: Tue, 21 Jan 2014 00:12:55 +0000 Subject: add nyan-mode emacs package --- .../editors/emacs-modes/nyan-mode/default.nix | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 pkgs/applications/editors/emacs-modes/nyan-mode/default.nix (limited to 'pkgs/applications/editors/emacs-modes/nyan-mode/default.nix') diff --git a/pkgs/applications/editors/emacs-modes/nyan-mode/default.nix b/pkgs/applications/editors/emacs-modes/nyan-mode/default.nix new file mode 100644 index 00000000000..ab94dbae950 --- /dev/null +++ b/pkgs/applications/editors/emacs-modes/nyan-mode/default.nix @@ -0,0 +1,31 @@ +{trivialBuild, fetchFromGitHub}: + +trivialBuild rec { + pname = "nyan-mode"; + version = "20150128"; + + src = fetchFromGitHub { + owner = "TeMPOraL"; + repo = pname; + rev = "41faa2c809da7b2cb3e6f8fadefae3f338ced3f2"; + sha256 = "1idaac7sjc8hhbf5zif61ncg1pvg28c0qfihavdx61albww0ll7f"; + }; + + patches = [ ./directory.patch ]; + + preBuild = '' + substituteInPlace nyan-mode.el \ + --replace "@OUT@" "$out/" + ''; + + postInstall = '' + cp -r img $out + cp -r mus $out + ''; + + meta = { + description = "An analog indicator of the position in the buffer"; + homepage = https://github.com/TeMPOraL/nyan-mode/; + license = "GPLv3+"; + }; +} -- cgit 1.4.1