forked from mirrors/nixpkgs
Merge staging-next into staging
This commit is contained in:
commit
c0f4dcb71d
64
doc/builders/packages/eclipse.section.md
Normal file
64
doc/builders/packages/eclipse.section.md
Normal file
|
@ -0,0 +1,64 @@
|
||||||
|
# Eclipse {#sec-eclipse}
|
||||||
|
|
||||||
|
The Nix expressions related to the Eclipse platform and IDE are in [`pkgs/applications/editors/eclipse`](https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/editors/eclipse).
|
||||||
|
|
||||||
|
Nixpkgs provides a number of packages that will install Eclipse in its various forms. These range from the bare-bones Eclipse Platform to the more fully featured Eclipse SDK or Scala-IDE packages and multiple version are often available. It is possible to list available Eclipse packages by issuing the command:
|
||||||
|
|
||||||
|
```ShellSession
|
||||||
|
$ nix-env -f '<nixpkgs>' -qaP -A eclipses --description
|
||||||
|
```
|
||||||
|
|
||||||
|
Once an Eclipse variant is installed it can be run using the `eclipse` command, as expected. From within Eclipse it is then possible to install plugins in the usual manner by either manually specifying an Eclipse update site or by installing the Marketplace Client plugin and using it to discover and install other plugins. This installation method provides an Eclipse installation that closely resemble a manually installed Eclipse.
|
||||||
|
|
||||||
|
If you prefer to install plugins in a more declarative manner then Nixpkgs also offer a number of Eclipse plugins that can be installed in an _Eclipse environment_. This type of environment is created using the function `eclipseWithPlugins` found inside the `nixpkgs.eclipses` attribute set. This function takes as argument `{ eclipse, plugins ? [], jvmArgs ? [] }` where `eclipse` is a one of the Eclipse packages described above, `plugins` is a list of plugin derivations, and `jvmArgs` is a list of arguments given to the JVM running the Eclipse. For example, say you wish to install the latest Eclipse Platform with the popular Eclipse Color Theme plugin and also allow Eclipse to use more RAM. You could then add
|
||||||
|
|
||||||
|
```nix
|
||||||
|
packageOverrides = pkgs: {
|
||||||
|
myEclipse = with pkgs.eclipses; eclipseWithPlugins {
|
||||||
|
eclipse = eclipse-platform;
|
||||||
|
jvmArgs = [ "-Xmx2048m" ];
|
||||||
|
plugins = [ plugins.color-theme ];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
to your Nixpkgs configuration (`~/.config/nixpkgs/config.nix`) and install it by running `nix-env -f '<nixpkgs>' -iA myEclipse` and afterward run Eclipse as usual. It is possible to find out which plugins are available for installation using `eclipseWithPlugins` by running
|
||||||
|
|
||||||
|
```ShellSession
|
||||||
|
$ nix-env -f '<nixpkgs>' -qaP -A eclipses.plugins --description
|
||||||
|
```
|
||||||
|
|
||||||
|
If there is a need to install plugins that are not available in Nixpkgs then it may be possible to define these plugins outside Nixpkgs using the `buildEclipseUpdateSite` and `buildEclipsePlugin` functions found in the `nixpkgs.eclipses.plugins` attribute set. Use the `buildEclipseUpdateSite` function to install a plugin distributed as an Eclipse update site. This function takes `{ name, src }` as argument where `src` indicates the Eclipse update site archive. All Eclipse features and plugins within the downloaded update site will be installed. When an update site archive is not available then the `buildEclipsePlugin` function can be used to install a plugin that consists of a pair of feature and plugin JARs. This function takes an argument `{ name, srcFeature, srcPlugin }` where `srcFeature` and `srcPlugin` are the feature and plugin JARs, respectively.
|
||||||
|
|
||||||
|
Expanding the previous example with two plugins using the above functions we have
|
||||||
|
|
||||||
|
```nix
|
||||||
|
packageOverrides = pkgs: {
|
||||||
|
myEclipse = with pkgs.eclipses; eclipseWithPlugins {
|
||||||
|
eclipse = eclipse-platform;
|
||||||
|
jvmArgs = [ "-Xmx2048m" ];
|
||||||
|
plugins = [
|
||||||
|
plugins.color-theme
|
||||||
|
(plugins.buildEclipsePlugin {
|
||||||
|
name = "myplugin1-1.0";
|
||||||
|
srcFeature = fetchurl {
|
||||||
|
url = "http://…/features/myplugin1.jar";
|
||||||
|
sha256 = "123…";
|
||||||
|
};
|
||||||
|
srcPlugin = fetchurl {
|
||||||
|
url = "http://…/plugins/myplugin1.jar";
|
||||||
|
sha256 = "123…";
|
||||||
|
};
|
||||||
|
});
|
||||||
|
(plugins.buildEclipseUpdateSite {
|
||||||
|
name = "myplugin2-1.0";
|
||||||
|
src = fetchurl {
|
||||||
|
stripRoot = false;
|
||||||
|
url = "http://…/myplugin2.zip";
|
||||||
|
sha256 = "123…";
|
||||||
|
};
|
||||||
|
});
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
```
|
|
@ -1,72 +0,0 @@
|
||||||
<section xmlns="http://docbook.org/ns/docbook"
|
|
||||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
||||||
xml:id="sec-eclipse">
|
|
||||||
<title>Eclipse</title>
|
|
||||||
|
|
||||||
<para>
|
|
||||||
The Nix expressions related to the Eclipse platform and IDE are in <link xlink:href="https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/editors/eclipse"><filename>pkgs/applications/editors/eclipse</filename></link>.
|
|
||||||
</para>
|
|
||||||
|
|
||||||
<para>
|
|
||||||
Nixpkgs provides a number of packages that will install Eclipse in its various forms. These range from the bare-bones Eclipse Platform to the more fully featured Eclipse SDK or Scala-IDE packages and multiple version are often available. It is possible to list available Eclipse packages by issuing the command:
|
|
||||||
<screen>
|
|
||||||
<prompt>$ </prompt>nix-env -f '<nixpkgs>' -qaP -A eclipses --description
|
|
||||||
</screen>
|
|
||||||
Once an Eclipse variant is installed it can be run using the <command>eclipse</command> command, as expected. From within Eclipse it is then possible to install plugins in the usual manner by either manually specifying an Eclipse update site or by installing the Marketplace Client plugin and using it to discover and install other plugins. This installation method provides an Eclipse installation that closely resemble a manually installed Eclipse.
|
|
||||||
</para>
|
|
||||||
|
|
||||||
<para>
|
|
||||||
If you prefer to install plugins in a more declarative manner then Nixpkgs also offer a number of Eclipse plugins that can be installed in an <emphasis>Eclipse environment</emphasis>. This type of environment is created using the function <varname>eclipseWithPlugins</varname> found inside the <varname>nixpkgs.eclipses</varname> attribute set. This function takes as argument <literal>{ eclipse, plugins ? [], jvmArgs ? [] }</literal> where <varname>eclipse</varname> is a one of the Eclipse packages described above, <varname>plugins</varname> is a list of plugin derivations, and <varname>jvmArgs</varname> is a list of arguments given to the JVM running the Eclipse. For example, say you wish to install the latest Eclipse Platform with the popular Eclipse Color Theme plugin and also allow Eclipse to use more RAM. You could then add
|
|
||||||
<screen>
|
|
||||||
packageOverrides = pkgs: {
|
|
||||||
myEclipse = with pkgs.eclipses; eclipseWithPlugins {
|
|
||||||
eclipse = eclipse-platform;
|
|
||||||
jvmArgs = [ "-Xmx2048m" ];
|
|
||||||
plugins = [ plugins.color-theme ];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
</screen>
|
|
||||||
to your Nixpkgs configuration (<filename>~/.config/nixpkgs/config.nix</filename>) and install it by running <command>nix-env -f '<nixpkgs>' -iA myEclipse</command> and afterward run Eclipse as usual. It is possible to find out which plugins are available for installation using <varname>eclipseWithPlugins</varname> by running
|
|
||||||
<screen>
|
|
||||||
<prompt>$ </prompt>nix-env -f '<nixpkgs>' -qaP -A eclipses.plugins --description
|
|
||||||
</screen>
|
|
||||||
</para>
|
|
||||||
|
|
||||||
<para>
|
|
||||||
If there is a need to install plugins that are not available in Nixpkgs then it may be possible to define these plugins outside Nixpkgs using the <varname>buildEclipseUpdateSite</varname> and <varname>buildEclipsePlugin</varname> functions found in the <varname>nixpkgs.eclipses.plugins</varname> attribute set. Use the <varname>buildEclipseUpdateSite</varname> function to install a plugin distributed as an Eclipse update site. This function takes <literal>{ name, src }</literal> as argument where <literal>src</literal> indicates the Eclipse update site archive. All Eclipse features and plugins within the downloaded update site will be installed. When an update site archive is not available then the <varname>buildEclipsePlugin</varname> function can be used to install a plugin that consists of a pair of feature and plugin JARs. This function takes an argument <literal>{ name, srcFeature, srcPlugin }</literal> where <literal>srcFeature</literal> and <literal>srcPlugin</literal> are the feature and plugin JARs, respectively.
|
|
||||||
</para>
|
|
||||||
|
|
||||||
<para>
|
|
||||||
Expanding the previous example with two plugins using the above functions we have
|
|
||||||
<screen>
|
|
||||||
packageOverrides = pkgs: {
|
|
||||||
myEclipse = with pkgs.eclipses; eclipseWithPlugins {
|
|
||||||
eclipse = eclipse-platform;
|
|
||||||
jvmArgs = [ "-Xmx2048m" ];
|
|
||||||
plugins = [
|
|
||||||
plugins.color-theme
|
|
||||||
(plugins.buildEclipsePlugin {
|
|
||||||
name = "myplugin1-1.0";
|
|
||||||
srcFeature = fetchurl {
|
|
||||||
url = "http://…/features/myplugin1.jar";
|
|
||||||
sha256 = "123…";
|
|
||||||
};
|
|
||||||
srcPlugin = fetchurl {
|
|
||||||
url = "http://…/plugins/myplugin1.jar";
|
|
||||||
sha256 = "123…";
|
|
||||||
};
|
|
||||||
});
|
|
||||||
(plugins.buildEclipseUpdateSite {
|
|
||||||
name = "myplugin2-1.0";
|
|
||||||
src = fetchurl {
|
|
||||||
stripRoot = false;
|
|
||||||
url = "http://…/myplugin2.zip";
|
|
||||||
sha256 = "123…";
|
|
||||||
};
|
|
||||||
});
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
</screen>
|
|
||||||
</para>
|
|
||||||
</section>
|
|
|
@ -7,7 +7,7 @@
|
||||||
</para>
|
</para>
|
||||||
<xi:include href="citrix.xml" />
|
<xi:include href="citrix.xml" />
|
||||||
<xi:include href="dlib.xml" />
|
<xi:include href="dlib.xml" />
|
||||||
<xi:include href="eclipse.xml" />
|
<xi:include href="eclipse.section.xml" />
|
||||||
<xi:include href="elm.section.xml" />
|
<xi:include href="elm.section.xml" />
|
||||||
<xi:include href="emacs.section.xml" />
|
<xi:include href="emacs.section.xml" />
|
||||||
<xi:include href="firefox.section.xml" />
|
<xi:include href="firefox.section.xml" />
|
||||||
|
|
|
@ -450,7 +450,7 @@ in {
|
||||||
else { PORT = toString(cfg.streamingPort); }
|
else { PORT = toString(cfg.streamingPort); }
|
||||||
);
|
);
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
ExecStart = "${pkgs.nodejs-slim}/bin/node streaming";
|
ExecStart = "${cfg.package}/run-streaming.sh";
|
||||||
Restart = "always";
|
Restart = "always";
|
||||||
RestartSec = 20;
|
RestartSec = 20;
|
||||||
EnvironmentFile = "/var/lib/mastodon/.secrets_env";
|
EnvironmentFile = "/var/lib/mastodon/.secrets_env";
|
||||||
|
|
|
@ -5,14 +5,14 @@
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "tev";
|
pname = "tev";
|
||||||
version = "1.16";
|
version = "1.17";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "Tom94";
|
owner = "Tom94";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
fetchSubmodules = true;
|
fetchSubmodules = true;
|
||||||
sha256 = "0fn5j9klzrjvz3bq8p9yp9nqikn2fr7bp98c1sxwpwwaadkqy9xf";
|
sha256 = "12wsy2zdfhg0ygkpvz58rk86qiy259fi9grb0jxiz8zcyd6x1ngk";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake wrapGAppsHook ];
|
nativeBuildInputs = [ cmake wrapGAppsHook ];
|
||||||
|
@ -26,6 +26,10 @@ stdenv.mkDerivation rec {
|
||||||
--replace "/usr/" "''${out}/"
|
--replace "/usr/" "''${out}/"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
cmakeFlags = [
|
||||||
|
"-DTEV_DEPLOY=1" # Only relevant not to append "dev" to the version
|
||||||
|
];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
wrapProgram $out/bin/tev \
|
wrapProgram $out/bin/tev \
|
||||||
"''${gappsWrapperArgs[@]}" \
|
"''${gappsWrapperArgs[@]}" \
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{ callPackage, libsForQt5 }:
|
{ callPackage, libsForQt5 }:
|
||||||
|
|
||||||
let
|
let
|
||||||
stableVersion = "2.2.17";
|
stableVersion = "2.2.18";
|
||||||
previewVersion = stableVersion;
|
previewVersion = stableVersion;
|
||||||
addVersion = args:
|
addVersion = args:
|
||||||
let version = if args.stable then stableVersion else previewVersion;
|
let version = if args.stable then stableVersion else previewVersion;
|
||||||
|
@ -26,8 +26,8 @@ let
|
||||||
};
|
};
|
||||||
mkGui = args: libsForQt5.callPackage (import ./gui.nix (addVersion args // extraArgs)) { };
|
mkGui = args: libsForQt5.callPackage (import ./gui.nix (addVersion args // extraArgs)) { };
|
||||||
mkServer = args: callPackage (import ./server.nix (addVersion args // extraArgs)) { };
|
mkServer = args: callPackage (import ./server.nix (addVersion args // extraArgs)) { };
|
||||||
guiSrcHash = "0dfyxr983w6lmbcvaf32bnm9cz7y7fp9jfaz8zxp1dvr6dr06cmv";
|
guiSrcHash = "118z6asl6hsv0777rld4plnrwzkbkh3gb9lg9i6bqrjs93p028fw";
|
||||||
serverSrcHash = "0m5ajd2zkafx89hvp202m351h1dygfc3jssl3m7nd7r42csyi2vj";
|
serverSrcHash = "0gd37zpvibhlvqqpflpwlrgg8g9rpbxwi9w9fsym00mfwf7sdd3b";
|
||||||
in {
|
in {
|
||||||
guiStable = mkGui {
|
guiStable = mkGui {
|
||||||
stable = true;
|
stable = true;
|
||||||
|
|
|
@ -2,12 +2,12 @@
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "signal-cli";
|
pname = "signal-cli";
|
||||||
version = "0.7.4";
|
version = "0.8.0";
|
||||||
|
|
||||||
# Building from source would be preferred, but is much more involved.
|
# Building from source would be preferred, but is much more involved.
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/AsamK/signal-cli/releases/download/v${version}/signal-cli-${version}.tar.gz";
|
url = "https://github.com/AsamK/signal-cli/releases/download/v${version}/signal-cli-${version}.tar.gz";
|
||||||
sha256 = "18dv2944nsryl6372jqgb52z3s1grvgfc5sb1b1rgn0y84g8g46n";
|
sha256 = "sha256-0YzeGtdsCUG8N7Av/zzHoC9KKu1rqjQDToaOEXzuoJc=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = lib.optionals stdenv.isLinux [ libmatthew_java dbus dbus_java ];
|
buildInputs = lib.optionals stdenv.isLinux [ libmatthew_java dbus dbus_java ];
|
||||||
|
|
|
@ -533,6 +533,14 @@ rec {
|
||||||
propagatedBuildInputs = [ ppxlib ];
|
propagatedBuildInputs = [ ppxlib ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
ppx_log = janePackage {
|
||||||
|
pname = "ppx_log";
|
||||||
|
hash = "10hnr5lpww3fw0bnidzngalbgy0j1wvz1g5ki9c9h558pnpvsazr";
|
||||||
|
minimumOCamlVersion = "4.08.0";
|
||||||
|
meta.description = "Ppx_sexp_message-like extension nodes for lazily rendering log messages";
|
||||||
|
propagatedBuildInputs = [ async_unix ppx_jane sexplib ];
|
||||||
|
};
|
||||||
|
|
||||||
ppx_module_timer = janePackage {
|
ppx_module_timer = janePackage {
|
||||||
pname = "ppx_module_timer";
|
pname = "ppx_module_timer";
|
||||||
hash = "163q1rpblwv82fxwyf0p4j9zpsj0jzvkfmzb03r0l49gqhn89mp6";
|
hash = "163q1rpblwv82fxwyf0p4j9zpsj0jzvkfmzb03r0l49gqhn89mp6";
|
||||||
|
|
|
@ -6,6 +6,8 @@ buildDunePackage rec {
|
||||||
pname = "ounit2";
|
pname = "ounit2";
|
||||||
version = "2.2.4";
|
version = "2.2.4";
|
||||||
|
|
||||||
|
useDune2 = lib.versionAtLeast ocaml.version "4.08";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/gildor478/ounit/releases/download/v${version}/ounit-v${version}.tbz";
|
url = "https://github.com/gildor478/ounit/releases/download/v${version}/ounit-v${version}.tbz";
|
||||||
sha256 = "0i9kiqbf2dp12c4qcvbn4abdpdp6h4g5z54ycsh0q8jpv6jnkh5m";
|
sha256 = "0i9kiqbf2dp12c4qcvbn4abdpdp6h4g5z54ycsh0q8jpv6jnkh5m";
|
||||||
|
|
|
@ -1,18 +1,39 @@
|
||||||
{ lib, fetchFromGitHub, buildDunePackage }:
|
{ lib, fetchurl, fetchpatch, buildDunePackage, qcheck }:
|
||||||
|
|
||||||
buildDunePackage rec {
|
buildDunePackage rec {
|
||||||
pname = "stdint";
|
pname = "stdint";
|
||||||
version = "0.6.0";
|
version = "0.7.0";
|
||||||
|
|
||||||
minimumOCamlVersion = "4.07";
|
useDune2 = true;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
minimumOCamlVersion = "4.03";
|
||||||
owner = "andrenth";
|
|
||||||
repo = "ocaml-stdint";
|
src = fetchurl {
|
||||||
rev = version;
|
url = "https://github.com/andrenth/ocaml-stdint/releases/download/${version}/stdint-${version}.tbz";
|
||||||
sha256 = "19ccxs0vij81vyc9nqc9kbr154ralb9dgc2y2nr71a5xkx6xfn0y";
|
sha256 = "4fcc66aef58e2b96e7af3bbca9d910aa239e045ba5fb2400aaef67d0041252dc";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# fix test bug, remove at next release
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://github.com/andrenth/ocaml-stdint/commit/fc64293f99f597cdfd4470954da6fb323988e2af.patch";
|
||||||
|
sha256 = "0nxck14vfjfzldsf8cdj2jg1cvhnyh37hqnrcxbdkqmpx4rxkbxs";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
# disable remaining broken tests, see
|
||||||
|
# https://github.com/andrenth/ocaml-stdint/issues/59
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace tests/stdint_test.ml \
|
||||||
|
--replace 'test "An integer should perform left-shifts correctly"' \
|
||||||
|
'skip "An integer should perform left-shifts correctly"' \
|
||||||
|
--replace 'test "Logical shifts must not sign-extend"' \
|
||||||
|
'skip "Logical shifts must not sign-extend"'
|
||||||
|
'';
|
||||||
|
|
||||||
|
doCheck = true;
|
||||||
|
checkInputs = [ qcheck ];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Various signed and unsigned integers for OCaml";
|
description = "Various signed and unsigned integers for OCaml";
|
||||||
homepage = "https://github.com/andrenth/ocaml-stdint";
|
homepage = "https://github.com/andrenth/ocaml-stdint";
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
, coreutils, git, gnused, nix, nixfmt }:
|
, coreutils, git, gnused, nix, nixfmt }:
|
||||||
|
|
||||||
let
|
let
|
||||||
version = "2.0.11";
|
version = "2.0.12";
|
||||||
|
|
||||||
zshCompletion = fetchurl {
|
zshCompletion = fetchurl {
|
||||||
url =
|
url =
|
||||||
|
@ -19,7 +19,7 @@ in stdenv.mkDerivation rec {
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url =
|
url =
|
||||||
"https://github.com/coursier/coursier/releases/download/v${version}/coursier";
|
"https://github.com/coursier/coursier/releases/download/v${version}/coursier";
|
||||||
sha256 = "sha256-jmKJPBPzO8DiXuJoHWibinkaAzneXdSK85SQfJ2nWhg=";
|
sha256 = "sha256-SLl8pXGl9612FDEOy1vz/mXTb3+7YAJ/wq/njBL+V+I=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{ lib, stdenv, nodejs-slim, mkYarnPackage, fetchFromGitHub, bundlerEnv
|
{ lib, stdenv, nodejs-slim, mkYarnPackage, fetchFromGitHub, bundlerEnv
|
||||||
, yarn, callPackage, imagemagick, ffmpeg, file, ruby_2_7
|
, yarn, callPackage, imagemagick, ffmpeg, file, ruby_2_7, writeShellScript
|
||||||
|
|
||||||
# Allow building a fork or custom version of Mastodon:
|
# Allow building a fork or custom version of Mastodon:
|
||||||
, pname ? "mastodon"
|
, pname ? "mastodon"
|
||||||
|
@ -96,10 +96,18 @@ stdenv.mkDerivation rec {
|
||||||
ln -s /var/log/mastodon log
|
ln -s /var/log/mastodon log
|
||||||
ln -s /tmp tmp
|
ln -s /tmp tmp
|
||||||
'';
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = [ imagemagick ffmpeg file mastodon-gems.wrappedRuby ];
|
propagatedBuildInputs = [ imagemagick ffmpeg file mastodon-gems.wrappedRuby ];
|
||||||
installPhase = ''
|
|
||||||
|
installPhase = let
|
||||||
|
run-streaming = writeShellScript "run-streaming.sh" ''
|
||||||
|
# NixOS helper script to consistently use the same NodeJS version the package was built with.
|
||||||
|
${nodejs-slim}/bin/node ./streaming
|
||||||
|
'';
|
||||||
|
in ''
|
||||||
mkdir -p $out
|
mkdir -p $out
|
||||||
cp -r * $out/
|
cp -r * $out/
|
||||||
|
ln -s ${run-streaming} $out/run-streaming.sh
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
|
@ -34,16 +34,16 @@ let
|
||||||
|
|
||||||
in rustPlatform.buildRustPackage rec {
|
in rustPlatform.buildRustPackage rec {
|
||||||
pname = "Ajour";
|
pname = "Ajour";
|
||||||
version = "0.7.0";
|
version = "0.7.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "casperstorm";
|
owner = "casperstorm";
|
||||||
repo = "ajour";
|
repo = "ajour";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "1lwwj16q24k3d3vaj64zkai4cb15hxp6bzicp004q5az4gbriwih";
|
sha256 = "sha256-ZN62RIQEokailZRBQUq8nX4Eq/b9GGPmxln8j5KGW+8=";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoSha256 = "17j6v796ahfn07yjj9xd9kygy0sllz93ac4gky8w0hcixdwjp3i5";
|
cargoSha256 = "sha256-tcC8GfEeHaM7XcAXw56/wdygfGPj4vOgn5sZd0KuGkA=";
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
autoPatchelfHook
|
autoPatchelfHook
|
||||||
|
|
|
@ -17926,7 +17926,11 @@ in
|
||||||
|
|
||||||
mailman-web = with python3.pkgs; toPythonApplication mailman-web;
|
mailman-web = with python3.pkgs; toPythonApplication mailman-web;
|
||||||
|
|
||||||
mastodon = callPackage ../servers/mastodon { };
|
mastodon = callPackage ../servers/mastodon {
|
||||||
|
# With nodejs v14 the streaming endpoint breaks. Need migrate to uWebSockets.js or similar.
|
||||||
|
# https://github.com/tootsuite/mastodon/issues/15184
|
||||||
|
nodejs-slim = nodejs-slim-12_x;
|
||||||
|
};
|
||||||
|
|
||||||
mattermost = callPackage ../servers/mattermost { };
|
mattermost = callPackage ../servers/mattermost { };
|
||||||
matterircd = callPackage ../servers/mattermost/matterircd.nix { };
|
matterircd = callPackage ../servers/mattermost/matterircd.nix { };
|
||||||
|
|
Loading…
Reference in a new issue