diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-12-24 13:33:29 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-12-24 13:34:11 +0100 |
commit | 3fe04d3890bcdbdd52522f2bd63fb00eece6994b (patch) | |
tree | c4d0905df1e6336031bc48228d3ef3ce0f7089e8 | |
parent | a98e2320b1df0dc33dc1389712dece0ab8b8975b (diff) | |
download | Nix-3fe04d3890bcdbdd52522f2bd63fb00eece6994b.tar.gz Nix-3fe04d3890bcdbdd52522f2bd63fb00eece6994b.tar.zst Nix-3fe04d3890bcdbdd52522f2bd63fb00eece6994b.zip |
Add mastodon
-rw-r--r-- | default.nix | 21 | ||||
-rw-r--r-- | fetched/mastodon.json | 15 |
2 files changed, 36 insertions, 0 deletions
diff --git a/default.nix b/default.nix index 61b5d25..9f14e5a 100644 --- a/default.nix +++ b/default.nix | |||
@@ -257,6 +257,26 @@ let | |||
257 | # cp docs/nagnu.8 $out/share/man/man8 | 257 | # cp docs/nagnu.8 $out/share/man/man8 |
258 | # ''; | 258 | # ''; |
259 | # }); | 259 | # }); |
260 | |||
261 | mastodon = stdenv.mkDerivation (fetchedGithub ./fetched/mastodon.json // rec { | ||
262 | buildPhase = '' | ||
263 | export GIT_SSL_CAINFO=/etc/ssl/certs/ca-certificates.crt | ||
264 | export SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt | ||
265 | |||
266 | bundle install --deployment --without development test | ||
267 | yarn install --pure-lockfile | ||
268 | ''; | ||
269 | installPhase = '' | ||
270 | cp -a . $out | ||
271 | ''; | ||
272 | propagatedBuildInputs = [ | ||
273 | zlib icu libchardet git bundler yarn | ||
274 | protobuf protobufc libidn libpqxx nodejs | ||
275 | imagemagick ffmpeg libxml2 libxslt pkgconfig | ||
276 | autoconf bison libyaml readline ncurses libffi gdbm | ||
277 | jemalloc which postgresql python3 | ||
278 | ]; | ||
279 | }); | ||
260 | # https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh | 280 | # https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh |
261 | # https://github.com/NixOS/nixpkgs/blob/master/doc/languages-frameworks | 281 | # https://github.com/NixOS/nixpkgs/blob/master/doc/languages-frameworks |
262 | in | 282 | in |
@@ -296,6 +316,7 @@ in | |||
296 | inherit keybase; | 316 | inherit keybase; |
297 | inherit bogofilter; | 317 | inherit bogofilter; |
298 | inherit mtr; | 318 | inherit mtr; |
319 | #inherit mastodon; | ||
299 | # todo: lx* ?, unrar, unzip, zeromq? | 320 | # todo: lx* ?, unrar, unzip, zeromq? |
300 | #inherit nextcloud-client; | 321 | #inherit nextcloud-client; |
301 | #inherit nixos; | 322 | #inherit nixos; |
diff --git a/fetched/mastodon.json b/fetched/mastodon.json new file mode 100644 index 0000000..11e59fa --- /dev/null +++ b/fetched/mastodon.json | |||
@@ -0,0 +1,15 @@ | |||
1 | { | ||
2 | "tag": "v2.6.5", | ||
3 | "meta": { | ||
4 | "name": "mastodon", | ||
5 | "url": "https://github.com/tootsuite/mastodon", | ||
6 | "branch": "refs/tags/v2.6.5" | ||
7 | }, | ||
8 | "github": { | ||
9 | "owner": "tootsuite", | ||
10 | "repo": "mastodon", | ||
11 | "rev": "887f9de6dc12ef405f92b94eeaa775df74ebb1ef", | ||
12 | "sha256": "0bszv3cnlqghwpkmh7qzak7wlanlp0dp5k4wxnl3acxzj72p53v5", | ||
13 | "fetchSubmodules": true | ||
14 | } | ||
15 | } | ||