mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-27 23:33:30 +00:00
9833d56c24
Done with the help of https://github.com/Mindavi/nixpkgs-mark-broken Tool is still WIP but this is one of the first results. I manually audited the results and removed some results that were not valid. Note that some of these packages maybe should have more constrained platforms set instead of broken set, but I think not being perfectly correct is better than just keep trying to build all these things and never succeeding. Some observations: - Some darwin builds require XCode tools - aarch64-linux builds sometimes suffer from using gcc9 - gcc9 is getting older and misses some new libraries/features - Sometimes tools try to do system detection or expect some explicit settings for platforms that are not x86_64-linux
52 lines
1.7 KiB
Nix
52 lines
1.7 KiB
Nix
{ lib, stdenv, fetchurl, pkg-config, gtk2, openssl ? null, gpgme ? null
|
|
, gpgSupport ? true, sslSupport ? true, fetchpatch }:
|
|
|
|
assert gpgSupport -> gpgme != null;
|
|
assert sslSupport -> openssl != null;
|
|
|
|
with lib;
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "sylpheed";
|
|
version = "3.7.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://sylpheed.sraoss.jp/sylpheed/v3.7/${pname}-${version}.tar.xz";
|
|
sha256 = "0j9y5vdzch251s264diw9clrn88dn20bqqkwfmis9l7m8vmwasqd";
|
|
};
|
|
|
|
patches = [
|
|
(fetchpatch {
|
|
# patch upstream bug https://sylpheed.sraoss.jp/redmine/issues/306
|
|
name = "patch-libsylph_ssl_c.patch";
|
|
extraPrefix = "";
|
|
url = "https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/ports/mail/sylpheed/patches/patch-libsylph_ssl_c?rev=1.4&content-type=text/plain";
|
|
sha256 = "sha256-+FetU5vrfvE78nYAjKK/QFZnFw+Zr2PvoUGRWCuZczs=";
|
|
})
|
|
(fetchpatch {
|
|
name = "CVE-2021-37746.patch";
|
|
url = "https://git.claws-mail.org/?p=claws.git;a=patch;h=ac286a71ed78429e16c612161251b9ea90ccd431";
|
|
sha256 = "sha256-oLmUShtvO6io3jibKT67eO0O58vEDZEeaB51QTd3UkU=";
|
|
})
|
|
];
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ gtk2 ]
|
|
++ optionals gpgSupport [ gpgme ]
|
|
++ optionals sslSupport [ openssl ];
|
|
|
|
configureFlags = optional gpgSupport "--enable-gpgme"
|
|
++ optional sslSupport "--enable-ssl";
|
|
|
|
meta = {
|
|
homepage = "https://sylpheed.sraoss.jp/en/";
|
|
description = "Lightweight and user-friendly e-mail client";
|
|
maintainers = with maintainers; [ eelco ];
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
license = licenses.gpl2;
|
|
# never built on aarch64-darwin since first introduction in nixpkgs
|
|
broken = stdenv.isDarwin && stdenv.isAarch64;
|
|
};
|
|
}
|