Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
678 commits
Select commit Hold shift + click to select a range
ff23b4e
propagate kdelibs4support dependencies
ttuegel Oct 10, 2015
7502c4a
propagate kemoticons dependencies
ttuegel Oct 10, 2015
8fc3119
propagate kfilemetadata dependencies
ttuegel Oct 10, 2015
42886db
propagate kglobalaccel dependencies
ttuegel Oct 10, 2015
daffe28
propagate khtml dependencies
ttuegel Oct 10, 2015
bb74022
propagate ki18n dependencies
ttuegel Oct 10, 2015
7aa8586
propagate kidletime dependencies
ttuegel Oct 10, 2015
5c57c50
propagate kio dependencies
ttuegel Oct 10, 2015
3d18c3e
propagate kpeople dependencies
ttuegel Oct 10, 2015
ed959f5
propagated kross dependencies
ttuegel Oct 10, 2015
58c3a95
propagate krunner dependencies
ttuegel Oct 10, 2015
5f62dae
propagate ktexteditor dependencies
ttuegel Oct 10, 2015
4805823
propagate kwindowsystem dependencies
ttuegel Oct 10, 2015
40182c4
propagate plasma-framework dependencies
ttuegel Oct 10, 2015
7fbbffc
propagate sonnet dependencies
ttuegel Oct 10, 2015
1f7948e
propagate kwin dependencies
ttuegel Oct 11, 2015
aa42432
propagate libkscreen dependencies
ttuegel Oct 11, 2015
c41dbe2
propagate plasma-workspace dependencies
ttuegel Oct 11, 2015
918bcd8
plasma54.bluedevil: remove baloo dependency
ttuegel Oct 11, 2015
35ecc64
qtmultimedia: build with gstreamer-1.0
ttuegel Oct 11, 2015
2404898
kde-frameworks: 5.14 -> 5.15
ttuegel Oct 13, 2015
464b997
kde-apps: 15.08.1 -> 15.08.2
ttuegel Oct 13, 2015
e6d48df
kservice: update patches
ttuegel Oct 14, 2015
7e864e0
kcmutils: update patches
ttuegel Oct 14, 2015
c30c472
kconfigwidgets: update patches
ttuegel Oct 14, 2015
db6adfe
kpackage: update patches
ttuegel Oct 14, 2015
806f26e
kwin: update patches
ttuegel Oct 14, 2015
faa6202
libksysguard: follow symlinks
ttuegel Oct 14, 2015
acc6b84
baloo: baloo-monitor removed
ttuegel Oct 14, 2015
fe0ea38
ktexteditor: update patches
ttuegel Oct 14, 2015
1a466ef
separate makeQtWrapper from qtbase setup-hook
ttuegel Oct 14, 2015
481ad8f
makeKDEWrapper: separate from extra-cmake-modules
ttuegel Oct 14, 2015
7308a15
plasma-desktop: propagate runtime dependencies
ttuegel Oct 17, 2015
761b8f8
plasma-workspace: propagate runtime dependencies
ttuegel Oct 17, 2015
36743b2
solid: depend on qtdeclarative
ttuegel Oct 17, 2015
abb2653
qt55: set library paths from NIX_PROFILES
ttuegel Oct 17, 2015
631cc08
qt55: set Qt Quick import paths from NIX_PROFILES
ttuegel Oct 17, 2015
f3e60fe
qt55: set QML import paths from NIX_PROFILES
ttuegel Oct 17, 2015
07cec88
makeKDEWrapper: allow impure wrappers
ttuegel Oct 17, 2015
175e158
plasma-workspace: use impure wrappers
ttuegel Oct 17, 2015
b0ed4fa
nixos/environment: don't set Qt 5 paths
ttuegel Oct 17, 2015
7d7c1bb
nixos/kde5: only install required packages
ttuegel Oct 17, 2015
1eaf29a
nixos/kde5: refine Phonon backend options
ttuegel Oct 17, 2015
0263e08
plasma54: propagate packages to user profile
ttuegel Oct 17, 2015
a649551
kdeApps_15_08.oxygen-icons: init at 15.04.03
ttuegel Oct 18, 2015
344c793
nixos/kde5: install oxygen-icons
ttuegel Oct 18, 2015
a09704f
makeKDEWrapper: don't build kdesycoca
ttuegel Oct 18, 2015
dd871b9
kservice: don't build kdesycoca
ttuegel Oct 18, 2015
8573285
remove kf515.makeKDEWrapper
ttuegel Oct 18, 2015
30f5dc6
makeQtWrapper: always wrap impurely
ttuegel Oct 18, 2015
d3d89b1
kwin: depend on qtmultimedia
ttuegel Oct 18, 2015
56fa8ba
extra-cmake-modules: propagate MIME type providers
ttuegel Oct 18, 2015
b51a2b4
kservice: propagate service providers
ttuegel Oct 18, 2015
0100c72
nixos/kde5: install frameworkintegration
ttuegel Oct 18, 2015
fe21b4c
kwin: remove obsolete patch
ttuegel Oct 18, 2015
59d9b72
kdoctools: set XDG_DATA_DIRS in setupHook
ttuegel Oct 18, 2015
34a76b0
qtbase: propagate runtime dependencies
ttuegel Oct 18, 2015
06bed66
plasma-desktop: fix QML import paths for Qt 5.5
ttuegel Oct 19, 2015
8df5411
plasma-workspace: fix QML import paths for Qt 5.5
ttuegel Oct 19, 2015
78bd3e3
plasma-desktop: fix more QML import paths
ttuegel Oct 19, 2015
4554a2f
plasma-desktop: don't move files
ttuegel Oct 20, 2015
58acc8f
plasma-workspace: fix screen locker
ttuegel Oct 20, 2015
84c077f
plasma-desktop: fix logout/shutdown dialogs
ttuegel Oct 20, 2015
48effa0
hackage-packages.nix: update Haskell package set
peti Oct 28, 2015
b7fe1e2
configuration-hackage2nix.yaml: update broken builds
peti Oct 30, 2015
deb3544
uhc: the build is broken
peti Oct 30, 2015
7a5cae0
nixUnstable: Update to 1.11pre4273_71039be
edolstra Oct 30, 2015
4c5984d
Armagetronad: init at version 0.2.8.3.3
Oct 30, 2015
f373cab
Reordered games in all-packages.nix to GAMES section
Oct 31, 2015
6318a9c
kernel: 3.18.22 -> 3.18.23
wkennington Oct 30, 2015
d07509b
perl-CatalystPluginLogHandler: init at 0.08
rycee Oct 31, 2015
e8f53a8
perl-CatalystPluginSessionDynamicExpiry: init at 0.04
rycee Oct 31, 2015
bb2b74d
perl-CatalystPluginSessionStoreFile: init at 0.18
rycee Oct 31, 2015
940daf4
perl-CatalystPluginStatusMessage: init at 1.002000
rycee Oct 31, 2015
1fee642
perl-UnicodeCaseFold: init at 1.00
rycee Oct 31, 2015
0b33b61
rustc: 1.3.0 -> 1.4.0
wkennington Oct 31, 2015
1abed56
rustcMaster: 2015-10-17 -> 2015-10-27
wkennington Oct 31, 2015
28db0a0
atlas: patch out usage of deprecated tmpnam on darwin
Oct 31, 2015
154328f
haskellPackages: skip hsparql checks
Profpatsch Oct 31, 2015
587912c
lilypond: allow build on darwin
sjourdois Oct 28, 2015
bdc0daa
mbuffer: new package
tokudan Oct 31, 2015
275e1ce
qtbase: copy qmake to temp dir
ttuegel Oct 25, 2015
3c1d0b4
kdeApps_15_08: package locales
ttuegel Oct 25, 2015
f647bef
kdeApps: move kdeApp to separate file
ttuegel Oct 25, 2015
41140ae
kdeApps_15_08.l10n: move into separate file
ttuegel Oct 25, 2015
a2aac0f
plasma-nm: path to mobile-broadband-provider-info
ttuegel Oct 25, 2015
6884033
kgpg: wrap with path to gpg
ttuegel Oct 25, 2015
0e19b8f
ark: wrap with paths to wrapper programs
ttuegel Oct 27, 2015
bb91513
nixos/kde5: install dolphin-plugins
ttuegel Oct 27, 2015
51a6114
dolphin: wrap with Qt paths
ttuegel Oct 27, 2015
804320f
gwenview: wrap with Qt paths
ttuegel Oct 27, 2015
f2a98f6
kate: wrap with Qt paths
ttuegel Oct 27, 2015
0b6f1ec
konsole: wrap with Qt path
ttuegel Oct 27, 2015
e893721
kiconthemes: default theme is breeze
ttuegel Oct 27, 2015
ba948ef
kde-gtk-config: follow symlinks
ttuegel Oct 27, 2015
349d537
plasma-workspace: kapplymousetheme moved to plasma-desktop
ttuegel Oct 28, 2015
49997b7
makeQtWrapper: wrap XDG directories
ttuegel Oct 28, 2015
2d055e1
nixos/kde5: install a more complete desktop
ttuegel Oct 28, 2015
ad1314a
Revert "kiconthemes: default theme is breeze"
ttuegel Oct 29, 2015
50cc343
plasma_stable: plasma-5.3.2 -> plasma-5.4.2
ttuegel Oct 30, 2015
71a162c
nixos/kde5: install oxygen-icons
ttuegel Oct 30, 2015
1fff784
sddm module: support autologin configuration
bennofs Oct 31, 2015
1b31c06
ascii: allow build on darwin
sjourdois Oct 28, 2015
d7562d8
emacs24Macport: update 24.5-mac-5.12 -> 24.5-mac-5.13
jwiegley Oct 31, 2015
8ddd751
coqPackages.ssreflect: add ncurses as a dependency
jwiegley Oct 31, 2015
4b4380f
haskellPackages.c2hs: Disable tests on Darwin
jwiegley Oct 31, 2015
e6a7d9e
Correction to Boost RPATH for Darwin systems
jwiegley Oct 31, 2015
39f8ec6
xdg-utils: allow build on darwin
sjourdois Oct 28, 2015
fa59556
hackage-packages.nix: update Haskell package set
peti Oct 31, 2015
782a19c
configuration-hackage2nix.yaml: update list of broken packages
peti Oct 31, 2015
434f3bd
haskell-math-functions: trigger re-build to fix broken binaries on Hydra
peti Oct 31, 2015
375e839
lightning-python: init at 1.2.1
datakurre Oct 31, 2015
5923853
python cairocffi: hardcode cairo library path
sjourdois Oct 28, 2015
e67e34e
python cairosvg: init at 1.0.18
sjourdois Oct 28, 2015
4bce185
python tinycss: init at 0.3
sjourdois Oct 28, 2015
42e450a
python pygal: init at 2.0.8
sjourdois Oct 28, 2015
92b556e
ssdeep: only run patchelf on linux
sjourdois Oct 28, 2015
35ca298
django-silk: init at 0.5.6
risicle Oct 2, 2015
d6cab03
gptfdisk: darwin fixes
sjourdois Oct 31, 2015
27a09c1
testdisk: darwin fixes
sjourdois Oct 31, 2015
7d74658
mkvtoolnix: darwin fixes
sjourdois Oct 31, 2015
1723ce8
letsencrypt: add 0.0.0.dev20151030
domenkozar Oct 31, 2015
ce6c1be
typo
domenkozar Oct 31, 2015
05cdc47
calibre-server service: add type to libraryDir option
ryantm Oct 31, 2015
74caf97
mbuffer: use version variable
tokudan Oct 31, 2015
bf2cac6
hackrf: allow on darwin
sjourdois Oct 31, 2015
3bdfd3d
darwin purity: polyml
Sep 30, 2015
f6ffdf7
darwin purity: aria2
Sep 30, 2015
a95902d
pythonPackages.kazoo: don't depend on zookeeper at build time
domenkozar Nov 1, 2015
294e5cb
cd-discid: do not use INSTALL=/usr/bin/install, as it did not build
aristidb Nov 1, 2015
0f7eb6d
youtube-DL: 2015.08.28 -> 2015.10.24
AndersonTorres Nov 1, 2015
2967b92
yara: init at 3.4.0
sjourdois Oct 31, 2015
9bad7e9
refind: 0.8.4 -> 0.9.2
AndersonTorres Nov 1, 2015
66091fe
keybase: 0.7.8 -> 0.8.22
manveru Nov 1, 2015
e602c3b
svtplay-dl: 0.20.2015.10.08 -> 0.20.2015.10.25
rycee Nov 1, 2015
60b9c1e
xvkbd: update from 3.6 to 3.7
bennofs Nov 1, 2015
c983612
php: 5.6.14 -> 5.6.15
globin Nov 1, 2015
84968d1
php70: 7.0.0beta1 -> 7.0.0RC6
globin Nov 1, 2015
46726ba
lxc: 1.1.3 -> 1.1.4 (security)
globin Nov 1, 2015
1f87ed3
rustRegistry: 2015-10-18 -> 2015-11-01
globin Nov 1, 2015
8c7c22b
nixos/postgresql: fix extraPlugins example with a working one
lucabrunox Nov 1, 2015
ef58e96
python-dubs: set pythonPath for wrapper
bennofs Nov 1, 2015
d5dcbb4
ipfs: 0.3.8 -> 0.3.9
devhell Nov 1, 2015
05ff9e0
manual: document nginx changes
abbradar Nov 1, 2015
1395c1f
Update the logo to match front page of nixos.org
copumpkin Nov 2, 2015
a8bf0b8
Whoops, revert my last change
copumpkin Nov 2, 2015
938c9f0
netsniff-ng 0.5.9-{121-gd91abbd -> 130-ga81b515}
nckx Oct 29, 2015
a76da52
gparted: add hdparm dependency
nckx Oct 29, 2015
7082789
geolite-legacy 2015-10-27 -> 2015-11-02
nckx Nov 2, 2015
5f09f03
darwin: ipython: fix build inputs for darwin
datakurre Oct 23, 2015
82417cf
darwin: appnope: init at 0.1.0
datakurre Oct 23, 2015
512541e
jupyter_console: init at 4.0.3
datakurre Oct 23, 2015
4a49186
jupyter: init at 1.0.0
datakurre Oct 23, 2015
896cef3
hackage-packages.nix: update Haskell package set
peti Nov 1, 2015
b2c6171
nixos/jenkins: force .war (re)extraction at start-up
bjornfor Nov 2, 2015
6033e35
jenkins: 1.633 -> 1.636
bjornfor Nov 2, 2015
81bf476
tilda: 1.2.2 -> 1.2.4
msteen Oct 30, 2015
0e7ed25
neovim: update to 0.1.0., closes #10787
smilliken Nov 2, 2015
70408a2
neovim: fetch by version tag instead of commit hash
vcunat Nov 2, 2015
610732b
travis-ci: use trusty (has 7.5G ram compared to previous 3)
domenkozar Nov 2, 2015
0750dd2
postfix: don't create a symlink inside of /var/spool/mail if /var/mai…
peti Nov 2, 2015
380bd6b
Added msteen to the list of maintainers.
msteen Nov 2, 2015
0b4b11e
Added Linux as confirmed platform
leenaars Nov 2, 2015
8b4bb89
fix eval
domenkozar Nov 2, 2015
da5c81b
haskellPackages: enable hsparql checks again
Profpatsch Nov 2, 2015
57160c9
rustfmt: 2015-10-17 -> 2015-10-28
wizeman Nov 2, 2015
b4eeeac
fetch-cargo-deps: add debug output
wizeman Nov 2, 2015
9515272
Deleted inappropriate line feed
leenaars Nov 2, 2015
7e9428c
oxygen-icons: fix typo in license attribute
ttuegel Nov 2, 2015
09a6210
mpv: 0.9.2 -> 0.12.0
AndersonTorres Nov 2, 2015
25a7d92
calibre: 2.41.0 -> 2.42.0
pSub Nov 2, 2015
4dc5154
spl: 0.6.5.2 -> 0.6.5.3
wkennington Nov 2, 2015
e5a80f7
zfs: 0.6.5.2 -> 0.6.5.3
wkennington Nov 2, 2015
98945ba
linux: Add 4.3
wkennington Nov 2, 2015
d0b2409
neovim: fix wrong ad30764d68a
vcunat Nov 2, 2015
d657491
sbcl: 1.2.16 -> 1.3.0
Nov 2, 2015
0e37f9a
nzbget: 16.2 -> 16.3
pSub Nov 2, 2015
2d25c0b
bro: 2.4 -> 2.4.1
pSub Nov 2, 2015
6fe6460
llvm-3.7: add libcxxabi as a buildInput on darwin
Nov 2, 2015
3d5859c
darwin purity: doxygen
Sep 29, 2015
a3e9b87
perl-Any-Moose: 0.24 -> 0.26
pSub Nov 2, 2015
21c8cce
perl-AuthenSASL: 2.1401 -> 2.16
pSub Nov 2, 2015
5b3b4c6
perl-CGI-Simple: 1.113 -> 1.115
pSub Nov 2, 2015
fa5cb7b
perl-Catalyst-Action-REST: 1.17 -> 1.19
pSub Nov 2, 2015
bb19e1a
perl-Test-Aggregate: init at 0.373
pSub Nov 3, 2015
d8545bd
perl-Catalyst-Controller-HTML-FromFo: 0.03007 -> 1.00
pSub Nov 3, 2015
a5f3fc3
perl-Catalyst-DispatchType-Regex: 5.90033 -> 5.90035
pSub Nov 3, 2015
bc9aa2c
perl-Catalyst-Manual: 5.9007 -> 5.9009
pSub Nov 3, 2015
dfc1ff0
perl-Catalyst-Plugin-Authentication: 0.10022 -> 0.10023
pSub Nov 3, 2015
d872ccc
gdal: 1.11.2 -> 1.11.3
michelk Nov 3, 2015
bdc6d56
gdal: 2.0.0 -> 2.0.1
michelk Nov 3, 2015
f7475e3
remove _main from CoreFoundation
Nov 3, 2015
47deeba
IDEA Updates
edwtjo Nov 3, 2015
c4cc9e0
darwin purity: flow
Nov 3, 2015
eff559e
openjdk: add infinality patch to improve font-rendering
joelmo Nov 3, 2015
b247f46
Update HOL Light to version 2015-11-02
maggesi Nov 3, 2015
d0aebac
nixos: add services.jenkins.jobBuilder option
bjornfor Oct 8, 2015
c3d93f0
cargo: 0.5.0 -> 0.6.0
wizeman Nov 3, 2015
e815b42
goPackages.go-bindata: 3.0.7 -> 2015-10-23
kamilchm Nov 3, 2015
d613fe8
vnstat: fix platforms list
cleverca22 Nov 3, 2015
2f38459
darwin purity: pythonPackages.pandas
Nov 3, 2015
a50d5f6
darwin purity: mosh
Nov 3, 2015
b928c57
Update default.nix
annejan Nov 4, 2015
5b685c2
geolite-legacy 2015-11-02 -> 2015-11-04
nckx Nov 4, 2015
d6474d7
rustcMaster: 2015-10-27 -> 2015-11-01
wizeman Nov 3, 2015
6427cfe
Don't fail if env-vars cannot be written to
wmertens Oct 6, 2015
1c0ea81
Revert "Don't fail if env-vars cannot be written to"
vcunat Nov 4, 2015
ff21e46
slime: added The Superior Lisp Interaction Mode for Emacs
Nov 4, 2015
d80db53
nspr: 4.10.9 -> 4.10.10
wkennington Nov 4, 2015
72d7663
nss: 3.20 -> 3.20.1
wkennington Nov 4, 2015
9582100
iproute: 4.2.0 -> 4.3.0
wkennington Nov 4, 2015
a77a327
firefox: Updates
wkennington Nov 4, 2015
06b609e
btrfsProgs: 4.2.2 -> 4.2.3
wkennington Nov 4, 2015
be5c19e
ceph: 0.94.4 -> 0.94.5
wkennington Nov 4, 2015
e9db1a5
pythonPackages.six: 1.9.0 -> 1.10.0
domenkozar Nov 4, 2015
790b685
pythonPackages.sphinx: apply a patch to support py35
domenkozar Nov 4, 2015
ccbd5c9
pythonPackages.oslosphinx: skip overriden patch
domenkozar Nov 4, 2015
cadfc10
nova: install migrate.cfg
domenkozar Nov 4, 2015
197ee61
glance: copy .ini config to /etc
domenkozar Nov 4, 2015
b503c48
keystone: copy .ini files, make openssl tools available
domenkozar Nov 4, 2015
1939e4d
coreutils 8.24 have a bug exhibited in a test in the Pi2. Patching.
viric Nov 4, 2015
0c616b9
Fixing the logic in coreutils to avoid stdenv rebuild.
viric Nov 4, 2015
cdcfcaf
pythonPackages.{boto,httpretty}: use requests2
domenkozar Nov 4, 2015
2f87e1e
linux: Update to 3.18.24
edolstra Nov 4, 2015
74710f5
python-hetzner: Update to bugfix version 0.7.4.
aszlig Nov 4, 2015
cd12a93
hack-font 2.015 -> 2.017
nckx Nov 4, 2015
658db68
fix eval
domenkozar Nov 4, 2015
bb510e4
atlas: build on Linux only
ttuegel Nov 4, 2015
f174cc8
Revert "darwin purity: mosh"
Nov 3, 2015
4db895c
add libutil into darwin.Libsystem
Nov 4, 2015
1406ea5
perl-Catalyst-Plugin-Authorization-ACL: 0.15 -> 0.16
pSub Nov 3, 2015
2d24e8f
perl-Catalyst-Plugin-ConfigLoader: 0.33 -> 0.34
pSub Nov 3, 2015
33b5986
perl-Catalyst-Plugin-Session: 0.39 -> 0.40
pSub Nov 3, 2015
dce399d
pugixml: 1.6 -> 1.7
pSub Nov 4, 2015
ee6eb5d
perl-Catalyst-Plugin-Static-Simple: 0.31 -> 0.33
pSub Nov 4, 2015
9d82a73
vc: init at 0.7.5, 1.0.0
abbradar Nov 4, 2015
07137b9
calligra: 2.8.7 -> 2.9.8
abbradar Nov 4, 2015
6fc1160
calligra: remove unneeded patch
abbradar Nov 4, 2015
3c8b3d9
perl-JSON-MaybeXS: 1.002005 -> 1.003005
pSub Nov 4, 2015
4677e65
perl-Catalyst-View-JSON: 0.33 -> 0.35
pSub Nov 4, 2015
a77dfa2
perl-Catalyst-View-TT: 0.41 -> 0.44
pSub Nov 4, 2015
aa5f1b8
stress-ng 0.04.20 -> 0.04.21
nckx Nov 4, 2015
3519bb5
vc: fix evaluation (licences -> licenses)
nckx Nov 4, 2015
0ee586e
sddm: 0.12.0 -> 0.13.0
abbradar Nov 4, 2015
19d7c43
python openpyxl: 2.2.4 -> 2.2.6
sjourdois Nov 4, 2015
3b9155b
perl-Class-C3: 0.28 -> 0.30
pSub Nov 4, 2015
166c739
perl-Clone: 0.36 -> 0.38
pSub Nov 4, 2015
d116be5
owncloud httpd-service: fix trusted_domain when unset
Nov 26, 2015
23b955b
owncloud httpd-service: add package option
Nov 26, 2015
e9636d8
Merge branch 'owncloud-latest' of github.com:aborsu/nixpkgs into ownc…
Nov 26, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 34 additions & 15 deletions nixos/modules/services/web-servers/apache-httpd/owncloud.nix
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ let
"proxyuserpwd" => "",

/* List of trusted domains, to prevent host header poisoning ownCloud is only using these Host headers */
'trusted_domains' => array('${config.trustedDomain}'),
${if config.trustedDomain != "" then "'trusted_domains' => array('${config.trustedDomain}')," else ""}

/* Theme to use for ownCloud */
"theme" => "",
Expand Down Expand Up @@ -331,7 +331,7 @@ let
*/
'share_folder' => '/',

'version' => '${pkgs.owncloud.version}',
'version' => '${config.package.version}',

'openssl' => '${pkgs.openssl}/bin/openssl'

Expand All @@ -345,29 +345,44 @@ rec {

extraConfig =
''
ServerName ${config.siteName}
ServerAdmin ${config.adminAddr}
DocumentRoot ${documentRoot}

RewriteEngine On
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d

<Directory ${pkgs.owncloud}>
${builtins.readFile "${pkgs.owncloud}/.htaccess"}
${if config.urlPrefix != "" then "Alias ${config.urlPrefix} ${config.package}" else ''
RewriteEngine On
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
''}

<Directory ${config.package}>
${builtins.readFile "${config.package}/.htaccess"}
</Directory>
'';

globalEnvVars = [
{ name = "OC_CONFIG_PATH"; value = "${config.dataDir}/config/"; }
];

documentRoot = pkgs.owncloud;
documentRoot = if config.urlPrefix == "" then config.package else null;

enablePHP = true;

options = {

package = mkOption {
type = types.package;
default = pkgs.owncloud70;
example = literalExample "pkgs.owncloud70";
description = ''
PostgreSQL package to use.
'';
};

urlPrefix = mkOption {
default = "";
example = "/owncloud";
description = ''
The URL prefix under which the owncloud service appears.
'';
};

id = mkOption {
default = "main";
description = ''
Expand Down Expand Up @@ -552,7 +567,7 @@ rec {
cp ${owncloudConfig} ${config.dataDir}/config/config.php
mkdir -p ${config.dataDir}/storage
mkdir -p ${config.dataDir}/apps
cp -r ${pkgs.owncloud}/apps/* ${config.dataDir}/apps/
cp -r ${config.package}/apps/* ${config.dataDir}/apps/
chmod -R ug+rw ${config.dataDir}
chmod -R o-rwx ${config.dataDir}
chown -R wwwrun:wwwrun ${config.dataDir}
Expand All @@ -566,7 +581,11 @@ rec {
${pkgs.sudo}/bin/sudo -u postgres ${pkgs.postgresql}/bin/psql -h "/tmp" -U postgres -d ${config.dbName} -Atw -c "$QUERY" || true
fi

${php}/bin/php ${pkgs.owncloud}/occ upgrade || true
if [ -e ${config.package}/config/ca-bundle.crt ]; then
cp -f ${config.package}/config/ca-bundle.crt ${config.dataDir}/config/
fi

${php}/bin/php ${config.package}/occ upgrade >> ${config.dataDir}/upgrade.log || true

chown wwwrun:wwwrun ${config.dataDir}/owncloud.log || true

Expand Down
71 changes: 51 additions & 20 deletions pkgs/servers/owncloud/default.nix
Original file line number Diff line number Diff line change
@@ -1,28 +1,59 @@
{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
name= "owncloud-${version}";
version = "7.0.5";
let
common = { versiona, sha256 } @ args: stdenv.mkDerivation (rec {

src = fetchurl {
url = "https://download.owncloud.org/community/${name}.tar.bz2";
name= "owncloud-${version}";
version= versiona;

src = fetchurl {
url = "https://download.owncloud.org/community/${name}.tar.bz2";
inherit sha256;
};

installPhase =
''
mkdir -p $out
find . -maxdepth 1 -execdir cp -r '{}' $out \;

substituteInPlace $out/lib/base.php \
--replace 'OC_Config::$object = new \OC\Config(self::$configDir);' \
'self::$configDir = getenv("OC_CONFIG_PATH"); OC_Config::$object = new \OC\Config(self::$configDir);'
'';

meta = {
description = "An enterprise file sharing solution for online collaboration and storage";
homepage = https://owncloud.org;
maintainers = with stdenv.lib.maintainers; [ matejc ];
license = stdenv.lib.licenses.agpl3Plus;
};

});

in {

owncloud705 = common {
versiona = "7.0.5";
sha256 = "1j21b7ljvbhni9l0b1cpzlhsjy36scyas1l1j222mqdg2srfsi9y";
};

installPhase =
''
mkdir -p $out
find . -maxdepth 1 -execdir cp -r '{}' $out \;

substituteInPlace $out/lib/base.php \
--replace 'OC_Config::$object = new \OC\Config(self::$configDir);' \
'self::$configDir = getenv("OC_CONFIG_PATH"); OC_Config::$object = new \OC\Config(self::$configDir);'
'';

meta = {
description = "An enterprise file sharing solution for online collaboration and storage";
homepage = https://owncloud.org;
maintainers = with stdenv.lib.maintainers; [ matejc ];
license = stdenv.lib.licenses.agpl3Plus;
owncloud70 = common {
versiona = "7.0.10";
sha256 = "7e77f27137f37a721a8827b0436a9e71c100406d9745c4251c37c14bcaf31d0b";
};

owncloud80 = common {
versiona = "8.0.9";
sha256 = "0c1f915f4123dbe07d564cf0172930568690ab5257d2fca4fec4ec515858bef1";
};

owncloud81 = common {
versiona = "8.1.4";
sha256 = "e0f4bf0c85821fc1b6e7f6268080ad3ca3e98c41baa68a9d616809d74a77312d";
};

owncloud82 = common {
versiona = "8.2.0";
sha256 = "fcfe99cf1c3aa06ff369e5b1a602147c08dd977af11800fe06c6a661fa5f770c";
};

}
9 changes: 8 additions & 1 deletion pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2535,7 +2535,14 @@ let

otpw = callPackage ../os-specific/linux/otpw { };

owncloud = callPackage ../servers/owncloud { };
owncloud = owncloud70;

inherit (callPackages ../servers/owncloud { })
owncloud705
owncloud70
owncloud80
owncloud81
owncloud82;

owncloudclient = callPackage ../applications/networking/owncloud-client { };

Expand Down
3 changes: 3 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18994,6 +18994,9 @@ let
license = licenses.zpt20;
maintainers = with maintainers; [ goibhniu ];
};

# Python 3.5 is not yet supported.
disabled = isPy35;
};


Expand Down