Merge master into staging-next

This commit is contained in:
github-actions[bot]
2024-05-15 06:01:07 +00:00
committed by GitHub
8 changed files with 118 additions and 32 deletions
+6
View File
@@ -7777,6 +7777,12 @@
githubId = 10654650;
name = "Guillaume Koenig";
};
guillaumematheron = {
email = "guillaume_nix@matheron.eu";
github = "guillaumematheron";
githubId = 1949438;
name = "Guillaume Matheron";
};
guitargeek = {
email = "jonas.rembser@cern.ch";
github = "guitargeek";
@@ -50,13 +50,13 @@ in
stdenv.mkDerivation (finalAttrs: {
pname = "imagemagick";
version = "7.1.1-30";
version = "7.1.1-32";
src = fetchFromGitHub {
owner = "ImageMagick";
repo = "ImageMagick";
rev = finalAttrs.version;
hash = "sha256-btXl1J/WjV+5BZibgUzylVmBrhR3KBK/ZSbP0B2fM5c=";
hash = "sha256-9pDxnUNMmrwnP4rrR41OSZOJZjQnlVvedpLvMZJJnJo=";
};
outputs = [ "out" "dev" "doc" ]; # bin/ isn't really big
+3 -3
View File
@@ -7,16 +7,16 @@
rustPlatform.buildRustPackage rec {
pname = "ast-grep";
version = "0.21.4";
version = "0.22.3";
src = fetchFromGitHub {
owner = "ast-grep";
repo = "ast-grep";
rev = version;
hash = "sha256-qoQUc+qMKptCxgW6Yfc2umhSsn27vv1SvcvjCFeuIrA=";
hash = "sha256-Q2xVB9GZBtXx67rKpeTpy1llXCBpgn9vdZmYkQVHtp8=";
};
cargoHash = "sha256-acgGz8FToQDlSuxge0hvApk4SOxQ74mMvx0A2+zv65o=";
cargoHash = "sha256-0N98WvNLlflNCu7I2nHDSgFHDmbMVqwu4YkqA9GNSwM=";
nativeBuildInputs = [ installShellFiles ];
+83
View File
@@ -0,0 +1,83 @@
{
lib,
ant,
copyDesktopItems,
fetchFromGitHub,
jdk,
jre,
makeDesktopItem,
makeWrapper,
stdenv,
stripJavaArchivesHook,
wrapGAppsHook4,
}:
stdenv.mkDerivation (finalAttrs: {
name = "jailer";
version = "16.1.4";
src = fetchFromGitHub {
owner = "Wisser";
repo = "Jailer";
rev = "dcde48b2e0c7b68cc1b6f73c80fde06fdf31fdc6";
sha256 = "sha256-cPOWW2z44vCc/Fw1zYZUsYafgKr82e0g+K0Db5A9F5M=";
};
buildPhase = ''
runHook preBuild
rm jailer.jar
ant
runHook postBuild
'';
nativeBuildInputs = [ ant jdk stripJavaArchivesHook makeWrapper wrapGAppsHook4 copyDesktopItems ];
installPhase = ''
runHook preInstall
install -Dm644 jailer.jar $out/share/java/jailer.jar
install -Dm644 jailer-engine-${finalAttrs.version}.jar $out/share/java/
mkdir -p $out/share/java/lib
for f in lib/*.jar; do
install -Dm644 $f $out/share/java/lib
done
mkdir -p $out/bin
mkdir -p $out/share
mkdir -p $out/share/pixmaps
cp driverlist.csv $out/share
cp admin/jailer.png $out/share/pixmaps
# On first run, create a local configuration folder and copy driverlist.csv there.
cat << EOF > $out/bin/jailer
#!/usr/bin/env bash
CFG="''${XDG_CONFIG_HOME:-\$HOME/.config}/jailer"
mkdir -p \$CFG
cp -n $out/share/driverlist.csv \$CFG
cd \$CFG
_JAVA_AWT_WM_NONREPARENTING=1 ${jre}/bin/java -jar $out/share/java/jailer.jar
EOF
chmod +x $out/bin/jailer
runHook postInstall
'';
desktopItems = [
(makeDesktopItem {
name = "Jailer";
desktopName = "Jailer";
exec = "jailer";
icon = "jailer";
categories = [ "Development" ];
})
];
meta = {
description = "A tool for database subsetting and relational data browsing";
license = lib.licenses.asl20;
homepage = "https://github.com/Wisser/Jailer";
changelog = "https://github.com/Wisser/Jailer/releases/tag/${finalAttrs.version}";
maintainers = with lib.maintainers; [ guillaumematheron ];
mainProgram = "jailer";
};
})
@@ -13,9 +13,11 @@ stdenv.mkDerivation {
nativeBuildInputs = [ cmake ];
outputs = [ "out" "dev" ];
installPhase = ''
mkdir -p $out/include $out/lib
cp ../src/cxxabi.h $out/include
mkdir -p $dev/include $out/lib
cp ../src/cxxabi.h $dev/include
cp lib/libcxxrt${stdenv.hostPlatform.extensions.library} $out/lib
'';
@@ -1,30 +1,31 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, rustPlatform
, stdenv
, libiconv
, hypothesis
, numpy
, pytest-xdist
, pytestCheckHook
{
lib,
buildPythonPackage,
fetchFromGitHub,
rustPlatform,
stdenv,
libiconv,
hypothesis,
numpy,
pytest-xdist,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "cramjam";
version = "2.8.2";
version = "2.8.3";
pyproject = true;
src = fetchFromGitHub {
owner = "milesgranger";
repo = "pyrus-cramjam";
rev = "refs/tags/v${version}";
hash = "sha256-BO35s7qOW4+l968I9qn9L1m2BtgRFNYUNlA7W1sctT8=";
hash = "sha256-1KD5/oZjfdXav1ZByQoyyiDSzbmY4VJsSJg/FtUFdDE=";
};
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
hash = "sha256-YWXf+ZDJLq6VxI5sa9G63fCPz2377BVSTmPM0mQSu8M=";
hash = "sha256-Bp7EtyuLdLUfU3yvouNVE42klfqYt9QOwt+iGe521yI=";
};
buildAndTestSubdir = "cramjam-python";
@@ -43,17 +44,11 @@ buildPythonPackage rec {
pytestCheckHook
];
pytestFlagsArray = [
"cramjam-python/tests"
];
pytestFlagsArray = [ "cramjam-python/tests" ];
disabledTestPaths = [
"cramjam-python/benchmarks/test_bench.py"
];
disabledTestPaths = [ "cramjam-python/benchmarks/test_bench.py" ];
pythonImportsCheck = [
"cramjam"
];
pythonImportsCheck = [ "cramjam" ];
meta = with lib; {
description = "Thin Python bindings to de/compression algorithms in Rust";
@@ -876,7 +876,7 @@ let
ZRAM_MULTI_COMP = whenAtLeast "6.2" yes;
ZRAM_DEF_COMP_ZSTD = whenAtLeast "5.11" yes;
ZSWAP = option yes;
ZSWAP_COMPRESSOR_DEFAULT_ZSTD = whenAtLeast "5.7" yes;
ZSWAP_COMPRESSOR_DEFAULT_ZSTD = whenAtLeast "5.7" (mkOptionDefault yes);
ZPOOL = yes;
ZSMALLOC = option yes;
};
@@ -84,8 +84,8 @@ let
SCHED_PDS = yes;
# Swap storage is compressed with LZ4 using zswap
ZSWAP_COMPRESSOR_DEFAULT_LZ4 = yes;
ZSWAP_COMPRESSOR_DEFAULT = freeform "lz4";
ZSWAP_COMPRESSOR_DEFAULT_LZ4 = lib.mkOptionDefault yes;
ZSWAP_COMPRESSOR_DEFAULT_ZSTD = lib.mkDefault no;
# Fix error: unused option: XXX.
CFS_BANDWIDTH = lib.mkForce (option no);