diff options
author | schneefux <schneefux+commit@schneefux.xyz> | 2016-10-22 17:20:49 +0200 |
---|---|---|
committer | schneefux <schneefux+commit@schneefux.xyz> | 2016-10-22 17:20:49 +0200 |
commit | 7a57be47bbf7547d5bd6e4bbc20a2aa62a6b953c (patch) | |
tree | dfe2ba6929bc8937ef45aa53d76bd09219a6f91e /pkgs/servers | |
parent | 2e255a2edddfe5ca0e44f55d6e4bd82737cbb884 (diff) | |
download | nixpkgs-7a57be47bbf7547d5bd6e4bbc20a2aa62a6b953c.tar nixpkgs-7a57be47bbf7547d5bd6e4bbc20a2aa62a6b953c.tar.gz nixpkgs-7a57be47bbf7547d5bd6e4bbc20a2aa62a6b953c.tar.bz2 nixpkgs-7a57be47bbf7547d5bd6e4bbc20a2aa62a6b953c.tar.lz nixpkgs-7a57be47bbf7547d5bd6e4bbc20a2aa62a6b953c.tar.xz nixpkgs-7a57be47bbf7547d5bd6e4bbc20a2aa62a6b953c.tar.zst nixpkgs-7a57be47bbf7547d5bd6e4bbc20a2aa62a6b953c.zip |
wallabag: init at 2.1.2
Diffstat (limited to 'pkgs/servers')
-rw-r--r-- | pkgs/servers/web-apps/wallabag/default.nix | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/servers/web-apps/wallabag/default.nix b/pkgs/servers/web-apps/wallabag/default.nix new file mode 100644 index 00000000000..68732b2e169 --- /dev/null +++ b/pkgs/servers/web-apps/wallabag/default.nix @@ -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; + }; +} + |