mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 13:41:26 +00:00
owncloud: add package
This commit is contained in:
parent
6630e3e4fe
commit
6fdca55e8f
28
pkgs/servers/owncloud/default.nix
Normal file
28
pkgs/servers/owncloud/default.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{ 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
|
||||
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;
|
||||
};
|
||||
|
||||
}
|
|
@ -2092,6 +2092,8 @@ let
|
|||
|
||||
otpw = callPackage ../os-specific/linux/otpw { };
|
||||
|
||||
owncloud = callPackage ../servers/owncloud { };
|
||||
|
||||
owncloudclient = callPackage ../applications/networking/owncloud-client { };
|
||||
|
||||
p7zip = callPackage ../tools/archivers/p7zip { };
|
||||
|
|
Loading…
Reference in a new issue