Unverified Commit 6017bb20 authored by Julien Malka's avatar Julien Malka Committed by GitHub
Browse files

Merge pull request #332674 from supinie/aerogramme

aerogramme: init at 0.3.0
parents c1b73989 086889c3
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -19761,6 +19761,12 @@
    githubId = 7258858;
    name = "Sandro Jäckel";
  };
  supinie = {
    name = "supinie";
    email = "nix@supinie.com";
    github = "supinie";
    githubId = 86788874;
  };
  SuprDewd = {
    email = "suprdewd@gmail.com";
    github = "SuprDewd";
+4286 −0

File added.

Preview size limit exceeded, changes collapsed.

+48 −0
Original line number Diff line number Diff line
{
  lib,
  rustPlatform,
  fetchgit,
  pkg-config,
  openssl,
}:

rustPlatform.buildRustPackage {
  RUSTC_BOOTSTRAP = true;

  pname = "aerogramme";
  version = "0.3.0";

  src = fetchgit {
    url = "https://git.deuxfleurs.fr/Deuxfleurs/aerogramme/";
    hash = "sha256-ER+P/XGqNzTLwDLK5EBZq/Dl29ZZKl2FdxDb+oLEJ8Y=";
  };

  # must use our own Cargo.lock due to git dependencies
  cargoLock = {
    lockFile = ./Cargo.lock;
    outputHashes = {
      "imap-codec-2.0.0" = "sha256-o64Q74Q84xLRfU4K4JtcjyS0J8mfoApvUs9siscd0RA=";
      "imap-flow-0.1.0" = "sha256-IopxybuVt5OW6vFiw/4MxojzaNZrKu2xyfaX6F8IYlA=";
      "k2v-client-0.0.4" = "sha256-V71FCIsgK3VStFOzVntm8P0vXRobF5rQ74qar+cKyik=";
      "smtp-message-0.1.0" = "sha256-FoSakm3D1xg1vefLf/zkyvzsij1G0QstK3CRo+LbByE=";
    };
  };

  # disable network tests as Nix sandbox breaks them
  doCheck = false;

  # get openssl-sys to use pkg-config
  OPENSSL_NO_VENDOR = 1;

  nativeBuildInputs = [ pkg-config ];
  buildInputs = [ openssl ];

  meta = {
    description = "Encrypted e-mail storage over Garage";
    homepage = "https://aerogramme.deuxfleurs.fr/";
    license = lib.licenses.eupl12;
    maintainers = with lib.maintainers; [ supinie ];
    mainProgram = "aerogramme";
    platforms = lib.platforms.linux;
  };
}