2022-02-14 17:37:26 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
}:
|
|
|
|
|
|
|
|
# Point the environment variable $WALLABAG_DATA to a data directory
|
2022-04-27 13:38:40 +00:00
|
|
|
# that contains the folder `app` which must be a clone of
|
2022-02-14 17:37:26 +00:00
|
|
|
# wallabag's configuration files with your customized `parameters.yml`.
|
2022-04-27 13:38:40 +00:00
|
|
|
# In practice you need to copy `${pkgs.wallabag}/app` and the
|
|
|
|
# customizzed `parameters.yml` to $WALLABAG_DATA.
|
2022-02-14 17:37:26 +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
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "wallabag";
|
2022-08-02 06:53:48 +00:00
|
|
|
version = "2.5.1";
|
2022-02-14 17:37:26 +00:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
inherit pname version;
|
2016-10-22 15:20:49 +00:00
|
|
|
|
2022-05-23 20:21:11 +00:00
|
|
|
# GitHub distribution does not include vendored files
|
2016-10-22 15:20:49 +00:00
|
|
|
src = fetchurl {
|
2017-04-28 13:27:44 +00:00
|
|
|
url = "https://static.wallabag.org/releases/wallabag-release-${version}.tar.gz";
|
2022-08-02 06:53:48 +00:00
|
|
|
hash = "sha256-vurjWI5Sh/SFPtxd5cHaaw7edcAzNub/duhOUF+Wshk=";
|
2016-10-22 15:20:49 +00:00
|
|
|
};
|
|
|
|
|
2020-07-08 04:31:48 +00:00
|
|
|
patches = [
|
|
|
|
./wallabag-data.patch # exposes $WALLABAG_DATA
|
|
|
|
];
|
2018-01-03 21:06:07 +00:00
|
|
|
|
2019-01-29 01:47:24 +00:00
|
|
|
dontBuild = true;
|
2016-10-22 15:20:49 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
2022-02-14 17:37:26 +00:00
|
|
|
mkdir $out
|
2016-10-22 15:20:49 +00:00
|
|
|
cp -R * $out/
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2022-02-14 17:37:26 +00:00
|
|
|
description = "wallabag is a self hostable application for saving web pages";
|
2016-10-22 15:20:49 +00:00
|
|
|
longDescription = ''
|
2022-02-14 17:37:26 +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.
|
2016-10-22 15:20:49 +00:00
|
|
|
'';
|
|
|
|
license = licenses.mit;
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://wallabag.org";
|
2022-02-14 17:37:26 +00:00
|
|
|
changelog = "https://github.com/wallabag/wallabag/releases/tag/${version}";
|
2018-01-03 21:06:07 +00:00
|
|
|
maintainers = with maintainers; [ schneefux ];
|
2016-10-22 15:20:49 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|