forked from mirrors/nixpkgs
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`
This commit is contained in:
parent
df6bf7f5b7
commit
0b504bc6ff
|
@ -1,6 +1,6 @@
|
||||||
{stdenv, fetchzip, emacs, colorTheme}:
|
{stdenv, fetchzip, emacs, color-theme}:
|
||||||
let
|
let
|
||||||
commit = "412713a0fcedd520d208a7b783fea03d710bcc61";
|
commit = "f3ca8902ea056fb8e46cb09f09c96294e31cd4ee";
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "color-theme-solarized-1.0.0";
|
name = "color-theme-solarized-1.0.0";
|
||||||
|
@ -8,15 +8,14 @@ stdenv.mkDerivation {
|
||||||
src = fetchzip {
|
src = fetchzip {
|
||||||
|
|
||||||
url = "https://github.com/sellout/emacs-color-theme-solarized/archive/${commit}.zip";
|
url = "https://github.com/sellout/emacs-color-theme-solarized/archive/${commit}.zip";
|
||||||
sha256 = "1xd2yk7p39zxgcf91s80pqknzdxw9d09cppjb87g7ihj6f0wxqjv";
|
sha256 = "16d7adqi07lzzr0qipl1fbag9l8kiyr3xrqxi528pimcisbg85d3";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ emacs ];
|
buildInputs = [ emacs ];
|
||||||
propagatedUserEnvPkgs = [ colorTheme ];
|
propagatedUserEnvPkgs = [ color-theme ];
|
||||||
|
|
||||||
|
|
||||||
buildPhase = ''
|
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 = ''
|
installPhase = ''
|
||||||
|
@ -30,8 +29,5 @@ stdenv.mkDerivation {
|
||||||
maintainers = [ maintainers.samuelrivas ];
|
maintainers = [ maintainers.samuelrivas ];
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
|
|
||||||
# Fails with `solarized-definitions.el:786:1:Warning: the function `rotatef' is not known to`
|
|
||||||
broken = true;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -128,9 +128,7 @@
|
||||||
# From old emacsPackages (pre emacsPackagesNg)
|
# From old emacsPackages (pre emacsPackagesNg)
|
||||||
cedet = callPackage ./cedet { };
|
cedet = callPackage ./cedet { };
|
||||||
cedille = callPackage ./cedille { cedille = pkgs.cedille; };
|
cedille = callPackage ./cedille { cedille = pkgs.cedille; };
|
||||||
colorThemeSolarized = callPackage ./color-theme-solarized {
|
colorThemeSolarized = callPackage ./color-theme-solarized { };
|
||||||
colorTheme = self.color-theme;
|
|
||||||
};
|
|
||||||
emacsSessionManagement = callPackage ./session-management-for-emacs { };
|
emacsSessionManagement = callPackage ./session-management-for-emacs { };
|
||||||
hsc3-mode = callPackage ./hsc3 { };
|
hsc3-mode = callPackage ./hsc3 { };
|
||||||
hol_light_mode = callPackage ./hol_light { };
|
hol_light_mode = callPackage ./hol_light { };
|
||||||
|
|
Loading…
Reference in a new issue