slackdump: 3.0.3 -> 3.0.5 (#379390)
[NixPkgs.git] / pkgs / by-name / ch / chemacs2 / package.nix
blob15e2dc7741e9f61535fff1512f3406019bde5d24
2   lib,
3   fetchFromGitHub,
4   stdenvNoCC,
5   unstableGitUpdater,
6 }:
8 stdenvNoCC.mkDerivation (finalAttrs: {
9   pname = "chemacs2";
10   version = "0-unstable-2023-01-20";
12   src = fetchFromGitHub {
13     owner = "plexus";
14     repo = "chemacs2";
15     rev = "c2d700b784c793cc82131ef86323801b8d6e67bb";
16     hash = "sha256-/WtacZPr45lurS0hv+W8UGzsXY3RujkU5oGGGqjqG0Q=";
17   };
19   outputs = [
20     "out"
21     "doc"
22   ];
24   dontConfigure = true;
25   dontBuild = true;
27   installPhase = ''
28     runHook preInstall
30     install -t $out/share/site-lisp/chemacs2/ -Dm644 init.el early-init.el chemacs.el
31     install -t $doc/share/doc/chemacs2/ -Dm644 README.org CHANGELOG.md
33     runHook postInstall
34   '';
36   passthru.updateScript = unstableGitUpdater { };
38   meta = {
39     homepage = "https://github.com/plexus/chemacs2";
40     description = "Emacs version switcher, improved";
41     longDescription = ''
42       Chemacs 2 is an Emacs profile switcher, it makes it easy to run multiple
43       Emacs configurations side by side.
45       Think of it as a bootloader for Emacs.
46     '';
47     license = with lib.licenses; [ gpl3Plus ];
48     maintainers = with lib.maintainers; [ AndersonTorres ];
49     platforms = lib.platforms.all;
50   };