Merge pull request #329823 from ExpidusOS/fix/pkgsllvm/elfutils
[NixPkgs.git] / pkgs / by-name / ch / chemacs2 / package.nix
blob4b85dbfe871426ef371bbeccdca9533ceb383e03
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 = [ "out" "doc" ];
21   dontConfigure = true;
22   dontBuild = true;
24   installPhase = ''
25     runHook preInstall
27     install -t $out/share/site-lisp/chemacs2/ -Dm644 init.el early-init.el chemacs.el
28     install -t $doc/share/doc/chemacs2/ -Dm644 README.org CHANGELOG.md
30     runHook postInstall
31   '';
33   passthru.updateScript = unstableGitUpdater { };
35   meta = {
36     homepage = "https://github.com/plexus/chemacs2";
37     description = "Emacs version switcher, improved";
38     longDescription = ''
39       Chemacs 2 is an Emacs profile switcher, it makes it easy to run multiple
40       Emacs configurations side by side.
42       Think of it as a bootloader for Emacs.
43     '';
44     license = with lib.licenses; [ gpl3Plus ];
45     maintainers = with lib.maintainers; [ AndersonTorres ];
46     platforms = lib.platforms.all;
47   };