summary refs log tree commit diff
diff options
context:
space:
mode:
authorArseniy Seroka <jagajaga@users.noreply.github.com>2015-07-04 03:04:43 +0300
committerArseniy Seroka <jagajaga@users.noreply.github.com>2015-07-04 03:04:43 +0300
commit1fd18a0d86dfdad497a7d8dd61c97a5a1b9f13e4 (patch)
tree08a3e9e6c1892ecc34957dedf77b424446dba74e
parent14ceec7c26b20b0947cb766ae20e0e43ef633d8c (diff)
parent882f3ad0db526ef811343f8d6c176b5dd3ce4e3f (diff)
downloadnixpkgs-1fd18a0d86dfdad497a7d8dd61c97a5a1b9f13e4.tar
nixpkgs-1fd18a0d86dfdad497a7d8dd61c97a5a1b9f13e4.tar.gz
nixpkgs-1fd18a0d86dfdad497a7d8dd61c97a5a1b9f13e4.tar.bz2
nixpkgs-1fd18a0d86dfdad497a7d8dd61c97a5a1b9f13e4.tar.lz
nixpkgs-1fd18a0d86dfdad497a7d8dd61c97a5a1b9f13e4.tar.xz
nixpkgs-1fd18a0d86dfdad497a7d8dd61c97a5a1b9f13e4.tar.zst
nixpkgs-1fd18a0d86dfdad497a7d8dd61c97a5a1b9f13e4.zip
Merge pull request #8627 from kquick/fix/htmlize-source-location
htmlize: update source location
-rw-r--r--pkgs/applications/editors/emacs-modes/htmlize/builder.sh4
-rw-r--r--pkgs/applications/editors/emacs-modes/htmlize/default.nix18
2 files changed, 12 insertions, 10 deletions
diff --git a/pkgs/applications/editors/emacs-modes/htmlize/builder.sh b/pkgs/applications/editors/emacs-modes/htmlize/builder.sh
deleted file mode 100644
index ccbd9d8e8a7..00000000000
--- a/pkgs/applications/editors/emacs-modes/htmlize/builder.sh
+++ /dev/null
@@ -1,4 +0,0 @@
-source $stdenv/setup
-
-mkdir -p $out/share/emacs/site-lisp
-cp $src $out/share/emacs/site-lisp/htmlize.el
diff --git a/pkgs/applications/editors/emacs-modes/htmlize/default.nix b/pkgs/applications/editors/emacs-modes/htmlize/default.nix
index 96cc4e040c4..c16f449c3a2 100644
--- a/pkgs/applications/editors/emacs-modes/htmlize/default.nix
+++ b/pkgs/applications/editors/emacs-modes/htmlize/default.nix
@@ -1,15 +1,21 @@
-{ stdenv, fetchurl }:
+{ stdenv, fetchFromGitHub }:
 
 stdenv.mkDerivation {
   name = "htmlize-1.47";
 
-  builder = ./builder.sh;
-
-  src = fetchurl {
-    url = http://fly.srk.fer.hr/~hniksic/emacs/htmlize.el.cgi;
-    sha256 = "0m7lby95w9sj0xlqv39imlbp80x8ajd295cs6079jyhmryf6mr10";
+  src = fetchFromGitHub {
+    owner = "emacsmirror";
+    repo = "htmlize";
+    rev = "release/1.47";
+    name = "htmlize-1.47-src";
+    sha256 = "1vkqxgirc82vc44g7xhhr041arf93yirjin3h144kjyfkgkplnkp";
   };
 
+  installPhase = ''
+     mkdir -p $out/share/emacs/site-lisp
+     cp htmlize.el $out/share/emacs/site-lisp/
+  '';
+
   meta = {
     description = "Convert buffer text and decorations to HTML";
   };