2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "wallabag";
|
2021-05-20 23:08:51 +00:00
|
|
|
version = "2.4.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# remember to rm -r var/cache/* after a rebuild or unexpected errors will occur
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://static.wallabag.org/releases/wallabag-release-${version}.tar.gz";
|
2021-05-20 23:08:51 +00:00
|
|
|
sha256 = "1n39flqqqjih0lc86vxdzbp44x4rqj5292if2fsa8y1xxlvyqmns";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "out" ];
|
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
patches = [
|
|
|
|
./wallabag-data.patch # exposes $WALLABAG_DATA
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir $out/
|
|
|
|
cp -R * $out/
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Web page archiver";
|
|
|
|
longDescription = ''
|
|
|
|
wallabag is a self hostable application for saving web pages.
|
|
|
|
|
|
|
|
Point the environment variable $WALLABAG_DATA to a data directory that contains the folder `app/config` which must be a clone of wallabag's configuration files with your customized `parameters.yml`. These need to be updated every package upgrade.
|
|
|
|
After a package upgrade, empty the `var/cache` folder.
|
|
|
|
'';
|
|
|
|
license = licenses.mit;
|
|
|
|
homepage = "http://wallabag.org";
|
|
|
|
maintainers = with maintainers; [ schneefux ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|