emacsPackages.color-theme-solarized: use trivialBuild

This commit is contained in:
AndersonTorres 2021-09-14 21:46:43 -03:00
parent 55eaf98813
commit ada96fb347

View File

@ -1,33 +1,38 @@
{lib, stdenv, fetchzip, emacs, color-theme}:
let
commit = "f3ca8902ea056fb8e46cb09f09c96294e31cd4ee";
in
stdenv.mkDerivation {
name = "color-theme-solarized-1.0.0";
{ lib
, trivialBuild
, fetchFromGitHub
, emacs
, color-theme
}:
src = fetchzip {
trivialBuild {
pname = "color-theme-solarized";
version = "0.0.0+unstable=2017-10-24";
url = "https://github.com/sellout/emacs-color-theme-solarized/archive/${commit}.zip";
sha256 = "16d7adqi07lzzr0qipl1fbag9l8kiyr3xrqxi528pimcisbg85d3";
src = fetchFromGitHub {
owner = "sellout";
repo = "emacs-color-theme-solarized";
rev = "f3ca8902ea056fb8e46cb09f09c96294e31cd4ee";
hash = "sha256-oxX0lo6sxotEiR3nPrKPE9H01HKB3ohB/p8eEHFTp5k=";
};
buildInputs = [ emacs ];
propagatedUserEnvPkgs = [ color-theme ];
buildPhase = ''
emacs -L . -L ${color-theme}/share/emacs/site-lisp/elpa/color-theme-* --batch -f batch-byte-compile *.el
'';
runHook preBuild
installPhase = ''
mkdir -p $out/share/emacs/site-lisp
install *.el* $out/share/emacs/site-lisp
emacs -L . -L ${color-theme}/share/emacs/site-lisp/elpa/color-theme-* \
--batch -f batch-byte-compile *.el
runHook postBuild
'';
meta = with lib; {
description = "Precision colors for machines and people";
homepage = "http://ethanschoonover.com/solarized";
maintainers = [ maintainers.samuelrivas ];
description = "Precision colors for machines and people; Emacs implementation";
license = licenses.mit;
platforms = platforms.all;
maintainers = with maintainers; [ samuelrivas AndersonTorres ];
inherit (emacs.meta) platforms;
};
}