summaryrefslogtreecommitdiffstats
path: root/pkgs
diff options
context:
space:
mode:
authorJanne Heß <dasJ@users.noreply.github.com>2023-12-01 11:45:11 +0100
committerGitHub <noreply@github.com>2023-12-01 11:45:11 +0100
commit954c4d37ea83603e5291b88888b0777fbf2e9105 (patch)
tree0801c07cb1b52b619527afdd66cb5e19ff8ef3d7 /pkgs
parent04089c881401116a5a26ff270524a56d3fb6e7cc (diff)
parentce06b17376c821979a7d6c236d4d86a3e8cff456 (diff)
Merge pull request #271174 from helsinki-systems/fix/sogo
sogo: fix build
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/libraries/sope/default.nix23
-rw-r--r--pkgs/servers/web-apps/sogo/default.nix3
2 files changed, 13 insertions, 13 deletions
diff --git a/pkgs/development/libraries/sope/default.nix b/pkgs/development/libraries/sope/default.nix
index 0b61047377f3..fba7517ccca6 100644
--- a/pkgs/development/libraries/sope/default.nix
+++ b/pkgs/development/libraries/sope/default.nix
@@ -3,29 +3,23 @@
gnustep.stdenv.mkDerivation rec {
pname = "sope";
- version = "5.8.0";
+ version = "5.9.0";
src = fetchFromGitHub {
owner = "inverse-inc";
repo = pname;
rev = "SOPE-${version}";
- hash = "sha256-sXIpKdJ5930+W+FsxQ8DZOq/49XWMM1zV8dIzbQdcbc=";
+ hash = "sha256-JZh8sC/w2MRy3UyWYGMvU47XtWKGnLuUlCsVyyxd7zg=";
};
patches = [
- (fetchpatch {
- name = "sope-no-unnecessary-vars.patch";
- url = "https://github.com/Alinto/sope/commit/0751a2f11961fd7de4e2728b6e34e9ba4ba5887e.patch";
- hash = "sha256-1txj8Qehg2N7ZsiYQA2FXI4peQAE3HUwDYkJEP9WnEk=";
- })
- (fetchpatch {
- name = "sope-fix-wformat.patch";
- url = "https://github.com/Alinto/sope/commit/6adfadd5dd2da4041657ad071892f2c9b1704d22.patch";
- hash = "sha256-zCbvVdbeBeNo3/cDVdYbyUUC2z8D6Q5ga0plUoMqr98=";
+ (fetchpatch { # https://github.com/Alinto/sope/pull/66
+ name = "sope-fix-gnustep-1.29.0+.patch";
+ url = "https://github.com/Alinto/sope/pull/66/commits/9ec2744cc851b11886c3ebb723138e4d672bd5c7.patch";
+ hash = "sha256-JgYRwjmjlitgzYz9Jfei5XJRThP1TunPjI0g5M2wZPA=";
})
];
- hardeningDisable = [ "format" ];
nativeBuildInputs = [ gnustep.make ];
buildInputs = [ gnustep.base libxml2 openssl ]
++ lib.optional (openldap != null) openldap
@@ -49,7 +43,10 @@ gnustep.stdenv.mkDerivation rec {
++ lib.optional (mariadb != null) "--enable-mysql"
++ lib.optional (postgresql != null) "--enable-postgresql";
- env.GNUSTEP_CONFIG_FILE = "/build/GNUstep.conf";
+ env = {
+ GNUSTEP_CONFIG_FILE = "/build/GNUstep.conf";
+ NIX_CFLAGS_COMPILE = "-Wno-error=incompatible-pointer-types";
+ };
# Move over the makefiles (see comment over preConfigure)
postInstall = ''
diff --git a/pkgs/servers/web-apps/sogo/default.nix b/pkgs/servers/web-apps/sogo/default.nix
index b08b2adcd234..44065af46d4f 100644
--- a/pkgs/servers/web-apps/sogo/default.nix
+++ b/pkgs/servers/web-apps/sogo/default.nix
@@ -7,6 +7,7 @@ gnustep.stdenv.mkDerivation rec {
pname = "SOGo";
version = "5.9.0";
+ # always update the sope package as well, when updating sogo
src = fetchFromGitHub {
owner = "inverse-inc";
repo = pname;
@@ -44,6 +45,8 @@ gnustep.stdenv.mkDerivation rec {
"--enable-mfa"
];
+ env.NIX_CFLAGS_COMPILE = "-Wno-error=incompatible-pointer-types -Wno-error=int-conversion -Wno-error=implicit-int";
+
preFixup = ''
# Create gnustep.conf
mkdir -p $out/share/GNUstep