2015-01-20 19:22:37 +01:00
|
|
|
{ stdenv, fetchurl }:
|
2015-11-04 17:04:02 +01:00
|
|
|
let
|
2018-07-20 21:54:05 +02:00
|
|
|
common = { versiona, sha256 }: stdenv.mkDerivation (rec {
|
2015-01-20 19:22:37 +01:00
|
|
|
|
2015-11-04 17:04:02 +01: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;
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = with stdenv.lib.platforms; unix;
|
2015-11-04 17:04:02 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
in {
|
|
|
|
|
|
|
|
owncloud70 = common {
|
2016-09-24 18:03:15 +02:00
|
|
|
versiona = "7.0.15";
|
|
|
|
sha256 = "1b2a0fccxlkqyyzsymx7qw8qbhsks3i6h1ybvxv8nn8hgw33nqv7";
|
2015-11-04 17:04:02 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
owncloud80 = common {
|
2016-12-11 13:56:00 +01:00
|
|
|
versiona = "8.0.16";
|
|
|
|
sha256 = "1pgfawrmx6n02h7h6g5wk0sa1kgablqa8ljfiywyw8znxxa5lnrm";
|
2015-11-04 17:04:02 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
owncloud81 = common {
|
2016-12-11 13:56:00 +01:00
|
|
|
versiona = "8.1.11";
|
|
|
|
sha256 = "04izfzj3ckcs0x882kkggp6y7zcrhdihm71wkd9vk6j5fn8k9am0";
|
2015-11-04 17:04:02 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
owncloud82 = common {
|
2016-12-11 13:56:00 +01:00
|
|
|
versiona = "8.2.9";
|
|
|
|
sha256 = "09gzpxd9gjg8h57m8j0r6xnr85fdb951ykwmjby811c6730769pw";
|
2015-01-20 19:22:37 +01:00
|
|
|
};
|
|
|
|
|
2016-03-09 17:39:48 +01:00
|
|
|
owncloud90 = common {
|
2016-12-11 13:56:00 +01:00
|
|
|
versiona = "9.0.7";
|
|
|
|
sha256 = "1j6xrd4dhc0v0maa3z8n392nfc9hrnvbxxyqr8g8kz88w9vbqa6h";
|
2016-09-24 18:03:15 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
owncloud91 = common {
|
2016-12-11 13:56:00 +01:00
|
|
|
versiona = "9.1.3";
|
|
|
|
sha256 = "1sgnsj2ng14lh05n5kc3jv03xk6xnkyx7xj1rasxlqgvzwsyp8g0";
|
2016-03-09 17:39:48 +01:00
|
|
|
};
|
|
|
|
|
2015-01-20 19:22:37 +01:00
|
|
|
}
|