summary refs log tree commit diff
path: root/pkgs/applications/editors/emacs-modes/color-theme-solarized
diff options
context:
space:
mode:
authorSamuel Rivas <samuelrivas@gmail.com>2019-09-13 22:05:57 +0200
committerLassulus <github@lassul.us>2019-11-18 00:13:10 +0100
commit0b504bc6ff5bbb076094ee39b4656dfe058eeabd (patch)
tree77500659ee8a718023701848d3758059a36e452f /pkgs/applications/editors/emacs-modes/color-theme-solarized
parentdf6bf7f5b72f178ded10a4c05bc73fba591c8626 (diff)
downloadnixpkgs-0b504bc6ff5bbb076094ee39b4656dfe058eeabd.tar
nixpkgs-0b504bc6ff5bbb076094ee39b4656dfe058eeabd.tar.gz
nixpkgs-0b504bc6ff5bbb076094ee39b4656dfe058eeabd.tar.bz2
nixpkgs-0b504bc6ff5bbb076094ee39b4656dfe058eeabd.tar.lz
nixpkgs-0b504bc6ff5bbb076094ee39b4656dfe058eeabd.tar.xz
nixpkgs-0b504bc6ff5bbb076094ee39b4656dfe058eeabd.tar.zst
nixpkgs-0b504bc6ff5bbb076094ee39b4656dfe058eeabd.zip
color-theme-solarized: update and fix
I suspect there is something wrong with the elpa package generator. Emacs'
setup-hook adds the `site-lisp` directory to `load-path`, but elpa packages end
up having their code in `site-lisp/elpa/package-version, and thus emacs cannot
load them.

If that worked, adding `color-theme` as `builInput` might be better than
explicitly adding its `site-lisp` to the `load-path` in the `buildPhase`
Diffstat (limited to 'pkgs/applications/editors/emacs-modes/color-theme-solarized')
-rw-r--r--pkgs/applications/editors/emacs-modes/color-theme-solarized/default.nix14
1 files changed, 5 insertions, 9 deletions
diff --git a/pkgs/applications/editors/emacs-modes/color-theme-solarized/default.nix b/pkgs/applications/editors/emacs-modes/color-theme-solarized/default.nix
index 3d34c7a462e..33f2ad79ea0 100644
--- a/pkgs/applications/editors/emacs-modes/color-theme-solarized/default.nix
+++ b/pkgs/applications/editors/emacs-modes/color-theme-solarized/default.nix
@@ -1,6 +1,6 @@
-{stdenv, fetchzip, emacs, colorTheme}:
+{stdenv, fetchzip, emacs, color-theme}:
 let
-  commit = "412713a0fcedd520d208a7b783fea03d710bcc61";
+  commit = "f3ca8902ea056fb8e46cb09f09c96294e31cd4ee";
 in
 stdenv.mkDerivation {
   name = "color-theme-solarized-1.0.0";
@@ -8,15 +8,14 @@ stdenv.mkDerivation {
   src = fetchzip {
 
     url = "https://github.com/sellout/emacs-color-theme-solarized/archive/${commit}.zip";
-    sha256 = "1xd2yk7p39zxgcf91s80pqknzdxw9d09cppjb87g7ihj6f0wxqjv";
+    sha256 = "16d7adqi07lzzr0qipl1fbag9l8kiyr3xrqxi528pimcisbg85d3";
   };
 
   buildInputs = [ emacs ];
-  propagatedUserEnvPkgs = [ colorTheme ];
-
+  propagatedUserEnvPkgs = [ color-theme ];
 
   buildPhase = ''
-    emacs -L . -L ${colorTheme}/share/emacs/site-lisp --batch -f batch-byte-compile *.el
+    emacs -L . -L ${color-theme}/share/emacs/site-lisp/elpa/color-theme-* --batch -f batch-byte-compile *.el
   '';
 
   installPhase = ''
@@ -30,8 +29,5 @@ stdenv.mkDerivation {
     maintainers = [ maintainers.samuelrivas ];
     license = licenses.mit;
     platforms = platforms.all;
-
-    # Fails with `solarized-definitions.el:786:1:Warning: the function `rotatef' is not known to`
-    broken = true;
   };
 }