![Samuel Rivas](/assets/img/avatar_default.png)
update emacs solarized theme and fix the name * Added myself as maintainer as no one was there * Picked the latest version (no tags in that repo) * Changed the name, this was (probably mistakenly) named as color-theme, which is another package
36 lines
922 B
Nix
36 lines
922 B
Nix
{stdenv, fetchzip, emacs, colorTheme}:
|
|
let
|
|
commit = "412713a0fcedd520d208a7b783fea03d710bcc61";
|
|
in
|
|
stdenv.mkDerivation rec {
|
|
name = "color-theme-solarized-1.0.0";
|
|
|
|
src = fetchzip {
|
|
|
|
url = "https://github.com/sellout/emacs-color-theme-solarized/archive/${commit}.zip";
|
|
sha256 = "1xd2yk7p39zxgcf91s80pqknzdxw9d09cppjb87g7ihj6f0wxqjv";
|
|
};
|
|
|
|
buildInputs = [ emacs ];
|
|
propagatedUserEnvPkgs = [ colorTheme ];
|
|
|
|
|
|
buildPhase = ''
|
|
emacs -L . -L ${colorTheme}/share/emacs/site-lisp --batch -f batch-byte-compile *.el
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/share/emacs/site-lisp
|
|
install *.el* $out/share/emacs/site-lisp
|
|
'';
|
|
|
|
meta = {
|
|
description = "Precision colors for machines and people";
|
|
homepage = http://ethanschoonover.com/solarized;
|
|
maintainer = "Samuel Rivas <samuelrivas@gmail.com>";
|
|
license = stdenv.lib.licenses.mit;
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
};
|
|
}
|