Skip to content

Commit

Permalink
Merge master into staging-next
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Jan 1, 2025
2 parents 7710bab + 82d084b commit a27f43e
Show file tree
Hide file tree
Showing 164 changed files with 462 additions and 400 deletions.
7 changes: 3 additions & 4 deletions doc/doc-support/lib-function-docs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -94,17 +94,16 @@
stdenvNoCC.mkDerivation {
name = "nixpkgs-lib-docs";

src = lib.fileset.toSource {
root = ../..;
fileset = ../../lib;
};
src = ../../lib;

nativeBuildInputs = [
nixdoc
nix
];

installPhase = ''
cd ..
export NIX_STATE_DIR=$(mktemp -d)
nix-instantiate --eval --strict --json ${./lib-function-locations.nix} \
--arg nixpkgsPath "./." \
Expand Down
26 changes: 16 additions & 10 deletions doc/doc-support/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,22 @@ stdenvNoCC.mkDerivation (

nativeBuildInputs = [ nixos-render-docs ];

src = lib.fileset.toSource {
root = ../.;
fileset = lib.fileset.unions [
(lib.fileset.fileFilter (file: file.hasExt "md" || file.hasExt "md.in") ../.)
../style.css
../anchor-use.js
../anchor.min.js
../manpage-urls.json
../redirects.json
];
src = lib.cleanSourceWith {
src = ../.;
filter =
path: type:
type == "directory"
|| lib.hasSuffix ".md" path
|| lib.hasSuffix ".md.in" path
|| lib.elem path (
map toString [
../style.css
../anchor-use.js
../anchor.min.js
../manpage-urls.json
../redirects.json
]
);
};

postPatch = ''
Expand Down
12 changes: 1 addition & 11 deletions nixos/lib/test-driver/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,12 @@
extraPythonPackages ? (_: [ ]),
nixosTests,
}:
let
fs = lib.fileset;
in
python3Packages.buildPythonApplication {
pname = "nixos-test-driver";
version = "1.1";
pyproject = true;

src = fs.toSource {
root = ./.;
fileset = fs.unions [
./pyproject.toml
./test_driver
./extract-docstrings.py
];
};
src = ./src;

build-system = with python3Packages; [
setuptools
Expand Down
2 changes: 1 addition & 1 deletion nixos/lib/test-driver/nixos-test-driver-docstrings.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ in

runCommand "nixos-test-driver-docstrings" env ''
mkdir $out
python3 ${./extract-docstrings.py} ${./test_driver/machine.py} \
python3 ${./src/extract-docstrings.py} ${./src/test_driver/machine.py} \
> $out/machine-methods.md
''
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 0 additions & 2 deletions pkgs/applications/audio/ardour/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
, libltc
, libogg
, libpulseaudio
, librdf_raptor
, librdf_rasqal
, libsamplerate
, libsigcxx
Expand Down Expand Up @@ -133,7 +132,6 @@ stdenv.mkDerivation rec {
libltc
libogg
libpulseaudio
librdf_raptor
librdf_rasqal
libsamplerate
libsigcxx
Expand Down
11 changes: 6 additions & 5 deletions pkgs/build-support/testers/shellcheck/tester.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
{
lib,
stdenv,
runCommand,
shellcheck,
}:

Expand All @@ -10,18 +11,18 @@
# Tests: ./tests.nix
{ src }:
let
inherit (lib) fileset pathType isPath;
inherit (lib) pathType isPath;
in
stdenv.mkDerivation {
name = "run-shellcheck";
src =
if
isPath src && pathType src == "regular" # note that for strings this would have been IFD, which we prefer to avoid
then
fileset.toSource {
root = dirOf src;
fileset = src;
}
runCommand "testers-shellcheck-src" { } ''
mkdir $out
cp ${src} $out
''
else
src;
nativeBuildInputs = [ shellcheck ];
Expand Down
12 changes: 2 additions & 10 deletions pkgs/build-support/testers/shellcheck/tests.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,14 @@
testers,
runCommand,
}:
let
inherit (lib) fileset;
in
lib.recurseIntoAttrs {

example-dir =
runCommand "test-testers-shellcheck-example-dir"
{
failure = testers.testBuildFailure (
testers.shellcheck {
src = fileset.toSource {
root = ./.;
fileset = fileset.unions [
./example.sh
];
};
src = ./src;
}
);
}
Expand All @@ -37,7 +29,7 @@ lib.recurseIntoAttrs {
{
failure = testers.testBuildFailure (
testers.shellcheck {
src = ./example.sh;
src = ./src/example.sh;
}
);
}
Expand Down
21 changes: 21 additions & 0 deletions pkgs/by-name/av/avro-cpp/0001-get-rid-of-fmt-fetchcontent.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 19059a41b..6e3ae0ad7 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -82,15 +82,7 @@ endif ()
find_package (Boost 1.38 REQUIRED
COMPONENTS filesystem iostreams program_options regex system)

-include(FetchContent)
-FetchContent_Declare(
- fmt
- GIT_REPOSITORY https://github.com/fmtlib/fmt.git
- GIT_TAG 10.2.1
- GIT_PROGRESS TRUE
- USES_TERMINAL_DOWNLOAD TRUE
-)
-FetchContent_MakeAvailable(fmt)
+find_package(fmt REQUIRED)

find_package(Snappy)
if (SNAPPY_FOUND)
35 changes: 19 additions & 16 deletions pkgs/by-name/av/avro-cpp/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,41 +2,44 @@
lib,
stdenv,
fetchurl,
fetchpatch,
cmake,
boost,
python3,
fmt,
versionCheckHook,
}:

stdenv.mkDerivation rec {
pname = "avro-c++";
version = "1.11.3";
version = "1.12.0";

src = fetchurl {
url = "mirror://apache/avro/avro-${version}/cpp/avro-cpp-${version}.tar.gz";
hash = "sha256-+6JCrvd+yBnQdWH8upN1FyGVbejQyujh8vMAtUszG64=";
hash = "sha256-8u33cSanWw7BrRZncr4Fg1HOo9dESL5+LO8gBQwPmKs=";
};

patches = [
# This patch fixes boost compatibility and can be removed when
# upgrading beyond 1.11.3 https://github.com/apache/avro/pull/1920
(fetchpatch {
name = "fix-boost-compatibility.patch";
url = "https://github.com/apache/avro/commit/016323828f147f185d03f50d2223a2f50bfafce1.patch";
hash = "sha256-hP/5J2JzSplMvg8EjEk98Vim8DfTyZ4hZ/WGiVwvM1A=";
})
./0001-get-rid-of-fmt-fetchcontent.patch
];
patchFlags = [ "-p3" ];

nativeBuildInputs = [
cmake
python3
];
buildInputs = [ boost ];

preConfigure = ''
substituteInPlace test/SchemaTests.cc --replace "BOOST_CHECKPOINT" "BOOST_TEST_CHECKPOINT"
substituteInPlace test/buffertest.cc --replace "BOOST_MESSAGE" "BOOST_TEST_MESSAGE"
'';
propagatedBuildInputs = [
boost
fmt
];

doCheck = true;

nativeInstallCheckInputs = [
versionCheckHook
];
doInstallCheck = true;
versionCheckProgram = "${placeholder "out"}/bin/avrogencpp";
versionCheckProgramArg = [ "--version" ];

meta = {
description = "C++ library which implements parts of the Avro Specification";
Expand Down
6 changes: 3 additions & 3 deletions pkgs/by-name/bo/bodyclose/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@

buildGoModule {
pname = "bodyclose";
version = "0-unstable-2024-10-17";
version = "0-unstable-2024-12-22";

src = fetchFromGitHub {
owner = "timakin";
repo = "bodyclose";
rev = "adbc21e6bf369ca6d936dbb140733f34867639bd";
hash = "sha256-GNZNzXEZnIxep5BS1sBZsMl876FwwIkOBwHAMk/73fo=";
rev = "1db5c5ca4d6719fe28430df1ae8d337ee2ac09c7";
hash = "sha256-s5bWvpV6gHGEsuiNXJl2ZuyDaffD82/rCbusov3zsyw=";
};

vendorHash = "sha256-8grdJuV8aSETsJr2VazC/3ctfnGh3UgjOWD4/xf3uC8=";
Expand Down
6 changes: 3 additions & 3 deletions pkgs/by-name/ca/cairo-lang/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@

rustPlatform.buildRustPackage rec {
pname = "cairo";
version = "2.8.5";
version = "2.9.2";

src = fetchFromGitHub {
owner = "starkware-libs";
repo = "cairo";
rev = "v${version}";
hash = "sha256-zNSQVMF5ciGGUBQyPFvIVtePNMbJ3e0LXBmRWMohoGA=";
hash = "sha256-zjgCOrTlIPN4aU0+FCohJmISPiwpppj3zO/7unVi/iU=";
};

cargoHash = "sha256-jVQErw89rCm9f3uJftmyytru1xQa+FKsUkszHJWBGNU=";
cargoHash = "sha256-2qm2hL4M2xHidRYF9Fhxxn2IG22mPEBZW5yhu6wPVDY=";

# openssl crate requires perl during build process
nativeBuildInputs = [
Expand Down
4 changes: 2 additions & 2 deletions pkgs/by-name/co/coursier/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ let
in
stdenv.mkDerivation rec {
pname = "coursier";
version = "2.1.19";
version = "2.1.22";

src = fetchurl {
url = "https://github.com/coursier/coursier/releases/download/v${version}/coursier";
hash = "sha256-E6LEi2m/BMCT9T5UYzMbIcoj42MKP2OIc27XGDMUI7w=";
hash = "sha256-0ugWgvG3AHt7h8F8W8kCksyx93YO51i5StqGAEZXGmg=";
};

dontUnpack = true;
Expand Down
14 changes: 4 additions & 10 deletions pkgs/by-name/fl/flattenReferencesGraph/package.nix
Original file line number Diff line number Diff line change
@@ -1,25 +1,19 @@
{
callPackage,
lib,
nix-gitignore,
python3Packages,
}:
let
inherit (lib) fileset;
helpers = callPackage ./helpers.nix { };
pythonPackages = python3Packages;

in
pythonPackages.buildPythonApplication {
version = "0.1.0";
pname = "flatten-references-graph";

src = fileset.toSource {
root = ./src;
fileset = fileset.unions [
./src/.flake8
./src/flatten_references_graph
./src/setup.py
];
};
# Note: this uses only ./src/.gitignore
src = nix-gitignore.gitignoreSource [ ] ./src;

propagatedBuildInputs = with pythonPackages; [
igraph
Expand Down
Loading

0 comments on commit a27f43e

Please sign in to comment.