diff options
Diffstat (limited to 'pkgs/webapps')
-rw-r--r-- | pkgs/webapps/default.nix | 2 | ||||
-rw-r--r-- | pkgs/webapps/mediagoblin/default.nix | 13 | ||||
-rw-r--r-- | pkgs/webapps/mediagoblin/mediagoblin.json | 14 | ||||
-rw-r--r-- | pkgs/webapps/surfer/Surfer.json | 14 | ||||
-rw-r--r-- | pkgs/webapps/surfer/default.nix | 4 | ||||
-rw-r--r-- | pkgs/webapps/surfer/node-packages.nix | 4 | ||||
-rw-r--r-- | pkgs/webapps/ttrss/default.nix | 10 | ||||
-rw-r--r-- | pkgs/webapps/ttrss/tt-rss.json | 14 |
8 files changed, 21 insertions, 54 deletions
diff --git a/pkgs/webapps/default.nix b/pkgs/webapps/default.nix index 33fd730..68604f5 100644 --- a/pkgs/webapps/default.nix +++ b/pkgs/webapps/default.nix | |||
@@ -21,7 +21,7 @@ rec { | |||
21 | spip = callPackage ./spip {}; | 21 | spip = callPackage ./spip {}; |
22 | surfer = callPackage ./surfer { inherit mylibs; }; | 22 | surfer = callPackage ./surfer { inherit mylibs; }; |
23 | taskwarrior-web = callPackage ./taskwarrior-web { inherit mylibs; }; | 23 | taskwarrior-web = callPackage ./taskwarrior-web { inherit mylibs; }; |
24 | ttrss = callPackage ./ttrss { inherit mylibs; }; | 24 | ttrss = callPackage ./ttrss {}; |
25 | wallabag = callPackage ./wallabag { inherit composerEnv; }; | 25 | wallabag = callPackage ./wallabag { inherit composerEnv; }; |
26 | yourls = callPackage ./yourls { inherit mylibs; }; | 26 | yourls = callPackage ./yourls { inherit mylibs; }; |
27 | } | 27 | } |
diff --git a/pkgs/webapps/mediagoblin/default.nix b/pkgs/webapps/mediagoblin/default.nix index d348ce1..29c1981 100644 --- a/pkgs/webapps/mediagoblin/default.nix +++ b/pkgs/webapps/mediagoblin/default.nix | |||
@@ -1,4 +1,4 @@ | |||
1 | { makeWrapper, stdenv, writeScript, fetchurl, buildBowerComponents, mylibs, which, python36, gst_all_1, automake, autoconf, nodejs, nodePackages, lib, callPackage }: | 1 | { makeWrapper, stdenv, writeScript, fetchurl, buildBowerComponents, mylibs, which, python36, gst_all_1, automake, autoconf, nodejs, nodePackages, lib, callPackage, sources }: |
2 | let | 2 | let |
3 | overridePython = let | 3 | overridePython = let |
4 | packageOverrides = self: super: { | 4 | packageOverrides = self: super: { |
@@ -108,10 +108,11 @@ let | |||
108 | load_entry_point('mediagoblin', 'console_scripts', 'gmg')() | 108 | load_entry_point('mediagoblin', 'console_scripts', 'gmg')() |
109 | ) | 109 | ) |
110 | ''; | 110 | ''; |
111 | mediagoblinSrc = sources.webapps-mediagoblin; | ||
111 | bowerComponents = buildBowerComponents { | 112 | bowerComponents = buildBowerComponents { |
112 | name = "mediagoblin-bower-components"; | 113 | name = "mediagoblin-bower-components"; |
113 | generated = ./bower-packages.nix; | 114 | generated = ./bower-packages.nix; |
114 | src = (mylibs.fetchedGit ./mediagoblin.json).src; | 115 | src = mediagoblinSrc; |
115 | }; | 116 | }; |
116 | pluginNames = [ "basicsearch" ]; | 117 | pluginNames = [ "basicsearch" ]; |
117 | allPlugins = lib.attrsets.genAttrs pluginNames | 118 | allPlugins = lib.attrsets.genAttrs pluginNames |
@@ -129,7 +130,11 @@ let | |||
129 | passthru = toPassthru newMediagoblin; | 130 | passthru = toPassthru newMediagoblin; |
130 | }); | 131 | }); |
131 | in newMediagoblin; | 132 | in newMediagoblin; |
132 | package = stdenv.mkDerivation (mylibs.fetchedGit ./mediagoblin.json // rec { | 133 | package = stdenv.mkDerivation rec { |
134 | pname = "mediagoblin"; | ||
135 | name = "${pname}-${version}"; | ||
136 | version = mediagoblinSrc.version; | ||
137 | src = mediagoblinSrc; | ||
133 | preConfigure = '' | 138 | preConfigure = '' |
134 | # ./bootstrap.sh | 139 | # ./bootstrap.sh |
135 | aclocal -I m4 --install | 140 | aclocal -I m4 --install |
@@ -178,5 +183,5 @@ let | |||
178 | buildInputs = [ makeWrapper automake autoconf which nodePackages.bower nodejs python ]; | 183 | buildInputs = [ makeWrapper automake autoconf which nodePackages.bower nodejs python ]; |
179 | propagatedBuildInputs = with gst_all_1; [ python gst-libav gst-plugins-good gst-plugins-bad gst-plugins-ugly gstreamer ]; | 184 | propagatedBuildInputs = with gst_all_1; [ python gst-libav gst-plugins-good gst-plugins-bad gst-plugins-ugly gstreamer ]; |
180 | passthru = toPassthru package; | 185 | passthru = toPassthru package; |
181 | }); | 186 | }; |
182 | in package | 187 | in package |
diff --git a/pkgs/webapps/mediagoblin/mediagoblin.json b/pkgs/webapps/mediagoblin/mediagoblin.json deleted file mode 100644 index 7ea72d1..0000000 --- a/pkgs/webapps/mediagoblin/mediagoblin.json +++ /dev/null | |||
@@ -1,14 +0,0 @@ | |||
1 | { | ||
2 | "tag": "cd465eb-stable", | ||
3 | "meta": { | ||
4 | "name": "mediagoblin", | ||
5 | "url": "git://git.savannah.gnu.org/mediagoblin.git", | ||
6 | "branch": "stable" | ||
7 | }, | ||
8 | "git": { | ||
9 | "url": "git://git.savannah.gnu.org/mediagoblin.git", | ||
10 | "rev": "cd465ebfec837a75a44c4ebd727dffe2fff6d850", | ||
11 | "sha256": "1yz4i4i97z3rxl534a6psaybyjbyp5nnc52v3nvbpzc4pd2s69mx", | ||
12 | "fetchSubmodules": true | ||
13 | } | ||
14 | } | ||
diff --git a/pkgs/webapps/surfer/Surfer.json b/pkgs/webapps/surfer/Surfer.json deleted file mode 100644 index 30a63ba..0000000 --- a/pkgs/webapps/surfer/Surfer.json +++ /dev/null | |||
@@ -1,14 +0,0 @@ | |||
1 | { | ||
2 | "tag": "4761773-master", | ||
3 | "meta": { | ||
4 | "name": "Surfer", | ||
5 | "url": "https://git.immae.eu/perso/Immae/Projets/Nodejs/Surfer.git", | ||
6 | "branch": "master" | ||
7 | }, | ||
8 | "git": { | ||
9 | "url": "https://git.immae.eu/perso/Immae/Projets/Nodejs/Surfer.git", | ||
10 | "rev": "476177380452c9c7c5b1624805feedc824c5995e", | ||
11 | "sha256": "0ibg7hbilvlq7dw4ayawdcjhfl2nkgzfc4ra6n73y7hjasxrnm07", | ||
12 | "fetchSubmodules": true | ||
13 | } | ||
14 | } | ||
diff --git a/pkgs/webapps/surfer/default.nix b/pkgs/webapps/surfer/default.nix index cf2a7a3..9a04da5 100644 --- a/pkgs/webapps/surfer/default.nix +++ b/pkgs/webapps/surfer/default.nix | |||
@@ -1,8 +1,8 @@ | |||
1 | { callPackage, mylibs }: | 1 | { callPackage, mylibs, sources }: |
2 | # built using node2nix -l package-lock.json | 2 | # built using node2nix -l package-lock.json |
3 | # and changing "./." to "src" | 3 | # and changing "./." to "src" |
4 | (callPackage ./node-packages.nix { | 4 | (callPackage ./node-packages.nix { |
5 | inherit (mylibs) fetchedGit; | 5 | src = sources.webapps-surfer; |
6 | nodeEnv = callPackage mylibs.nodeEnv {}; | 6 | nodeEnv = callPackage mylibs.nodeEnv {}; |
7 | }).package.overrideAttrs(old: { | 7 | }).package.overrideAttrs(old: { |
8 | postInstall = '' | 8 | postInstall = '' |
diff --git a/pkgs/webapps/surfer/node-packages.nix b/pkgs/webapps/surfer/node-packages.nix index e1b1a8a..a1fb5ba 100644 --- a/pkgs/webapps/surfer/node-packages.nix +++ b/pkgs/webapps/surfer/node-packages.nix | |||
@@ -1,6 +1,6 @@ | |||
1 | # This file has been generated by node2nix 1.8.0. Do not edit! | 1 | # This file has been generated by node2nix 1.8.0. Do not edit! |
2 | 2 | ||
3 | {nodeEnv, fetchedGit, fetchurl, fetchgit, globalBuildInputs ? []}: | 3 | {nodeEnv, src, fetchurl, fetchgit, globalBuildInputs ? []}: |
4 | 4 | ||
5 | let | 5 | let |
6 | sources = { | 6 | sources = { |
@@ -2061,7 +2061,7 @@ let | |||
2061 | name = "cloudron-surfer"; | 2061 | name = "cloudron-surfer"; |
2062 | packageName = "cloudron-surfer"; | 2062 | packageName = "cloudron-surfer"; |
2063 | version = "5.10.0"; | 2063 | version = "5.10.0"; |
2064 | src = (fetchedGit ./Surfer.json).src; | 2064 | inherit src; |
2065 | dependencies = [ | 2065 | dependencies = [ |
2066 | (sources."accepts-1.3.4" // { | 2066 | (sources."accepts-1.3.4" // { |
2067 | dependencies = [ | 2067 | dependencies = [ |
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 | } | ||