diff options
Diffstat (limited to 'pkgs/webapps/ttrss')
-rw-r--r-- | pkgs/webapps/ttrss/default.nix | 10 | ||||
-rw-r--r-- | pkgs/webapps/ttrss/tt-rss.json | 14 |
2 files changed, 7 insertions, 17 deletions
diff --git a/pkgs/webapps/ttrss/default.nix b/pkgs/webapps/ttrss/default.nix index 38200a1..aeb573c 100644 --- a/pkgs/webapps/ttrss/default.nix +++ b/pkgs/webapps/ttrss/default.nix | |||
@@ -1,6 +1,6 @@ | |||
1 | { ttrss_config ? "/etc/ttrss/config.php" | 1 | { ttrss_config ? "/etc/ttrss/config.php" |
2 | , varDir ? "/var/lib/ttrss" | 2 | , varDir ? "/var/lib/ttrss" |
3 | , stdenv, mylibs, lib, callPackage }: | 3 | , stdenv, lib, callPackage, sources }: |
4 | let | 4 | let |
5 | pluginNames = [ "auth_ldap" "af_feedmod" "feediron" "ff_instagram" "tumblr_gdpr_ua" ]; | 5 | pluginNames = [ "auth_ldap" "af_feedmod" "feediron" "ff_instagram" "tumblr_gdpr_ua" ]; |
6 | allPlugins = lib.attrsets.genAttrs pluginNames | 6 | allPlugins = lib.attrsets.genAttrs pluginNames |
@@ -19,7 +19,11 @@ let | |||
19 | passthru = toPassthru newTtrss (pkg.plugins ++ plugins); | 19 | passthru = toPassthru newTtrss (pkg.plugins ++ plugins); |
20 | }); | 20 | }); |
21 | in newTtrss; | 21 | in newTtrss; |
22 | package = stdenv.mkDerivation (mylibs.fetchedGit ./tt-rss.json // rec { | 22 | package = stdenv.mkDerivation rec { |
23 | pname = "tt-rss"; | ||
24 | version = sources.webapps-ttrss.version; | ||
25 | name = "${pname}-${version}"; | ||
26 | src = sources.webapps-ttrss; | ||
23 | buildPhase = '' | 27 | buildPhase = '' |
24 | rm -rf lock feed-icons cache | 28 | rm -rf lock feed-icons cache |
25 | ln -sf ${varDir}/{lock,feed-icons,cache} . | 29 | ln -sf ${varDir}/{lock,feed-icons,cache} . |
@@ -29,5 +33,5 @@ let | |||
29 | ln -s ${ttrss_config} $out/config.php | 33 | ln -s ${ttrss_config} $out/config.php |
30 | ''; | 34 | ''; |
31 | passthru = toPassthru package []; | 35 | passthru = toPassthru package []; |
32 | }); | 36 | }; |
33 | in package | 37 | in package |
diff --git a/pkgs/webapps/ttrss/tt-rss.json b/pkgs/webapps/ttrss/tt-rss.json deleted file mode 100644 index e2731b0..0000000 --- a/pkgs/webapps/ttrss/tt-rss.json +++ /dev/null | |||
@@ -1,14 +0,0 @@ | |||
1 | { | ||
2 | "tag": "986ca25-master", | ||
3 | "meta": { | ||
4 | "name": "tt-rss", | ||
5 | "url": "https://git.tt-rss.org/fox/tt-rss.git", | ||
6 | "branch": "master" | ||
7 | }, | ||
8 | "git": { | ||
9 | "url": "https://git.tt-rss.org/fox/tt-rss.git", | ||
10 | "rev": "986ca251f995f7754a0470d3e0c44538a545081f", | ||
11 | "sha256": "0xkafkh7l9zazm5d6snlq03kdfxfhkb4c8fdsb32wn8b9bhdzf5s", | ||
12 | "fetchSubmodules": true | ||
13 | } | ||
14 | } | ||