wallabag: init at 2.1.2

This commit is contained in:
schneefux 2016-10-22 17:20:49 +02:00
parent 2e255a2edd
commit 7a57be47bb
No known key found for this signature in database
GPG key ID: 50F2BF336737C2F0
2 changed files with 45 additions and 0 deletions

View file

@ -0,0 +1,43 @@
{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "wallabag-${version}";
version = "2.1.2";
# remember to rm -r var/cache/* after a rebuild or unexpected errors will occur
src = fetchurl {
url = "https://framabag.org/wallabag-release-${version}.tar.gz";
sha256 = "01i4xdzw126wwwkxy0d97dizrikvawpzqj95bykd1g25m7jzvb7k";
};
outputs = [ "out" "doc" ];
patchPhase = ''
rm Makefile # use the "shared hosting" package with bundled dependencies
substituteInPlace app/AppKernel.php \
--replace "__DIR__" "getenv('WALLABAG_DATA')"
substituteInPlace var/bootstrap.php.cache \
--replace "\$this->rootDir = \$this->getRootDir()" "\$this->rootDir = getenv('WALLABAG_DATA')"
''; # exposes $WALLABAG_DATA
installPhase = ''
mv docs $doc/
mkdir $out/
cp -R * $out/
'';
meta = with stdenv.lib; {
description = "Web page archiver";
longDescription = ''
wallabag is a self hostable application for saving web pages.
To use, point the environment variable $WALLABAG_DATA to a directory called `app` that contains the folder `config` with wallabag's configuration files. These need to be updated every package upgrade. In `app`'s parent folder, a directory called `var` containing wallabag's data will be created.
After a package upgrade, empty the `var/cache` folder.
'';
license = licenses.mit;
homepage = http://wallabag.org;
platforms = platforms.all;
};
}

View file

@ -10301,6 +10301,8 @@ in
vsftpd = callPackage ../servers/ftp/vsftpd { }; vsftpd = callPackage ../servers/ftp/vsftpd { };
wallabag = callPackage ../servers/web-apps/wallabag { };
winstone = callPackage ../servers/http/winstone { }; winstone = callPackage ../servers/http/winstone { };
xinetd = callPackage ../servers/xinetd { }; xinetd = callPackage ../servers/xinetd { };