mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 04:43:09 +03:00
aspell: fix build with gcc-7 via upstream patch
This commit is contained in:
parent
185cd2c60c
commit
f52bafe8e1
@ -1,5 +1,6 @@
|
||||
{stdenv, fetchurl, perl
|
||||
, searchNixProfiles ? true}:
|
||||
{ stdenv, fetchurl, fetchpatch, perl
|
||||
, searchNixProfiles ? true
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "aspell-0.60.6.1";
|
||||
@ -9,10 +10,16 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "1qgn5psfyhbrnap275xjfrzppf5a83fb67gpql0kfqv37al869gm";
|
||||
};
|
||||
|
||||
patchPhase = ''
|
||||
patches = [
|
||||
(fetchpatch { # remove in >= 0.60.7
|
||||
name = "gcc-7.patch";
|
||||
url = "https://github.com/GNUAspell/aspell/commit/8089fa02122fed0a.diff";
|
||||
sha256 = "1b3p1zy2lqr2fknddckm58hyk95hw4scf6hzjny1v9iaic2p37ix";
|
||||
})
|
||||
] ++ stdenv.lib.optional searchNixProfiles ./data-dirs-from-nix-profiles.patch;
|
||||
|
||||
postPatch = ''
|
||||
patch interfaces/cc/aspell.h < ${./clang.patch}
|
||||
'' + stdenv.lib.optionalString searchNixProfiles ''
|
||||
patch -p1 < ${./data-dirs-from-nix-profiles.patch}
|
||||
'';
|
||||
|
||||
buildInputs = [ perl ];
|
||||
|
Loading…
Reference in New Issue
Block a user