lol
1{ stdenv, fetchurl }:
2stdenv.mkDerivation rec {
3 name= "owncloud-${version}";
4 version = "7.0.5";
5
6 src = fetchurl {
7 url = "https://download.owncloud.org/community/${name}.tar.bz2";
8 sha256 = "1j21b7ljvbhni9l0b1cpzlhsjy36scyas1l1j222mqdg2srfsi9y";
9 };
10
11 installPhase =
12 ''
13 mkdir -p $out
14 find . -maxdepth 1 -execdir cp -r '{}' $out \;
15
16 substituteInPlace $out/lib/base.php \
17 --replace 'OC_Config::$object = new \OC\Config(self::$configDir);' \
18 'self::$configDir = getenv("OC_CONFIG_PATH"); OC_Config::$object = new \OC\Config(self::$configDir);'
19 '';
20
21 meta = {
22 description = "An enterprise file sharing solution for online collaboration and storage";
23 homepage = https://owncloud.org;
24 maintainers = with stdenv.lib.maintainers; [ matejc ];
25 license = stdenv.lib.licenses.agpl3Plus;
26 };
27
28}