Merge pull request #160507 from mweinelt/wallabag
This commit is contained in:
commit
2d085ca93c
@ -1,18 +1,28 @@
|
|||||||
{ lib, stdenv, fetchurl }:
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, fetchurl
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
# 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 or unexpected
|
||||||
|
# error will occur.
|
||||||
|
|
||||||
|
let
|
||||||
pname = "wallabag";
|
pname = "wallabag";
|
||||||
version = "2.4.2";
|
version = "2.4.3";
|
||||||
|
in
|
||||||
# remember to rm -r var/cache/* after a rebuild or unexpected errors will occur
|
stdenv.mkDerivation {
|
||||||
|
inherit pname version;
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://static.wallabag.org/releases/wallabag-release-${version}.tar.gz";
|
url = "https://static.wallabag.org/releases/wallabag-release-${version}.tar.gz";
|
||||||
sha256 = "1n39flqqqjih0lc86vxdzbp44x4rqj5292if2fsa8y1xxlvyqmns";
|
hash = "sha256-u6TflAzxoaxjLhNMv5ua+NPBv4kxGycgz2QXnhtDHTo=";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = [ "out" ];
|
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
./wallabag-data.patch # exposes $WALLABAG_DATA
|
./wallabag-data.patch # exposes $WALLABAG_DATA
|
||||||
];
|
];
|
||||||
@ -20,22 +30,21 @@ stdenv.mkDerivation rec {
|
|||||||
dontBuild = true;
|
dontBuild = true;
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir $out/
|
mkdir $out
|
||||||
cp -R * $out/
|
cp -R * $out/
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Web page archiver";
|
description = "wallabag is a self hostable application for saving web pages";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
wallabag is a self hostable application for saving web pages.
|
wallabag is a self-hostable PHP application allowing you to not
|
||||||
|
miss any content anymore. Click, save and read it when you can.
|
||||||
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.
|
It extracts content so that you can read it when you have time.
|
||||||
After a package upgrade, empty the `var/cache` folder.
|
|
||||||
'';
|
'';
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
homepage = "http://wallabag.org";
|
homepage = "http://wallabag.org";
|
||||||
|
changelog = "https://github.com/wallabag/wallabag/releases/tag/${version}";
|
||||||
maintainers = with maintainers; [ schneefux ];
|
maintainers = with maintainers; [ schneefux ];
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user