Merge staging-next into staging
This commit is contained in:
commit
c1ff998022
@ -74,8 +74,20 @@
|
|||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
<listitem>
|
<listitem>
|
||||||
<literallayout>Pulseaudio has been upgraded to version 15.0 and now optionally <link xlink:href="https://www.freedesktop.org/wiki/Software/PulseAudio/Notes/15.0/#supportforldacandaptxbluetoothcodecsplussbcxqsbcwithhigher-qualityparameters">supports additional Bluetooth audio codecs</link> like aptX or LDAC, with codec switching support being available in <literal>pavucontrol</literal>. This feature is disabled by default but can be enabled by using <literal>hardware.pulseaudio.package = pkgs.pulseaudioFull;</literal>.
|
<para>
|
||||||
Existing 3rd party modules that provided similar functionality, like <literal>pulseaudio-modules-bt</literal> or <literal>pulseaudio-hsphfpd</literal> are deprecated and have been removed.</literallayout>
|
Pulseaudio has been upgraded to version 15.0 and now
|
||||||
|
optionally
|
||||||
|
<link xlink:href="https://www.freedesktop.org/wiki/Software/PulseAudio/Notes/15.0/#supportforldacandaptxbluetoothcodecsplussbcxqsbcwithhigher-qualityparameters">supports
|
||||||
|
additional Bluetooth audio codecs</link> like aptX or LDAC,
|
||||||
|
with codec switching support being available in
|
||||||
|
<literal>pavucontrol</literal>. This feature is disabled by
|
||||||
|
default but can be enabled by using
|
||||||
|
<literal>hardware.pulseaudio.package = pkgs.pulseaudioFull;</literal>.
|
||||||
|
Existing 3rd party modules that provided similar
|
||||||
|
functionality, like <literal>pulseaudio-modules-bt</literal>
|
||||||
|
or <literal>pulseaudio-hsphfpd</literal> are deprecated and
|
||||||
|
have been removed.
|
||||||
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>
|
<para>
|
||||||
|
@ -27,7 +27,7 @@ In addition to numerous new and upgraded packages, this release has the followin
|
|||||||
|
|
||||||
- Systemd has been upgraded to the version 250.
|
- Systemd has been upgraded to the version 250.
|
||||||
|
|
||||||
- Pulseaudio has been upgraded to version 15.0 and now optionally [supports additional Bluetooth audio codecs](https://www.freedesktop.org/wiki/Software/PulseAudio/Notes/15.0/#supportforldacandaptxbluetoothcodecsplussbcxqsbcwithhigher-qualityparameters) like aptX or LDAC, with codec switching support being available in `pavucontrol`. This feature is disabled by default but can be enabled by using `hardware.pulseaudio.package = pkgs.pulseaudioFull;`.
|
- Pulseaudio has been upgraded to version 15.0 and now optionally [supports additional Bluetooth audio codecs](https://www.freedesktop.org/wiki/Software/PulseAudio/Notes/15.0/#supportforldacandaptxbluetoothcodecsplussbcxqsbcwithhigher-qualityparameters) like aptX or LDAC, with codec switching support being available in `pavucontrol`. This feature is disabled by default but can be enabled by using `hardware.pulseaudio.package = pkgs.pulseaudioFull;`.
|
||||||
Existing 3rd party modules that provided similar functionality, like `pulseaudio-modules-bt` or `pulseaudio-hsphfpd` are deprecated and have been removed.
|
Existing 3rd party modules that provided similar functionality, like `pulseaudio-modules-bt` or `pulseaudio-hsphfpd` are deprecated and have been removed.
|
||||||
|
|
||||||
- The new [`postgresqlTestHook`](https://nixos.org/manual/nixpkgs/stable/#sec-postgresqlTestHook) runs a PostgreSQL server for the duration of package checks.
|
- The new [`postgresqlTestHook`](https://nixos.org/manual/nixpkgs/stable/#sec-postgresqlTestHook) runs a PostgreSQL server for the duration of package checks.
|
||||||
|
@ -1,20 +1,19 @@
|
|||||||
{ angstrom
|
{ angstrom
|
||||||
, buildDunePackage
|
, buildDunePackage
|
||||||
, fetchzip
|
, fetchurl
|
||||||
, findlib
|
, findlib
|
||||||
, lib
|
, lib
|
||||||
, menhir
|
|
||||||
, ocaml
|
, ocaml
|
||||||
, re
|
, re
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildDunePackage rec {
|
buildDunePackage rec {
|
||||||
pname = "uuuu";
|
pname = "uuuu";
|
||||||
version = "0.2.0";
|
version = "0.3.0";
|
||||||
|
|
||||||
src = fetchzip {
|
src = fetchurl {
|
||||||
url = "https://github.com/mirage/uuuu/releases/download/v${version}/uuuu-v${version}.tbz";
|
url = "https://github.com/mirage/uuuu/releases/download/v${version}/uuuu-${version}.tbz";
|
||||||
sha256 = "0457qcxvakbbc56frsh8a5v4y4l0raj9p4zz7jx3brn9255j1mw3";
|
sha256 = "sha256:19n39yc7spgzpk9i70r0nhkwsb0bfbvbgpf8d863p0a3wgryhzkb";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
@ -22,9 +21,7 @@ buildDunePackage rec {
|
|||||||
'ocaml} -I ${findlib}/lib/ocaml/${ocaml.version}/site-lib '
|
'ocaml} -I ${findlib}/lib/ocaml/${ocaml.version}/site-lib '
|
||||||
'';
|
'';
|
||||||
|
|
||||||
useDune2 = true;
|
nativeBuildInputs = [ findlib ];
|
||||||
|
|
||||||
nativeBuildInputs = [ menhir findlib ];
|
|
||||||
|
|
||||||
buildInputs = [ angstrom ];
|
buildInputs = [ angstrom ];
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "hahomematic";
|
pname = "hahomematic";
|
||||||
version = "1.2.1";
|
version = "1.2.2";
|
||||||
format = "pyproject";
|
format = "pyproject";
|
||||||
|
|
||||||
disabled = pythonOlder "3.9";
|
disabled = pythonOlder "3.9";
|
||||||
@ -23,7 +23,7 @@ buildPythonPackage rec {
|
|||||||
owner = "danielperna84";
|
owner = "danielperna84";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "refs/tags/${version}";
|
rev = "refs/tags/${version}";
|
||||||
sha256 = "sha256-INhw7d+hbVCfeB7vr9QhCgaLOpIl0OHhgrYN6o6E1YI=";
|
sha256 = "sha256-eXJXKWlvNJIqEJY5WE5Wbk9BdGu9N9xhintJbdSkJrQ=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pytenable";
|
pname = "pytenable";
|
||||||
version = "1.4.4";
|
version = "1.4.6";
|
||||||
format = "setuptools";
|
format = "setuptools";
|
||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
disabled = pythonOlder "3.7";
|
||||||
@ -29,7 +29,7 @@ buildPythonPackage rec {
|
|||||||
owner = "tenable";
|
owner = "tenable";
|
||||||
repo = "pyTenable";
|
repo = "pyTenable";
|
||||||
rev = version;
|
rev = version;
|
||||||
hash = "sha256-qp+e40z24RIOV5RfSw/nI/y1Z3972nCLN8DgQyLbDOc=";
|
hash = "sha256-0isXHh0b2l8Br4XXR1y8A+zu8vkJjEsJ6faNNEx12lM=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, isPy38
|
, pythonOlder
|
||||||
, kerberos
|
, kerberos
|
||||||
, mock
|
, mock
|
||||||
, pytest
|
, pytestCheckHook
|
||||||
, requests
|
, requests
|
||||||
, requests_ntlm
|
, requests_ntlm
|
||||||
, six
|
, six
|
||||||
@ -13,25 +13,41 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pywinrm";
|
pname = "pywinrm";
|
||||||
version = "0.4.2";
|
version = "0.4.3";
|
||||||
disabled = isPy38;
|
format = "setuptools";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.8";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "e7865ec5e46e7fedb859c656cfaba4fcf669de7c042b5a7d8a759544636bcfb7";
|
hash = "sha256-mVZ0v1rGSyViycVlQEcxCeUw02veEMJi1aUpYSGtVWU=";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [ mock pytest ];
|
propagatedBuildInputs = [
|
||||||
propagatedBuildInputs = [ requests requests_ntlm six kerberos xmltodict ];
|
requests
|
||||||
|
requests_ntlm
|
||||||
|
six
|
||||||
|
kerberos
|
||||||
|
xmltodict
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
mock
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"winrm"
|
||||||
|
];
|
||||||
|
|
||||||
|
pytestFlagsArray = [
|
||||||
|
"winrm/tests/"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Python library for Windows Remote Management";
|
description = "Python library for Windows Remote Management";
|
||||||
homepage = "https://github.com/diyan/pywinrm";
|
homepage = "https://github.com/diyan/pywinrm";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [
|
maintainers = with maintainers; [ elasticdog kamadorueda ];
|
||||||
elasticdog
|
|
||||||
kamadorueda
|
|
||||||
];
|
|
||||||
platforms = platforms.all;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,32 +1,43 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchFromGitHub
|
||||||
, capstone
|
, capstone
|
||||||
, filebytes
|
, filebytes
|
||||||
, pytest
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "ropper";
|
pname = "ropper";
|
||||||
version = "1.13.6";
|
version = "1.13.7";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
src = fetchPypi {
|
disabled = pythonOlder "3.7";
|
||||||
inherit pname version;
|
|
||||||
sha256 = "6e4226f5ef01951c7df87029535e051c6deb3f156f7511613fb69e8a7f4801fb";
|
src = fetchFromGitHub {
|
||||||
|
owner = "sashs";
|
||||||
|
repo = "Ropper";
|
||||||
|
rev = "v${version}";
|
||||||
|
hash = "sha256-3tWWIYqh/G/b7Z6BMua5bRvtSh4SibT6pv/NArhmqPE=";
|
||||||
};
|
};
|
||||||
# XXX tests rely on user-writeable /dev/shm to obtain process locks and return PermissionError otherwise
|
|
||||||
# workaround: sudo chmod 777 /dev/shm
|
|
||||||
checkPhase = ''
|
|
||||||
py.test testcases
|
|
||||||
'';
|
|
||||||
doCheck = false; # Tests not included in archive
|
|
||||||
|
|
||||||
checkInputs = [pytest];
|
propagatedBuildInputs = [
|
||||||
propagatedBuildInputs = [ capstone filebytes ];
|
capstone
|
||||||
|
filebytes
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"ropper"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
description = "Show information about files in different file formats";
|
||||||
homepage = "https://scoding.de/ropper/";
|
homepage = "https://scoding.de/ropper/";
|
||||||
license = licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
description = "Show information about files in different file formats";
|
|
||||||
maintainers = with maintainers; [ bennofs ];
|
maintainers = with maintainers; [ bennofs ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "scmrepo";
|
pname = "scmrepo";
|
||||||
version = "0.0.19";
|
version = "0.0.20";
|
||||||
format = "pyproject";
|
format = "pyproject";
|
||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
disabled = pythonOlder "3.7";
|
||||||
@ -23,7 +23,7 @@ buildPythonPackage rec {
|
|||||||
owner = "iterative";
|
owner = "iterative";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "refs/tags/${version}";
|
rev = "refs/tags/${version}";
|
||||||
hash = "sha256-f/KV3NfIumkZcg9r421QhdyPU/274aAU4b78myi+fFY=";
|
hash = "sha256-3gNHWncP9laevuX3EcnmNJ825eQehoLp75WJ5V5/R9w=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "teslajsonpy";
|
pname = "teslajsonpy";
|
||||||
version = "2.1.0";
|
version = "2.2.0";
|
||||||
format = "pyproject";
|
format = "pyproject";
|
||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
disabled = pythonOlder "3.7";
|
||||||
@ -24,7 +24,7 @@ buildPythonPackage rec {
|
|||||||
owner = "zabuldon";
|
owner = "zabuldon";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "refs/tags/v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
sha256 = "sha256-wkE1kgu3yMjH98BBmpz+ZQMg140i0wka4VrBUkJHkxk=";
|
sha256 = "sha256-/y+ZXNqNbSIjQeTDacu3/Fd+6FrDrW3Nigptj0f5KTg=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
@ -7,14 +7,14 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "youtube-search-python";
|
pname = "youtube-search-python";
|
||||||
version = "1.6.4";
|
version = "1.6.5";
|
||||||
format = "setuptools";
|
format = "setuptools";
|
||||||
|
|
||||||
disabled = pythonOlder "3.6";
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
hash = "sha256-9ZAZaLkJb2mEg0rstBxOvs9/L4wtbLuCTdFDOuxMqN0=";
|
hash = "sha256-1B7rppa+s/oE8w91Ca7ogjkNHu5pFSnNmDyUopCWEY8=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
{ stdenv, lib, coursier, jdk, jre, makeWrapper }:
|
{ stdenv, lib, coursier, jre, makeWrapper, setJavaClassPath }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "metals";
|
pname = "metals";
|
||||||
version = "0.11.2";
|
version = "0.11.4";
|
||||||
|
|
||||||
deps = stdenv.mkDerivation {
|
deps = stdenv.mkDerivation {
|
||||||
name = "${pname}-deps-${version}";
|
name = "${pname}-deps-${version}";
|
||||||
buildCommand = ''
|
buildCommand = ''
|
||||||
export COURSIER_CACHE=$(pwd)
|
export COURSIER_CACHE=$(pwd)
|
||||||
${coursier}/bin/cs fetch org.scalameta:metals_2.12:${version} \
|
${coursier}/bin/cs fetch org.scalameta:metals_2.13:${version} \
|
||||||
-r bintray:scalacenter/releases \
|
-r bintray:scalacenter/releases \
|
||||||
-r sonatype:snapshots > deps
|
-r sonatype:snapshots > deps
|
||||||
mkdir -p $out/share/java
|
mkdir -p $out/share/java
|
||||||
@ -16,11 +16,11 @@ stdenv.mkDerivation rec {
|
|||||||
'';
|
'';
|
||||||
outputHashMode = "recursive";
|
outputHashMode = "recursive";
|
||||||
outputHashAlgo = "sha256";
|
outputHashAlgo = "sha256";
|
||||||
outputHash = "sha256-sriiHgKs2hC8inBGWuLM9qFfGgtcYqKHh0VZWNmg51U=";
|
outputHash = "sha256-ZHl+uqYTSMEMR1CSo0btxEn/NQz7MNwh4JISm2L5B3Y=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
nativeBuildInputs = [ makeWrapper setJavaClassPath ];
|
||||||
buildInputs = [ jdk deps ];
|
buildInputs = [ deps ];
|
||||||
|
|
||||||
dontUnpack = true;
|
dontUnpack = true;
|
||||||
|
|
||||||
@ -32,24 +32,19 @@ stdenv.mkDerivation rec {
|
|||||||
# This variant is not targeted at any particular client, clients are
|
# This variant is not targeted at any particular client, clients are
|
||||||
# expected to declare their supported features in initialization options.
|
# expected to declare their supported features in initialization options.
|
||||||
makeWrapper ${jre}/bin/java $out/bin/metals \
|
makeWrapper ${jre}/bin/java $out/bin/metals \
|
||||||
--prefix PATH : ${lib.makeBinPath [ jdk ]} \
|
|
||||||
--add-flags "${extraJavaOpts} -cp $CLASSPATH scala.meta.metals.Main"
|
--add-flags "${extraJavaOpts} -cp $CLASSPATH scala.meta.metals.Main"
|
||||||
|
|
||||||
# Further variants targeted at clients with featuresets pre-set.
|
# Further variants targeted at clients with featuresets pre-set.
|
||||||
makeWrapper ${jre}/bin/java $out/bin/metals-emacs \
|
makeWrapper ${jre}/bin/java $out/bin/metals-emacs \
|
||||||
--prefix PATH : ${lib.makeBinPath [ jdk ]} \
|
|
||||||
--add-flags "${extraJavaOpts} -Dmetals.client=emacs -cp $CLASSPATH scala.meta.metals.Main"
|
--add-flags "${extraJavaOpts} -Dmetals.client=emacs -cp $CLASSPATH scala.meta.metals.Main"
|
||||||
|
|
||||||
makeWrapper ${jre}/bin/java $out/bin/metals-vim \
|
makeWrapper ${jre}/bin/java $out/bin/metals-vim \
|
||||||
--prefix PATH : ${lib.makeBinPath [ jdk ]} \
|
|
||||||
--add-flags "${extraJavaOpts} -Dmetals.client=coc.nvim -cp $CLASSPATH scala.meta.metals.Main"
|
--add-flags "${extraJavaOpts} -Dmetals.client=coc.nvim -cp $CLASSPATH scala.meta.metals.Main"
|
||||||
|
|
||||||
makeWrapper ${jre}/bin/java $out/bin/metals-vim-lsc \
|
makeWrapper ${jre}/bin/java $out/bin/metals-vim-lsc \
|
||||||
--prefix PATH : ${lib.makeBinPath [ jdk ]} \
|
|
||||||
--add-flags "${extraJavaOpts} -Dmetals.client=vim-lsc -cp $CLASSPATH scala.meta.metals.Main"
|
--add-flags "${extraJavaOpts} -Dmetals.client=vim-lsc -cp $CLASSPATH scala.meta.metals.Main"
|
||||||
|
|
||||||
makeWrapper ${jre}/bin/java $out/bin/metals-sublime \
|
makeWrapper ${jre}/bin/java $out/bin/metals-sublime \
|
||||||
--prefix PATH : ${lib.makeBinPath [ jdk ]} \
|
|
||||||
--add-flags "${extraJavaOpts} -Dmetals.client=sublime -cp $CLASSPATH scala.meta.metals.Main"
|
--add-flags "${extraJavaOpts} -Dmetals.client=sublime -cp $CLASSPATH scala.meta.metals.Main"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
@ -1,33 +1,36 @@
|
|||||||
{ lib, stdenv, jdk, jre, coursier, makeWrapper }:
|
{ lib, stdenv, jre, coursier, makeWrapper, installShellFiles, setJavaClassPath }:
|
||||||
|
|
||||||
let
|
let
|
||||||
baseName = "scalafix";
|
baseName = "scalafix";
|
||||||
version = "0.9.0";
|
version = "0.10.0";
|
||||||
deps = stdenv.mkDerivation {
|
deps = stdenv.mkDerivation {
|
||||||
name = "${baseName}-deps-${version}";
|
name = "${baseName}-deps-${version}";
|
||||||
buildCommand = ''
|
buildCommand = ''
|
||||||
export COURSIER_CACHE=$(pwd)
|
export COURSIER_CACHE=$(pwd)
|
||||||
${coursier}/bin/cs fetch ch.epfl.scala:scalafix-cli_2.12.7:${version} > deps
|
${coursier}/bin/cs fetch ch.epfl.scala:scalafix-cli_2.13.8:${version} > deps
|
||||||
mkdir -p $out/share/java
|
mkdir -p $out/share/java
|
||||||
cp $(< deps) $out/share/java/
|
cp $(< deps) $out/share/java/
|
||||||
'';
|
'';
|
||||||
outputHashMode = "recursive";
|
outputHashMode = "recursive";
|
||||||
outputHashAlgo = "sha256";
|
outputHash = "sha256-lDeg90L484MggtQ2a9OyHv4UcfLPjzG3OJZCaWW2AC8=";
|
||||||
outputHash = "19j260prx7k010nxyvc1m9jj1ncxr73m2cym7if39360v5dc05c0";
|
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
pname = baseName;
|
pname = baseName;
|
||||||
inherit version;
|
inherit version;
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
nativeBuildInputs = [ makeWrapper installShellFiles setJavaClassPath ];
|
||||||
buildInputs = [ jdk deps ];
|
buildInputs = [ deps ];
|
||||||
|
|
||||||
dontUnpack = true;
|
dontUnpack = true;
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
makeWrapper ${jre}/bin/java $out/bin/${baseName} \
|
makeWrapper ${jre}/bin/java $out/bin/${baseName} \
|
||||||
--add-flags "-cp $CLASSPATH scalafix.cli.Cli"
|
--add-flags "-cp $CLASSPATH scalafix.cli.Cli"
|
||||||
|
|
||||||
|
installShellCompletion --cmd ${baseName} \
|
||||||
|
--bash <($out/bin/${baseName} --bash) \
|
||||||
|
--zsh <($out/bin/${baseName} --zsh)
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installCheckPhase = ''
|
installCheckPhase = ''
|
||||||
|
35
pkgs/servers/redpanda/default.nix
Normal file
35
pkgs/servers/redpanda/default.nix
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
{ lib, stdenv, fetchzip }:
|
||||||
|
|
||||||
|
let
|
||||||
|
version = "21.11.15";
|
||||||
|
platform = if stdenv.isLinux then "linux" else "darwin";
|
||||||
|
arch = if stdenv.isAarch64 then "arm" else "amd";
|
||||||
|
in stdenv.mkDerivation rec {
|
||||||
|
pname = "redpanda";
|
||||||
|
inherit version;
|
||||||
|
|
||||||
|
src = fetchzip {
|
||||||
|
url = "https://github.com/redpanda-data/redpanda/releases/download/v${version}/rpk-${platform}-${arch}64.zip";
|
||||||
|
sha256 = "sha256-Yf4O7lVcf+nmb0wFTx7jLjUSmdAItoUfPlkhHveI9UY=";
|
||||||
|
};
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
|
mkdir -p $out/bin
|
||||||
|
cp rpk $out/bin
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
|
# stripping somehow completely breaks it
|
||||||
|
dontStrip = true;
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Redpanda is a streaming data platform for developers. Kafka API compatible. 10x faster. No ZooKeeper. No JVM! ";
|
||||||
|
license = licenses.bsl11;
|
||||||
|
homepage = "https://redpanda.com/";
|
||||||
|
maintainers = with maintainers; [ happysalada ];
|
||||||
|
platforms = platforms.all;
|
||||||
|
};
|
||||||
|
}
|
@ -9745,6 +9745,8 @@ with pkgs;
|
|||||||
|
|
||||||
redmine = callPackage ../applications/version-management/redmine { };
|
redmine = callPackage ../applications/version-management/redmine { };
|
||||||
|
|
||||||
|
redpanda = callPackage ../servers/redpanda { };
|
||||||
|
|
||||||
redsocks = callPackage ../tools/networking/redsocks { };
|
redsocks = callPackage ../tools/networking/redsocks { };
|
||||||
|
|
||||||
rep = callPackage ../development/tools/rep { };
|
rep = callPackage ../development/tools/rep { };
|
||||||
@ -13813,7 +13815,6 @@ with pkgs;
|
|||||||
metals = callPackage ../development/tools/metals { };
|
metals = callPackage ../development/tools/metals { };
|
||||||
scalafix = callPackage ../development/tools/scalafix {
|
scalafix = callPackage ../development/tools/scalafix {
|
||||||
jre = jre8; # TODO: remove override https://github.com/NixOS/nixpkgs/pull/89731
|
jre = jre8; # TODO: remove override https://github.com/NixOS/nixpkgs/pull/89731
|
||||||
jdk = jdk8; # TODO: remove override https://github.com/NixOS/nixpkgs/pull/89731
|
|
||||||
};
|
};
|
||||||
scalafmt = callPackage ../development/tools/scalafmt { };
|
scalafmt = callPackage ../development/tools/scalafmt { };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user