2015-01-20 18:22:37 +00:00
|
|
|
{ stdenv, fetchurl }:
|
2015-11-04 16:04:02 +00:00
|
|
|
let
|
|
|
|
common = { versiona, sha256 } @ args: stdenv.mkDerivation (rec {
|
2015-01-20 18:22:37 +00:00
|
|
|
|
2015-11-04 16:04:02 +00:00
|
|
|
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";
|
2015-05-29 12:14:44 +01:00
|
|
|
sha256 = "1j21b7ljvbhni9l0b1cpzlhsjy36scyas1l1j222mqdg2srfsi9y";
|
2015-01-20 18:22:37 +00:00
|
|
|
};
|
|
|
|
|
2015-11-04 16:04:02 +00:00
|
|
|
owncloud70 = common {
|
2016-01-02 08:10:54 +00:00
|
|
|
versiona = "7.0.12";
|
|
|
|
sha256 = "d1a0f73f5094ec1149b50e2409b5fea0a9bebb16d663789d4b8f98fed341aa91";
|
2015-11-04 16:04:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
owncloud80 = common {
|
2016-01-02 08:10:54 +00:00
|
|
|
versiona = "8.0.10";
|
|
|
|
sha256 = "3054b997f258178b57efc526e14384829ac8ab94757191f2d03c13fcb0a3cd93";
|
2015-11-04 16:04:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
owncloud81 = common {
|
2016-05-30 22:13:33 +01:00
|
|
|
versiona = "8.1.7";
|
|
|
|
sha256 = "0xl67axyh7pblsjb1j86vjd8ic42ga1f7yl3ghxy8rk2xrs8cii7";
|
2015-11-04 16:04:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
owncloud82 = common {
|
2016-05-30 22:13:19 +01:00
|
|
|
versiona = "8.2.4";
|
|
|
|
sha256 = "03br4lsjz9zxd083lqa0ag3f29224l1ksz59r4fdnnbafj9ixv0s";
|
2015-01-20 18:22:37 +00:00
|
|
|
};
|
|
|
|
|
2016-03-09 16:39:48 +00:00
|
|
|
owncloud90 = common {
|
2016-05-17 10:39:09 +01:00
|
|
|
versiona = "9.0.2";
|
|
|
|
sha256 = "845c43fe981fa0fd07fc3708f41f1ea15ecb11c2a15c65a4de191fc85b237c74";
|
2016-03-09 16:39:48 +00:00
|
|
|
};
|
|
|
|
|
2015-01-20 18:22:37 +00:00
|
|
|
}
|