Unverified Commit b4a5c273 authored by Nikolay Korotkiy's avatar Nikolay Korotkiy Committed by GitHub
Browse files

aerc: refactor and adopt (#376879)

parents e16e376e 9dbe664d
Loading
Loading
Loading
Loading
+18 −11
Original line number Diff line number Diff line
@@ -2,7 +2,6 @@
  lib,
  buildGoModule,
  fetchFromSourcehut,
  fetchpatch,
  ncurses,
  notmuch,
  scdoc,
@@ -10,6 +9,8 @@
  w3m,
  dante,
  gawk,
  versionCheckHook,
  nix-update-script,
}:

buildGoModule rec {
@@ -31,9 +32,7 @@ buildGoModule rec {
    python3Packages.wrapPython
  ];

  patches = [
    ./runtime-libexec.patch
  ];
  patches = [ ./runtime-libexec.patch ];

  postPatch = ''
    substituteAllInPlace config/aerc.conf
@@ -47,9 +46,7 @@ buildGoModule rec {

  makeFlags = [ "PREFIX=${placeholder "out"}" ];

  pythonPath = [
    python3Packages.vobject
  ];
  pythonPath = [ python3Packages.vobject ];

  buildInputs = [
    python3Packages.python
@@ -85,12 +82,22 @@ buildGoModule rec {
    patchShebangs $out/libexec/aerc/filters
  '';

  meta = with lib; {
  nativeInstallCheckInputs = [ versionCheckHook ];
  versionCheckProgramArg = "--version";
  doInstallCheck = true;

  passthru.updateScript = nix-update-script { };

  meta = {
    description = "Email client for your terminal";
    homepage = "https://aerc-mail.org/";
    maintainers = [ ];
    changelog = "https://git.sr.ht/~rjarry/aerc/tree/${version}/item/CHANGELOG.md";
    maintainers = with lib.maintainers; [
      defelo
      sikmir
    ];
    mainProgram = "aerc";
    license = licenses.mit;
    platforms = platforms.unix;
    license = lib.licenses.mit;
    platforms = lib.platforms.unix;
  };
}