nixpkgs-suyu/pkgs/servers/owncloud/default.nix

29 lines
866 B
Nix
Raw Normal View History

2015-01-20 19:22:37 +01:00
{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
name= "owncloud-${version}";
version = "7.0.4";
src = fetchurl {
url = "https://download.owncloud.org/community/${name}.tar.bz2";
sha256 = "0djgqdyxkrh1wc4sn21fmdjr09dkmnjm3gs6lbkp6yn5fpbzhybi";
};
installPhase =
''
mkdir -p $out
2015-01-21 22:47:28 +01:00
find . -maxdepth 1 -execdir cp -r '{}' $out \;
2015-01-20 19:22:37 +01:00
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;
};
}