New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sogo: Init at 4.0.8 #65530
Closed
Closed
sogo: Init at 4.0.8 #65530
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ gnustep, lib, fetchFromGitHub , libxml2, openssl_1_1 | ||
, openldap, mysql ? null, postgresql }: with lib; gnustep.stdenv.mkDerivation rec { | ||
pname = "sope"; | ||
version = "4.0.8"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "inverse-inc"; | ||
repo = pname; | ||
rev = "SOPE-${version}"; | ||
sha256 = "0kd7v06wfqgrcazhbi92mpdcjvh1khqkvq34rn6hiz30qxj2qmkk"; | ||
}; | ||
|
||
nativeBuildInputs = [ gnustep.make ]; | ||
buildInputs = [ gnustep.base libxml2 openssl_1_1 ] | ||
++ optional (openldap != null) openldap | ||
++ optional (mysql != null) mysql | ||
++ optional (postgresql != null) postgresql; | ||
|
||
postPatch = '' | ||
# Exclude NIX_ variables | ||
sed -i 's/grep GNUSTEP_/grep ^GNUSTEP_/g' configure | ||
''; | ||
|
||
preConfigure = '' | ||
export DESTDIR="$out" | ||
''; | ||
|
||
configureFlags = [ "--prefix=" "--disable-debug" "--enable-xml" "--with-ssl=ssl" ] | ||
++ optional (openldap != null) "--enable-openldap" | ||
++ optional (mysql != null) "--enable-mysql" | ||
++ optional (postgresql != null) "--enable-postgresql"; | ||
|
||
# Yes, this is ugly. | ||
preFixup = '' | ||
cp -rlPa $out/nix/store/*/* $out | ||
rm -rf $out/nix/store | ||
''; | ||
|
||
meta = { | ||
description = "An extensive set of frameworks which form a complete Web application server environment in Objective-C"; | ||
license = licenses.publicDomain; | ||
homepage = "https://github.com/inverse-inc/sope"; | ||
platforms = platforms.linux; | ||
maintainers = with maintainers; [ das_j ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
{ gnustep, lib, fetchFromGitHub, makeWrapper, python2, lndir | ||
, openssl_1_1, openldap, sope, libmemcached, curl }: with lib; gnustep.stdenv.mkDerivation rec { | ||
pname = "SOGo"; | ||
version = "4.0.8"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "inverse-inc"; | ||
repo = pname; | ||
rev = "SOGo-${version}"; | ||
sha256 = "10d2kz4vffspr3wh35dvj65lr57sr1gk0hy6hdn2nsygh4agl9nj"; | ||
}; | ||
|
||
nativeBuildInputs = [ gnustep.make makeWrapper python2 ]; | ||
buildInputs = [ gnustep.base sope openssl_1_1 libmemcached (curl.override { openssl = openssl_1_1; }) ] | ||
++ optional (openldap != null) openldap; | ||
|
||
postPatch = '' | ||
# Exclude NIX_ variables | ||
sed -i 's/grep GNUSTEP_/grep ^GNUSTEP_/g' configure | ||
|
||
# Disable argument verification because $out is not a GNUStep prefix | ||
sed -i 's/^validateArgs$//g' configure | ||
|
||
# Patch exception-generating python scripts | ||
patchShebangs . | ||
|
||
# Move all GNUStep makefiles to a common directory | ||
mkdir -p makefiles | ||
cp -r {${gnustep.make},${sope}}/share/GNUstep/Makefiles/* makefiles | ||
|
||
# Modify the search path for GNUStep makefiles | ||
find . -type f -name GNUmakefile -exec sed -i "s:\\$.GNUSTEP_MAKEFILES.:$PWD/makefiles:g" {} + | ||
''; | ||
|
||
configureFlags = [ "--disable-debug" "--with-ssl=ssl" ]; | ||
|
||
preFixup = '' | ||
# Create gnustep.conf | ||
mkdir -p $out/share/GNUstep | ||
cp ${gnustep.make}/etc/GNUstep/GNUstep.conf $out/share/GNUstep/ | ||
sed -i "s:${gnustep.make}:$out:g" $out/share/GNUstep/GNUstep.conf | ||
|
||
# Link in GNUstep base | ||
${lndir}/bin/lndir ${gnustep.base}/lib/GNUstep/ $out/lib/GNUstep/ | ||
|
||
# Link in sope | ||
${lndir}/bin/lndir ${sope}/ $out/ | ||
|
||
# sbin fixup | ||
mkdir -p $out/bin | ||
mv $out/sbin/* $out/bin | ||
rmdir $out/sbin | ||
|
||
# Make sogo find its files | ||
for bin in $out/bin/*; do | ||
wrapProgram $bin --prefix LD_LIBRARY_PATH : $out/lib/sogo --prefix GNUSTEP_CONFIG_FILE : $out/share/GNUstep/GNUstep.conf | ||
done | ||
''; | ||
|
||
meta = { | ||
description = "Very fast and scalable modern collaboration suite (groupware)"; | ||
license = with licenses; [ gpl2 lgpl21 ]; | ||
homepage = "https://sogo.nu/"; | ||
platforms = platforms.linux; | ||
maintainers = with maintainers; [ das_j ]; | ||
}; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you make one commit per new package please?