Skip to content

Commit

Permalink
Merge staging-next into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jul 16, 2023
2 parents a0072ed + d4613a1 commit 034c385
Show file tree
Hide file tree
Showing 48 changed files with 3,171 additions and 782 deletions.
5 changes: 4 additions & 1 deletion doc/contributing/reviewing-contributions.chapter.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ Sample template for a package update review is provided below.
- [ ] package build on ARCHITECTURE
- [ ] executables tested on ARCHITECTURE
- [ ] all depending packages build
- [ ] patches have a comment describing either the upstream URL or a reason why the patch wasn't upstreamed
- [ ] patches that are remotely available are fetched rather than vendored

##### Possible improvements

Expand Down Expand Up @@ -105,7 +107,8 @@ Sample template for a new package review is provided below.
- [ ] source is fetched using the appropriate function
- [ ] the list of `phases` is not overridden
- [ ] when a phase (like `installPhase`) is overridden it starts with `runHook preInstall` and ends with `runHook postInstall`.
- [ ] patches that are remotely available are fetched with `fetchpatch`
- [ ] patches have a comment describing either the upstream URL or a reason why the patch wasn't upstreamed
- [ ] patches that are remotely available are fetched rather than vendored

##### Possible improvements

Expand Down
11 changes: 11 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5190,6 +5190,12 @@
fingerprint = "FC1D 3E4F CBCA 80DF E870 6397 C811 6E3A 0C1C A76A";
}];
};
exploitoverload = {
email = "nix@exploitoverload.com";
github = "exploitoverload";
githubId = 99678549;
name = "Asier Armenteros";
};
extends = {
email = "sharosari@gmail.com";
github = "ImExtends";
Expand Down Expand Up @@ -10047,6 +10053,11 @@
githubId = 2914269;
name = "Malo Bourgon";
};
malt3 = {
github = "malt3";
githubId = 1780588;
name = "Malte Poll";
};
malte-v = {
email = "nixpkgs@mal.tc";
github = "malte-v";
Expand Down
11 changes: 9 additions & 2 deletions maintainers/scripts/nix-generate-from-cpan.pl
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

use CPAN::Meta();
use CPANPLUS::Backend();
use MIME::Base64;
use Module::CoreList;
use Getopt::Long::Descriptive qw( describe_options );
use JSON::PP qw( encode_json );
Expand Down Expand Up @@ -354,6 +355,11 @@ sub render_license {
return $license_line;
}

sub sha256_to_sri {
my ($sha256) = @_;
return "sha256-" . encode_base64(pack("H*", $sha256), '');
}

my ( $opt, $module_name ) = handle_opts();

Log::Log4perl->easy_init(
Expand All @@ -380,8 +386,9 @@ sub render_license {
INFO( "path: ", $module->path );

my $tar_path = $module->fetch();
my $sri_hash = sha256_to_sri($module->status->checksum_value);
INFO( "downloaded to: ", $tar_path );
INFO( "sha-256: ", $module->status->checksum_value );
INFO( "hash: ", $sri_hash );

my $pkg_path = $module->extract();
INFO( "unpacked to: ", $pkg_path );
Expand Down Expand Up @@ -436,7 +443,7 @@ sub render_license {
version = "$pkg_version";
src = fetchurl {
url = "mirror://cpan/${\$module->path}/${\$module->package}";
sha256 = "${\$module->status->checksum_value}";
hash = "$sri_hash";
};
EOF
print <<EOF if scalar @build_deps > 0;
Expand Down
27 changes: 15 additions & 12 deletions pkgs/applications/gis/tunnelx/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,34 +19,37 @@ stdenv.mkDerivation (finalAttrs: {
};

nativeBuildInputs = [
makeWrapper
];

buildInputs = [
jdk
];

runtimeInputs = [
survex
makeWrapper
];

buildPhase = ''
runHook preBuild
javac -d . src/*.java
runHook postBuild
'';

installPhase = ''
runHook preInstall
mkdir -p $out/bin $out/java
cp -r symbols Tunnel tutorials $out/java
# `SURVEX_EXECUTABLE_DIR` must include trailing slash
makeWrapper ${jre}/bin/java $out/bin/tunnelx \
--add-flags "-cp $out/java Tunnel.MainBox" \
--set SURVEX_EXECUTABLE_DIR ${survex}/bin/ \
--set SURVEX_EXECUTABLE_DIR ${lib.getBin survex}/bin/ \
--set TUNNEL_USER_DIR $out/java/
runHook postInstall
'';

meta = with lib; {
meta = {
description = "A program for drawing cave surveys in 2D";
homepage = "https://github.com/CaveSurveying/tunnelx/";
license = licenses.gpl3;
maintainers = with maintainers; [ goatchurchprime ];
license = lib.licenses.gpl3;
maintainers = with lib.maintainers; [ goatchurchprime ];
platforms = lib.platforms.linux;
};
})
7 changes: 4 additions & 3 deletions pkgs/applications/graphics/f3d/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

stdenv.mkDerivation rec {
pname = "f3d";
version = "2.0.0";
version = "2.1.0";

src = fetchFromGitHub {
owner = "f3d-app";
repo = "f3d";
rev = "v${version}";
hash = "sha256-od8Wu8+HyQb8qTA6C4kiw5hNI2WPBs/EMt321BJDZoc=";
rev = "refs/tags/v${version}";
hash = "sha256-2LDHIeKgLUS2ujJUx2ZerXmZYB9rrT3PYvrtzV4vcHM=";
};

nativeBuildInputs = [ cmake ];
Expand All @@ -26,6 +26,7 @@ stdenv.mkDerivation rec {
meta = with lib; {
description = "Fast and minimalist 3D viewer using VTK";
homepage = "https://f3d-app.github.io/f3d";
changelog = "https://github.com/f3d-app/f3d/releases/tag/v${version}";
license = licenses.bsd3;
maintainers = with maintainers; [ bcdarwin ];
platforms = with platforms; unix;
Expand Down
6 changes: 4 additions & 2 deletions pkgs/applications/misc/survex/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,16 @@ stdenv.mkDerivation rec {
buildInputs = [
ffmpeg
glib
libGLU
mesa
proj
wxGTK32
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
Carbon
Cocoa
] ++ lib.optionals stdenv.hostPlatform.isLinux [
# TODO: libGLU doesn't build for macOS because of Mesa issues
# (#233265); is it required for anything?
libGLU
mesa
libICE
libX11
];
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/office/portfolio/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ let
in
stdenv.mkDerivation rec {
pname = "PortfolioPerformance";
version = "0.64.1";
version = "0.64.4";

src = fetchurl {
url = "https://github.com/buchen/portfolio/releases/download/${version}/PortfolioPerformance-${version}-linux.gtk.x86_64.tar.gz";
hash = "sha256-R3Cj24dZ2wD1c29zRLGnuJm3wfc9+n/sNNW316HT9N4=";
hash = "sha256-RjwZVJxPVbSlC0huGsreMdKDFV97bshoGA302u4N0Vk=";
};

nativeBuildInputs = [
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/radio/gnuradio/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@
, pname ? "gnuradio"
, versionAttr ? {
major = "3.10";
minor = "6";
minor = "7";
patch = "0";
}
}:

let
sourceSha256 = "sha256-WLxb9vJBlRfo9bKWEIsCI0Zb040XkLNjYw84j6ivOrk=";
sourceSha256 = "sha256-7fIQMcx90wI4mAZmR26/rkBKPKhNxgu3oWpJTV3C+Ek=";
featuresInfo = {
# Needed always
basic = {
Expand Down
2 changes: 2 additions & 0 deletions pkgs/build-support/trivial-builders/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ rec {
inherit buildCommand name;
passAsFile = [ "buildCommand" ]
++ (derivationArgs.passAsFile or []);
}
// lib.optionalAttrs (! derivationArgs?meta) {
pos = let args = builtins.attrNames derivationArgs; in
if builtins.length args > 0
then builtins.unsafeGetAttrPos (builtins.head args) derivationArgs
Expand Down
19 changes: 12 additions & 7 deletions pkgs/desktops/xfce/panel-plugins/xfce4-verve-plugin/default.nix
Original file line number Diff line number Diff line change
@@ -1,22 +1,27 @@
{ lib
, mkXfceDerivation
, glib
, gtk3
, libxfce4ui
, pcre
, libxfce4util
, pcre2
, xfce4-panel
}:

mkXfceDerivation {
category = "panel-plugins";
pname = "xfce4-verve-plugin";
version = "2.0.1";
rev-prefix = "";
sha256 = "sha256-YwUOSTZMoHsWWmi/ajQv/fX8a0IJoc3re3laVEmnX/M=";
version = "2.0.3";
sha256 = "sha256-K335cs1vWKTNQjZlSUuhK8OmgTsKSzN87IZwS4RtvB8=";

buildInputs = [ gtk3 libxfce4ui pcre libxfce4util xfce4-panel ];

hardeningDisable = [ "format" ];
buildInputs = [
glib
gtk3
libxfce4ui
libxfce4util
pcre2
xfce4-panel
];

meta = with lib; {
description = "A command-line plugin";
Expand Down
32 changes: 21 additions & 11 deletions pkgs/development/libraries/libsolv/default.nix
Original file line number Diff line number Diff line change
@@ -1,18 +1,28 @@
{ lib, stdenv, fetchFromGitHub, cmake, ninja, pkg-config
, zlib, xz, bzip2, zchunk, zstd
{ lib
, stdenv
, fetchFromGitHub
, cmake
, ninja
, pkg-config
, zlib
, xz
, bzip2
, zchunk
, zstd
, expat
, withRpm ? !stdenv.isDarwin, rpm
, withRpm ? !stdenv.isDarwin
, rpm
, db
}:

stdenv.mkDerivation rec {
version = "0.7.24";
version = "0.7.24";
pname = "libsolv";

src = fetchFromGitHub {
owner = "openSUSE";
repo = "libsolv";
rev = version;
owner = "openSUSE";
repo = "libsolv";
rev = version;
sha256 = "sha256-UTVnGJO/9mQF9RwK75hh6IkoP1MwAlFaLCtdYU8uS34=";
};

Expand All @@ -24,6 +34,7 @@ stdenv.mkDerivation rec {
"-DENABLE_ZCHUNK_COMPRESSION=true"
"-DWITH_SYSTEM_ZCHUNK=true"
] ++ lib.optionals withRpm [
"-DENABLE_COMPS=true"
"-DENABLE_PUBKEY=true"
"-DENABLE_RPMDB=true"
"-DENABLE_RPMDB_BYRPMHEADER=true"
Expand All @@ -36,10 +47,9 @@ stdenv.mkDerivation rec {

meta = with lib; {
description = "A free package dependency solver";
homepage = "https://github.com/openSUSE/libsolv";
license = licenses.bsd3;
platforms = platforms.linux ++ platforms.darwin;
homepage = "https://github.com/openSUSE/libsolv";
license = licenses.bsd3;
platforms = platforms.linux ++ platforms.darwin;
maintainers = with maintainers; [ copumpkin ];
};
}

4 changes: 2 additions & 2 deletions pkgs/development/libraries/lmdb/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

stdenv.mkDerivation rec {
pname = "lmdb";
version = "0.9.30";
version = "0.9.31";

src = fetchFromGitLab {
domain = "git.openldap.org";
owner = "openldap";
repo = "openldap";
rev = "LMDB_${version}";
sha256 = "sha256-zLa9BtSPzujHAIZKDl69lTo72cI3m/GZejFw5v8bFsg=";
sha256 = "sha256-SBbo7MX3NST+OFPDtQshevIYrIsZD9bOkSsH91inMBw=";
};

postUnpack = "sourceRoot=\${sourceRoot}/libraries/liblmdb";
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/libraries/mongoc/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@

stdenv.mkDerivation rec {
pname = "mongoc";
version = "1.24.1";
version = "1.24.2";

src = fetchFromGitHub {
owner = "mongodb";
repo = "mongo-c-driver";
rev = "refs/tags/${version}";
hash = "sha256-IVy2PxFM//AKffYfeLyCNjattnFZmqeg6WNTqXI/yMY=";
hash = "sha256-gey+/DAfAK69f5q568giLNL4R1UqGD6eiImkjyvnZys=";
};

postPatch = ''
Expand Down
Loading

0 comments on commit 034c385

Please sign in to comment.