2022-03-05 16:20:37 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
}:
|
|
|
|
|
|
|
|
# Point the environment variable $WALLABAG_DATA to a data directory
|
2022-04-27 09:35:20 +00:00
|
|
|
# that contains the folder `app` which must be a clone of
|
2022-03-05 16:20:37 +00:00
|
|
|
# wallabag's configuration files with your customized `parameters.yml`.
|
2022-04-27 09:35:20 +00:00
|
|
|
# In practice you need to copy `${pkgs.wallabag}/app` and the
|
|
|
|
# customizzed `parameters.yml` to $WALLABAG_DATA.
|
2022-03-05 16:20:37 +00:00
|
|
|
# These need to be updated every package upgrade.
|
|
|
|
#
|
|
|
|
# After a package upgrade, empty the `var/cache` folder or unexpected
|
|
|
|
# error will occur.
|
|
|
|
|
|
|
|
let
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "wallabag";
|
2022-06-16 17:23:12 +00:00
|
|
|
version = "2.5.0";
|
2022-03-05 16:20:37 +00:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
inherit pname version;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
# GitHub distribution does not include vendored files
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://static.wallabag.org/releases/wallabag-release-${version}.tar.gz";
|
2022-06-16 17:23:12 +00:00
|
|
|
hash = "sha256-fE/4bVwImQ03wrfdrx6AlulO2xU1M2HIaSOGpTAb02E=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
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 = ''
|
2022-03-05 16:20:37 +00:00
|
|
|
mkdir $out
|
2020-04-24 23:36:52 +00:00
|
|
|
cp -R * $out/
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2022-03-05 16:20:37 +00:00
|
|
|
description = "wallabag is a self hostable application for saving web pages";
|
2020-04-24 23:36:52 +00:00
|
|
|
longDescription = ''
|
2022-03-05 16:20:37 +00:00
|
|
|
wallabag is a self-hostable PHP application allowing you to not
|
|
|
|
miss any content anymore. Click, save and read it when you can.
|
|
|
|
It extracts content so that you can read it when you have time.
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
license = licenses.mit;
|
|
|
|
homepage = "http://wallabag.org";
|
2022-03-05 16:20:37 +00:00
|
|
|
changelog = "https://github.com/wallabag/wallabag/releases/tag/${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ schneefux ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|