about summary refs log tree commit diff
path: root/pkgs/applications/office/openoffice/generate-libreoffice-srcs.sh
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/applications/office/openoffice/generate-libreoffice-srcs.sh')
-rw-r--r--pkgs/applications/office/openoffice/generate-libreoffice-srcs.sh26
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/applications/office/openoffice/generate-libreoffice-srcs.sh b/pkgs/applications/office/openoffice/generate-libreoffice-srcs.sh
new file mode 100644
index 0000000000000..97bf2b32c9ce6
--- /dev/null
+++ b/pkgs/applications/office/openoffice/generate-libreoffice-srcs.sh
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+VERSIONBASE=3.4.5
+
+VERSION=3.4.5.2
+
+if [ $# -gt 2 ]; then
+  VERSIONBASE=$1
+  VERSION=$2
+fi
+
+echo '{fetchurl} : ['
+
+for a in artwork base bootstrap calc components extensions extras filters \
+  help impress libs-core libs-extern libs-extern-sys libs-gui postprocess \
+  translations ure writer sdk testing; do
+
+  URL=http://download.documentfoundation.org/libreoffice/src/$VERSIONBASE/libreoffice-$a-$VERSION.tar.bz2
+
+  echo '(fetchurl {'
+  echo "  url = \"$URL\";"
+  echo "  sha256 = \"`nix-prefetch-url $URL`\";"
+  echo '})'
+done
+
+echo ']'