3
0
Fork 0
forked from mirrors/nixpkgs

Merge master into staging-next

This commit is contained in:
github-actions[bot] 2023-03-11 00:02:37 +00:00 committed by GitHub
commit 9ffe17a0be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 4085 additions and 16 deletions

View file

@ -1832,6 +1832,12 @@
githubId = 442623;
name = "Ben Pye";
};
benwbooth = {
email = "benwboooth@gmail.com";
github = "benwbooth";
githubId = 75972;
name = "Ben Booth";
};
berberman = {
email = "berberman@yandex.com";
matrix = "@berberman:mozilla.org";
@ -11537,6 +11543,12 @@
githubId = 1368952;
name = "Pedro Lara Campos";
};
penalty1083 = {
email = "penalty1083@outlook.com";
github = "penalty1083";
githubId = 121009904;
name = "penalty1083";
};
penguwin = {
email = "penguwin@penguwin.eu";
github = "penguwin";
@ -13288,6 +13300,12 @@
githubId = 8534888;
name = "Savanni D'Gerinel";
};
savyajha = {
email = "savya.jha@hawkradius.com";
github = "savyajha";
githubId = 3996019;
name = "Savyasachee Jha";
};
sayanarijit = {
email = "sayanarijit@gmail.com";
github = "sayanarijit";

View file

@ -77,9 +77,9 @@ let
let iface = if grubVersion == 1 then "ide" else "virtio";
isEfi = bootLoader == "systemd-boot" || (bootLoader == "grub" && grubUseEfi);
bios = if pkgs.stdenv.isAarch64 then "QEMU_EFI.fd" else "OVMF.fd";
in if !isEfi && !pkgs.stdenv.hostPlatform.isx86 then
throw "Non-EFI boot methods are only supported on i686 / x86_64"
else ''
in if !isEfi && !pkgs.stdenv.hostPlatform.isx86 then ''
machine.succeed("true")
'' else ''
def assemble_qemu_flags():
flags = "-cpu max"
${if (system == "x86_64-linux" || system == "i686-linux")

View file

@ -0,0 +1,40 @@
{ lib, fetchurl, appimageTools, wrapGAppsHook }:
let
pname = "openlens";
version = "6.4.5";
src = fetchurl {
url = "https://github.com/MuhammedKalkan/OpenLens/releases/download/v${version}/OpenLens-${version}.x86_64.AppImage";
sha256 = "sha256-Lwl4unhXSyYCEImiPncAnmIQt26CD4horsREMyi6nuA=";
};
appimageContents = appimageTools.extractType2 {
inherit pname version src;
};
in
appimageTools.wrapType2 {
inherit pname version src;
unshareIpc = false;
extraInstallCommands = ''
mv $out/bin/${pname}-${version} $out/bin/${pname}
install -m 444 -D ${appimageContents}/open-lens.desktop $out/share/applications/${pname}.desktop
install -m 444 -D ${appimageContents}/usr/share/icons/hicolor/512x512/apps/open-lens.png \
$out/share/icons/hicolor/512x512/apps/${pname}.png
substituteInPlace $out/share/applications/${pname}.desktop \
--replace 'Icon=open-lens' 'Icon=${pname}' \
--replace 'Exec=AppRun' 'Exec=${pname}'
'';
meta = with lib; {
description = "The Kubernetes IDE";
homepage = "https://github.com/MuhammedKalkan/OpenLens";
license = licenses.mit;
maintainers = with maintainers; [ benwbooth sebtm ];
platforms = [ "x86_64-linux" ];
};
}

View file

@ -0,0 +1,122 @@
{ lib
, stdenvNoCC
, rustPlatform
, fetchFromGitHub
, buildNpmPackage
, perl
, pkg-config
, glib
, webkitgtk
, libappindicator-gtk3
, libayatana-appindicator
, cairo
, openssl
}:
let
version = "4.7.8";
geph-meta = with lib; {
description = "A modular Internet censorship circumvention system designed specifically to deal with national filtering.";
homepage = "https://geph.io";
platforms = platforms.linux;
maintainers = with maintainers; [ penalty1083 ];
};
in
{
cli = rustPlatform.buildRustPackage rec {
pname = "geph4-client";
inherit version;
src = fetchFromGitHub {
owner = "geph-official";
repo = pname;
rev = "v${version}";
hash = "sha256-DVGbLyFgraQMSIUAqDehF8DqbnvcaeWbuLVgiSQY3KE=";
};
cargoHash = "sha256-uBq6rjUnKEscwhu60HEZffLvuXcArz+AiR52org+qKw=";
nativeBuildInputs = [ perl ];
meta = geph-meta // {
license = with lib.licenses; [ gpl3Only ];
};
};
gui = stdenvNoCC.mkDerivation rec {
pname = "geph-gui";
inherit version;
src = fetchFromGitHub {
owner = "geph-official";
repo = "gephgui-pkg";
rev = "85a55bfc2f4314d9c49608f252080696b1f8e2a9";
hash = "sha256-id/sfaQsF480kUXg//O5rBIciuuhDuXY19FQe1E3OQs=";
fetchSubmodules = true;
};
gephgui = buildNpmPackage {
pname = "gephgui";
inherit version src;
sourceRoot = "source/gephgui-wry/gephgui";
postPatch = "ln -s ${./package-lock.json} ./package-lock.json";
npmDepsHash = "sha256-5y6zpMF4M56DiWVhMvjJGsYpVdlJSoWoWyPgLc7hJoo=";
installPhase = ''
runHook preInstall
mkdir -p $out
mv dist $out
runHook postInstall
'';
};
gephgui-wry = rustPlatform.buildRustPackage rec {
pname = "gephgui-wry";
inherit version src;
sourceRoot = "source/gephgui-wry";
cargoHash = "sha256-lidlUUfHXKPUlICdaVv/SFlyyWsZ7cYHyTJ3kkMn3L4=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [
glib
webkitgtk
libappindicator-gtk3
libayatana-appindicator
cairo
openssl
];
preBuild = ''
ln -s ${gephgui}/dist ./gephgui
'';
};
dontBuild = true;
installPhase = ''
install -Dt $out/bin ${gephgui-wry}/bin/gephgui-wry
install -d $out/share/icons/hicolor
for i in '16' '32' '64' '128' '256'
do
name=''${i}x''${i}
dir=$out/share/icons/hicolor
mkdir -p $dir
mv flatpak/icons/$name $dir
done
install -Dt $out/share/applications flatpak/icons/io.geph.GephGui.desktop
sed -i -e '/StartupWMClass/s/=.*/=gephgui-wry/' $out/share/applications/io.geph.GephGui.desktop
'';
meta = geph-meta // {
license = with lib.licenses; [ unfree ];
};
};
}

File diff suppressed because it is too large Load diff

View file

@ -35,8 +35,7 @@
let
# do not add qemu to this wrapper, store paths get written to the podman vm config and break when GCed
binPath = lib.makeBinPath ([
] ++ lib.optionals stdenv.isLinux [
binPath = lib.makeBinPath (lib.optionals stdenv.isLinux [
runc
crun
conmon

View file

@ -8,7 +8,7 @@
buildPythonPackage rec {
pname = "garminconnect";
version = "0.1.53";
version = "0.1.54";
format = "setuptools";
disabled = pythonOlder "3.7";
@ -17,7 +17,7 @@ buildPythonPackage rec {
owner = "cyberjunky";
repo = "python-garminconnect";
rev = "refs/tags/${version}";
hash = "sha256-bUOdurCuAxpVag+mv3brxYIyNu9KhoDauL+lcrcob/k=";
hash = "sha256-lxifhL70Yn3BIjeRPnWqOs97Oy65RD0Rrgw4bJno2kI=";
};
propagatedBuildInputs = [

View file

@ -0,0 +1,45 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pygments
, six
, wcwidth
, pytestCheckHook
, pyte
, ptyprocess
, pexpect
}:
buildPythonPackage rec {
pname = "lineedit";
version = "0.1.6";
src = fetchFromGitHub {
owner = "randy3k";
repo = pname;
rev = "v${version}";
sha256 = "fq2NpjIQkIq1yzXEUxi6cz80kutVqcH6MqJXHtpTFsk=";
};
propagatedBuildInputs = [
pygments
six
wcwidth
];
nativeCheckInputs = [
pytestCheckHook
pyte
pexpect
ptyprocess
];
pythonImportsCheck = [ "lineedit" ];
meta = with lib; {
description = "A readline library based on prompt_toolkit which supports multiple modes";
homepage = "https://github.com/randy3k/lineedit";
license = licenses.mit;
maintainers = with maintainers; [ savyajha ];
};
}

View file

@ -0,0 +1,71 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pyte
, pexpect
, ptyprocess
, jedi
, git
, lineedit
, prompt-toolkit
, pygments
, rchitect
, six
, R
, rPackages
}:
buildPythonPackage rec {
pname = "radian";
version = "0.6.4";
src = fetchFromGitHub {
owner = "randy3k";
repo = pname;
rev = "v${version}";
sha256 = "QEHVdyVgsZxvs+d+xeeJqwx531+6e0uPi1J3t+hJ0d0=";
};
postPatch = ''
substituteInPlace setup.py --replace '"pytest-runner"' ""
'';
nativeBuildInputs = [
R # needed at setup time to detect R_HOME
];
propagatedBuildInputs = [
lineedit
prompt-toolkit
pygments
rchitect
six
] ++ (with rPackages; [
reticulate
askpass
]);
nativeCheckInputs = [
pytestCheckHook
pyte
pexpect
ptyprocess
jedi
git
];
preCheck = ''
export HOME=$TMPDIR
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${R}/lib/R/lib
'';
pythonImportsCheck = [ "radian" ];
meta = with lib; {
description = "A 21 century R console";
homepage = "https://github.com/randy3k/radian";
license = licenses.mit;
maintainers = with maintainers; [ savyajha ];
};
}

View file

@ -0,0 +1,52 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, cffi
, six
, pytestCheckHook
, pytest-mock
, R
, rPackages }:
buildPythonPackage rec {
pname = "rchitect";
version = "0.3.40";
src = fetchFromGitHub {
owner = "randy3k";
repo = pname;
rev = "v${version}";
sha256 = "yJMiPmusZ62dd6+5VkA2uSjq57a0C3arG8CgiUUHKpk=";
};
postPatch = ''
substituteInPlace setup.py --replace '"pytest-runner"' ""
'';
propagatedBuildInputs = [
cffi
six
] ++ (with rPackages; [
reticulate
]);
nativeCheckInputs = [
pytestCheckHook
pytest-mock
R
];
preCheck = ''
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${R}/lib/R/lib
cd $TMPDIR
'';
pythonImportsCheck = [ "rchitect" ];
meta = with lib; {
description = "Interoperate R with Python";
homepage = "https://github.com/randy3k/rchitect";
license = licenses.mit;
maintainers = with maintainers; [ savyajha ];
};
}

View file

@ -0,0 +1,37 @@
{ lib
, runCommand
, R
, radian
, makeWrapper
, recommendedPackages
, packages
, wrapR ? false
}:
runCommand (radian.name + "-wrapper") {
preferLocalBuild = true;
allowSubstitutes = false;
buildInputs = [ radian ] ++ recommendedPackages ++ packages
++ lib.optional wrapR R;
nativeBuildInputs = [ makeWrapper ];
passthru = { inherit recommendedPackages; };
meta = radian.meta // {
# To prevent builds on hydra
hydraPlatforms = [ ];
# prefer wrapper over the package
priority = (radian.meta.priority or 0) - 1;
};
} (''
makeWrapper "${radian}/bin/radian" "$out/bin/radian" \
--prefix "R_LIBS_SITE" ":" "$R_LIBS_SITE"
'' + lib.optionalString wrapR ''
cd ${R}/bin
for exe in *; do
makeWrapper "${R}/bin/$exe" "$out/bin/$exe" \
--prefix "R_LIBS_SITE" ":" "$R_LIBS_SITE"
done
'')

View file

@ -15,13 +15,13 @@
}:
buildDotnetModule rec {
pname = "github-runner";
version = "2.302.1";
version = "2.303.0";
src = fetchFromGitHub {
owner = "actions";
repo = "runner";
rev = "v${version}";
hash = "sha256-hPZzqTJGwcBxajLjU0TuIQ2KLnDl9E66seuutm9JWDo=";
hash = "sha256-bzCa3OI8/pE8K9U38RN0xWbLkjJPA4mUlsrbH1etpG4=";
# Required to obtain HEAD's Git commit hash
leaveDotGit = true;
};

View file

@ -2,16 +2,16 @@
buildGoModule rec {
pname = "flyctl";
version = "0.0.478";
version = "0.0.483";
src = fetchFromGitHub {
owner = "superfly";
repo = "flyctl";
rev = "v${version}";
hash = "sha256-tMDcEpRpmFYOiEz+bmR5O+fushGPeBU28HoDqNuOP+Y=";
hash = "sha256-z6FBJ8cE8UeOP/3ojzQo3LjEJr5bBshf+4CgMmb1RTQ=";
};
vendorHash = "sha256-W5z6Rbr8dPP0kAhVG8UPy5rK9wz5mZVK9geYt9umftE=";
vendorHash = "sha256-2y671bvOmkKEqbcttcCG1L1by/J8gkGZxts7kFyTIxk=";
subPackages = [ "." ];

View file

@ -33,7 +33,11 @@ stdenv.mkDerivation rec {
})
];
enableParallelBuilding = true;
# Fails the build occasionally due to missing buid depends:
# ./../sys/unix/unixmain.c:9:10: fatal error: date.h: No such file or directory
# TODO: remove once upstream issue is fixed:
# https://github.com/UnNetHack/UnNetHack/issues/56
enableParallelBuilding = false;
postInstall = ''
cp -r /tmp/unnethack $out/share/unnethack/profile

View file

@ -7,13 +7,13 @@
buildGoModule rec {
pname = "grype";
version = "0.59.0";
version = "0.59.1";
src = fetchFromGitHub {
owner = "anchore";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-TAoF67Fxl0OUiQd48h786+lIsdEuk4C/zdeEO/DRX/k=";
hash = "sha256-6NQRmgbV/if0S5jYus5R5oFjLz5wwHpJppi/Tyz2FjY=";
# populate values that require us to use git. By doing this in postFetch we
# can delete .git afterwards and maintain better reproducibility of the src.
leaveDotGit = true;
@ -28,7 +28,7 @@ buildGoModule rec {
proxyVendor = true;
vendorHash = "sha256-kRxKa3HUO2yvMai03voVvsprg/Kd01OtJQHJn3ECk58=";
vendorHash = "sha256-eCvoTGETtB76ILnYKJ5ybtLbZUBMxX2w2CDczY05L0E=";
nativeBuildInputs = [
installShellFiles

View file

@ -19984,6 +19984,8 @@ with pkgs;
gecode_6 = qt5.callPackage ../development/libraries/gecode { };
gecode = gecode_6;
geph = callPackages ../applications/networking/geph { };
gephi = callPackage ../applications/science/misc/gephi { };
gegl = callPackage ../development/libraries/gegl {
@ -24397,6 +24399,19 @@ with pkgs;
packages = [];
};
radianWrapper = callPackage ../development/r-modules/wrapper-radian.nix {
recommendedPackages = with rPackages; [
boot class cluster codetools foreign KernSmooth lattice MASS
Matrix mgcv nlme nnet rpart spatial survival
];
radian = python3Packages.radian;
# Override this attribute to register additional libraries.
packages = [];
# Override this attribute if you want to expose R with the same set of
# packages as specified in radian
wrapR = false;
};
rstudioWrapper = libsForQt5.callPackage ../development/r-modules/wrapper-rstudio.nix {
recommendedPackages = with rPackages; [
boot class cluster codetools foreign KernSmooth lattice MASS
@ -31212,6 +31227,8 @@ with pkgs;
lens = callPackage ../applications/networking/cluster/lens { };
openlens = callPackage ../applications/networking/cluster/openlens { };
leo-editor = libsForQt5.callPackage ../applications/editors/leo-editor { };
libkiwix = callPackage ../applications/misc/kiwix/lib.nix { };

View file

@ -5562,6 +5562,8 @@ self: super: with self; {
linecache2 = callPackage ../development/python-modules/linecache2 { };
lineedit = callPackage ../development/python-modules/lineedit { };
line_profiler = callPackage ../development/python-modules/line_profiler { };
lingua = callPackage ../development/python-modules/lingua { };
@ -9952,6 +9954,8 @@ self: super: with self; {
radicale = pkgs.radicale.override { python3 = python; };
};
radian = callPackage ../development/python-modules/radian { };
radio_beam = callPackage ../development/python-modules/radio_beam { };
radios = callPackage ../development/python-modules/radios { };
@ -9998,6 +10002,8 @@ self: super: with self; {
rbtools = callPackage ../development/python-modules/rbtools { };
rchitect = callPackage ../development/python-modules/rchitect { };
rcssmin = callPackage ../development/python-modules/rcssmin { };
rdflib = callPackage ../development/python-modules/rdflib { };