Merge staging-next into staging

This commit is contained in:
github-actions[bot] 2022-11-17 00:02:55 +00:00 committed by GitHub
commit defcd5c627
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
32 changed files with 217 additions and 233 deletions

View File

@ -51,7 +51,7 @@ See the nixpkgs manual for more details on [standard meta-attributes](https://ni
In addition to writing properly formatted commit messages, it's important to include relevant information so other developers can later understand *why* a change was made. While this information usually can be found by digging code, mailing list/Discourse archives, pull request discussions or upstream changes, it may require a lot of work. In addition to writing properly formatted commit messages, it's important to include relevant information so other developers can later understand *why* a change was made. While this information usually can be found by digging code, mailing list/Discourse archives, pull request discussions or upstream changes, it may require a lot of work.
For package version upgrades and such a one-line commit message is usually sufficient. Package version upgrades usually allow for simpler commit messages, including attribute name, old and new version, as well as a reference to the relevant release notes/changelog. Every once in a while a package upgrade requires more extensive changes, and that subsequently warrants a more verbose message.
## Rebasing between branches (i.e. from master to staging) ## Rebasing between branches (i.e. from master to staging)

View File

@ -1464,6 +1464,14 @@ services.github-runner.serviceOverrides.SupplementaryGroups = [
are under <literal>programs.firefox</literal>. are under <literal>programs.firefox</literal>.
</para> </para>
</listitem> </listitem>
<listitem>
<para>
The option
<literal>services.picom.experimentalBackends</literal> was
removed since it is now the default and the option will cause
<literal>picom</literal> to quit instead.
</para>
</listitem>
</itemizedlist> </itemizedlist>
</section> </section>
</section> </section>

View File

@ -447,4 +447,6 @@ Available as [services.patroni](options.html#opt-services.patroni.enable).
- A NixOS module for Firefox has been added which allows preferences and [policies](https://github.com/mozilla/policy-templates/blob/master/README.md) to be set. This also allows extensions to be installed via the `ExtensionSettings` policy. The new options are under `programs.firefox`. - A NixOS module for Firefox has been added which allows preferences and [policies](https://github.com/mozilla/policy-templates/blob/master/README.md) to be set. This also allows extensions to be installed via the `ExtensionSettings` policy. The new options are under `programs.firefox`.
- The option `services.picom.experimentalBackends` was removed since it is now the default and the option will cause `picom` to quit instead.
<!-- To avoid merge conflicts, consider adding your item at an arbitrary place in the list instead. --> <!-- To avoid merge conflicts, consider adding your item at an arbitrary place in the list instead. -->

View File

@ -94,7 +94,7 @@ in
after = [ "suspend.target" "hibernate.target" "hybrid-sleep.target" "suspend-then-hibernate.target" ]; after = [ "suspend.target" "hibernate.target" "hybrid-sleep.target" "suspend-then-hibernate.target" ];
script = script =
'' ''
/run/current-system/systemd/bin/systemctl try-restart post-resume.target /run/current-system/systemd/bin/systemctl try-restart --no-block post-resume.target
${cfg.resumeCommands} ${cfg.resumeCommands}
${cfg.powerUpCommands} ${cfg.powerUpCommands}
''; '';

View File

@ -47,6 +47,9 @@ in {
since picom v6 and was subsequently removed by upstream. since picom v6 and was subsequently removed by upstream.
See https://github.com/yshui/picom/commit/bcbc410 See https://github.com/yshui/picom/commit/bcbc410
'') '')
(mkRemovedOptionModule [ "services" "picom" "experimentalBackends" ] ''
This option was removed by upstream since picom v10.
'')
]; ];
options.services.picom = { options.services.picom = {
@ -58,14 +61,6 @@ in {
''; '';
}; };
experimentalBackends = mkOption {
type = types.bool;
default = false;
description = lib.mdDoc ''
Whether to use the unstable new reimplementation of the backends.
'';
};
fade = mkOption { fade = mkOption {
type = types.bool; type = types.bool;
default = false; default = false;
@ -306,8 +301,7 @@ in {
}; };
serviceConfig = { serviceConfig = {
ExecStart = "${pkgs.picom}/bin/picom --config ${configFile}" ExecStart = "${pkgs.picom}/bin/picom --config ${configFile}";
+ (optionalString cfg.experimentalBackends " --experimental-backends");
RestartSec = 3; RestartSec = 3;
Restart = "always"; Restart = "always";
}; };

View File

@ -537,6 +537,16 @@ let
}; };
}; };
bmalehorn.vscode-fish = buildVscodeMarketplaceExtension {
mktplcRef = {
name = "vscode-fish";
publisher = "bmalehorn";
version = "1.0.31";
sha256 = "sha256-jDWW43ozUPIzhK/qQ+a+JSNdDHrjvgosyGe8kzBX6xM=";
};
meta.license = lib.licenses.mit;
};
bradlc.vscode-tailwindcss = buildVscodeMarketplaceExtension { bradlc.vscode-tailwindcss = buildVscodeMarketplaceExtension {
mktplcRef = { mktplcRef = {
name = "vscode-tailwindcss"; name = "vscode-tailwindcss";
@ -1668,6 +1678,16 @@ let
}; };
}; };
matangover.mypy = buildVscodeMarketplaceExtension {
mktplcRef = {
name = "mypy";
publisher = "matangover";
version = "0.2.2";
sha256 = "sha256-eaiR30HjPCpOLUKQqiQ2Oqj+XY+JNnV47bM5KD2Mouk=";
};
meta.license = lib.licenses.mit;
};
mattn.lisp = buildVscodeMarketplaceExtension { mattn.lisp = buildVscodeMarketplaceExtension {
mktplcRef = { mktplcRef = {
name = "lisp"; name = "lisp";
@ -2598,6 +2618,16 @@ let
}; };
}; };
thenuprojectcontributors.vscode-nushell-lang = buildVscodeMarketplaceExtension {
mktplcRef = {
name = "vscode-nushell-lang";
publisher = "thenuprojectcontributors";
version = "0.7.0";
sha256 = "sha256-+AGJkFx/uzgQzuRnRBZ44xGNQ6a/QWt7SNiQgwPTZxo=";
};
meta.license = lib.licenses.mit;
};
tiehuis.zig = buildVscodeMarketplaceExtension { tiehuis.zig = buildVscodeMarketplaceExtension {
mktplcRef = { mktplcRef = {
name = "zig"; name = "zig";

View File

@ -2,11 +2,11 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "sic"; pname = "sic";
version = "1.2"; version = "1.3";
src = fetchurl { src = fetchurl {
url = "https://dl.suckless.org/tools/sic-${version}.tar.gz"; url = "https://dl.suckless.org/tools/sic-${version}.tar.gz";
sha256 = "ac07f905995e13ba2c43912d7a035fbbe78a628d7ba1c256f4ca1372fb565185"; hash = "sha256-MEePqz68dfLrXQjLtbL+3K9IkRbnWi3XGX4+nHM9ZdI=";
}; };
makeFlags = [ "CC:=$(CC)" ]; makeFlags = [ "CC:=$(CC)" ];

View File

@ -1,47 +1,29 @@
{ lib, mkDerivation, fetchFromGitHub, pkg-config, cmake { lib, mkDerivation, fetchFromGitHub, pkg-config, cmake
, libzip, boost, fftw, qtbase, libusb1, libsigrok4dsl , libzip, boost, fftw, qtbase, libusb1
, libsigrokdecode4dsl, python3, fetchpatch , python3, fetchpatch
}: }:
mkDerivation rec { mkDerivation rec {
pname = "dsview"; pname = "dsview";
version = "1.12"; version = "1.2.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "DreamSourceLab"; owner = "DreamSourceLab";
repo = "DSView"; repo = "DSView";
rev = "v${version}"; rev = "v${version}";
sha256 = "q7F4FuK/moKkouXTNPZDVon/W/ZmgtNHJka4MiTxA0U="; sha256 = "sha256-TE2yfzv2h77GLMkmoVGXmzs7J0l/N+n1eYxyrtnrnGU=";
}; };
sourceRoot = "source/DSView";
patches = [ patches = [
# Fix absolute install paths # Fix absolute install paths
./install.patch ./install.patch
# Fix buld with Qt5.15 already merged upstream for future release
# Using local file instead of content of commit #33e3d896a47 because
# sourceRoot make it unappliable
./qt515.patch
# Change from upstream master that removes extern-C scopes which
# cause failures with modern glib. This can likely be removed if
# there is an upstream release >1.12
(fetchpatch {
name = "fix-extern-c.patch";
url = "https://github.com/DreamSourceLab/DSView/commit/33cc733abe19872bf5ed08540a94b798d0d4ecf4.patch";
sha256 = "sha256-TLfLQa3sdyNHTpMMvId/V6uUuOFihOZMFJOj9frnDoY=";
stripLen = 2;
extraPrefix = "";
})
]; ];
nativeBuildInputs = [ cmake pkg-config ]; nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [ buildInputs = [
boost fftw qtbase libusb1 libzip libsigrokdecode4dsl libsigrok4dsl boost fftw qtbase libusb1 libzip
python3 python3
]; ];

View File

@ -1,15 +1,23 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt
index c1c33e1..208a184 100644 index eb9be42..220817c 100644
--- a/CMakeLists.txt --- a/CMakeLists.txt
+++ b/CMakeLists.txt +++ b/CMakeLists.txt
@@ -427,8 +427,8 @@ @@ -662,16 +662,8 @@ install(FILES DSView/icons/logo.svg DESTINATION share/icons/hicolor/scalable/app
install(FILES ../NEWS31 DESTINATION share/${PROJECT_NAME} RENAME NEWS31) install(FILES DSView/icons/logo.svg DESTINATION share/pixmaps RENAME dsview.svg)
install(FILES ../ug25.pdf DESTINATION share/${PROJECT_NAME} RENAME ug25.pdf)
install(FILES ../ug31.pdf DESTINATION share/${PROJECT_NAME} RENAME ug31.pdf)
-install(FILES DreamSourceLab.rules DESTINATION /etc/udev/rules.d/)
-install(FILES DSView.desktop DESTINATION /usr/share/applications/)
+install(FILES DreamSourceLab.rules DESTINATION etc/udev/rules.d/)
+install(FILES DSView.desktop DESTINATION share/applications/)
#=============================================================================== if(CMAKE_SYSTEM_NAME MATCHES "Linux")
#= Packaging (handled by CPack) - install(FILES DSView/DSView.desktop DESTINATION /usr/share/applications RENAME dsview.desktop)
-
- if(IS_DIRECTORY /usr/lib/udev/rules.d)
- install(FILES DSView/DreamSourceLab.rules DESTINATION /usr/lib/udev/rules.d RENAME 60-dreamsourcelab.rules)
- elseif(IS_DIRECTORY /lib/udev/rules.d)
- install(FILES DSView/DreamSourceLab.rules DESTINATION /lib/udev/rules.d RENAME 60-dreamsourcelab.rules)
- elseif(IS_DIRECTORY /etc/udev/rules.d)
- install(FILES DSView/DreamSourceLab.rules DESTINATION /etc/udev/rules.d RENAME 60-dreamsourcelab.rules)
- endif()
-
+ install(FILES DSView/DSView.desktop DESTINATION share/applications RENAME dsview.desktop)
+ install(FILES DSView/DreamSourceLab.rules DESTINATION etc/udev/rules.d RENAME 60-dreamsourcelab.rules)
endif()
install(FILES NEWS25 DESTINATION share/DSView RENAME NEWS25)

View File

@ -1,28 +0,0 @@
{ lib, stdenv, pkg-config, autoreconfHook,
glib, libzip, libserialport, check, libusb1, libftdi,
systemd, alsa-lib, dsview
}:
stdenv.mkDerivation {
inherit (dsview) version src;
pname = "libsigrok4dsl";
postUnpack = ''
export sourceRoot=$sourceRoot/libsigrok4DSL
'';
nativeBuildInputs = [ pkg-config autoreconfHook ];
buildInputs = [
glib libzip libserialport libusb1 libftdi systemd check alsa-lib
];
meta = with lib; {
description = "A fork of the sigrok library for usage with DSView";
homepage = "https://www.dreamsourcelab.com/";
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = [ maintainers.bachp ];
};
}

View File

@ -1,27 +0,0 @@
{ lib, stdenv, pkg-config, autoreconfHook,
glib, check, python3, dsview
}:
stdenv.mkDerivation {
inherit (dsview) version src;
pname = "libsigrokdecode4dsl";
postUnpack = ''
export sourceRoot=$sourceRoot/libsigrokdecode4DSL
'';
nativeBuildInputs = [ pkg-config autoreconfHook ];
buildInputs = [
python3 glib check
];
meta = with lib; {
description = "A fork of the sigrokdecode library for usage with DSView";
homepage = "https://www.dreamsourcelab.com/";
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = [ maintainers.bachp ];
};
}

View File

@ -1,13 +0,0 @@
diff --git a/pv/view/viewport.cpp b/pv/view/viewport.cpp
index 921d3db..16cdce9 100755
--- a/pv/view/viewport.cpp
+++ b/pv/view/viewport.cpp
@@ -37,7 +37,7 @@
#include <QMouseEvent>
#include <QStyleOption>
-
+#include <QPainterPath>
#include <math.h>

View File

@ -0,0 +1,36 @@
{ lib
, stdenv
, rustPlatform
, fetchFromGitHub
, DiskArbitration
, Foundation
}:
rustPlatform.buildRustPackage rec {
pname = "git-credential-keepassxc";
version = "0.10.1";
src = fetchFromGitHub {
owner = "Frederick888";
repo = "git-credential-keepassxc";
rev = "v${version}";
hash = "sha256-zVE3RQlh0SEV4iavz40YhR+MP31oLCvG54H8gqXwL/k=";
};
cargoHash = "sha256-H75SGbT//02I+umttnPM5BwtFkDVNxEYLf84oULEuEk=";
buildInputs = lib.optionals stdenv.isDarwin [ DiskArbitration Foundation ];
meta = with lib; {
description = "Helper that allows Git (and shell scripts) to use KeePassXC as credential store";
longDescription = ''
git-credential-keepassxc is a Git credential helper that allows Git
(and shell scripts) to get/store logins from/to KeePassXC.
It communicates with KeePassXC using keepassxc-protocol which is
originally designed for browser extensions.
'';
homepage = "https://github.com/Frederick888/git-credential-keepassxc";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ fgaz ];
};
}

View File

@ -3,7 +3,6 @@
, makeWrapper , makeWrapper
, lib , lib
, extraPackages ? [] , extraPackages ? []
, cri-o
, runc # Default container runtime , runc # Default container runtime
, crun # Container runtime (default with cgroups v2 for podman/buildah) , crun # Container runtime (default with cgroups v2 for podman/buildah)
, conmon # Container runtime monitor , conmon # Container runtime monitor
@ -12,8 +11,6 @@
}: }:
let let
cri-o = cri-o-unwrapped;
binPath = lib.makeBinPath ([ binPath = lib.makeBinPath ([
runc runc
crun crun
@ -22,13 +19,13 @@ let
iptables iptables
] ++ extraPackages); ] ++ extraPackages);
in runCommand cri-o.name { in runCommand cri-o-unwrapped.name {
name = "${cri-o.pname}-wrapper-${cri-o.version}"; name = "${cri-o-unwrapped.pname}-wrapper-${cri-o-unwrapped.version}";
inherit (cri-o) pname version passthru; inherit (cri-o-unwrapped) pname version passthru;
preferLocalBuild = true; preferLocalBuild = true;
meta = builtins.removeAttrs cri-o.meta [ "outputsToInstall" ]; meta = builtins.removeAttrs cri-o-unwrapped.meta [ "outputsToInstall" ];
outputs = [ outputs = [
"out" "out"
@ -40,7 +37,7 @@ in runCommand cri-o.name {
]; ];
} '' } ''
ln -s ${cri-o.man} $man ln -s ${cri-o-unwrapped.man} $man
mkdir -p $out/bin mkdir -p $out/bin
ln -s ${cri-o-unwrapped}/share $out/share ln -s ${cri-o-unwrapped}/share $out/share

View File

@ -5,7 +5,6 @@
, lib , lib
, stdenv , stdenv
, extraPackages ? [] , extraPackages ? []
, podman # Docker compat
, runc # Default container runtime , runc # Default container runtime
, crun # Container runtime (default with cgroups v2 for podman/buildah) , crun # Container runtime (default with cgroups v2 for podman/buildah)
, conmon # Container runtime monitor , conmon # Container runtime monitor
@ -23,8 +22,6 @@
# adding aardvark-dns/netavark to `helpersBin` requires changes to the modules and tests # adding aardvark-dns/netavark to `helpersBin` requires changes to the modules and tests
let let
podman = podman-unwrapped;
binPath = lib.makeBinPath ([ binPath = lib.makeBinPath ([
] ++ lib.optionals stdenv.isLinux [ ] ++ lib.optionals stdenv.isLinux [
runc runc
@ -38,24 +35,24 @@ let
] ++ extraPackages); ] ++ extraPackages);
helpersBin = symlinkJoin { helpersBin = symlinkJoin {
name = "${podman.pname}-helper-binary-wrapper-${podman.version}"; name = "${podman-unwrapped.pname}-helper-binary-wrapper-${podman-unwrapped.version}";
# this only works for some binaries, others may need to be be added to `binPath` or in the modules # this only works for some binaries, others may need to be be added to `binPath` or in the modules
paths = [ paths = [
gvproxy gvproxy
] ++ lib.optionals stdenv.isLinux [ ] ++ lib.optionals stdenv.isLinux [
catatonit # added here for the pause image and also set in `containersConf` for `init_path` catatonit # added here for the pause image and also set in `containersConf` for `init_path`
podman.rootlessport podman-unwrapped.rootlessport
]; ];
}; };
in runCommand podman.name { in runCommand podman-unwrapped.name {
name = "${podman.pname}-wrapper-${podman.version}"; name = "${podman-unwrapped.pname}-wrapper-${podman-unwrapped.version}";
inherit (podman) pname version passthru; inherit (podman-unwrapped) pname version passthru;
preferLocalBuild = true; preferLocalBuild = true;
meta = builtins.removeAttrs podman.meta [ "outputsToInstall" ]; meta = builtins.removeAttrs podman-unwrapped.meta [ "outputsToInstall" ];
outputs = [ outputs = [
"out" "out"
@ -67,7 +64,7 @@ in runCommand podman.name {
]; ];
} '' } ''
ln -s ${podman.man} $man ln -s ${podman-unwrapped.man} $man
mkdir -p $out/bin mkdir -p $out/bin
ln -s ${podman-unwrapped}/etc $out/etc ln -s ${podman-unwrapped}/etc $out/etc

View File

@ -32,13 +32,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "picom"; pname = "picom";
version = "9.1"; version = "10";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "yshui"; owner = "yshui";
repo = "picom"; repo = "picom";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-Fqk6bPAOg4muxmSP+ezpGUNw6xrMWchZACKemeA08mA="; sha256 = "sha256-ACQBgAYtJ4OOQIismNYJB3z426GmlyUtXXbH06eRsgg=";
fetchSubmodules = true; fetchSubmodules = true;
}; };

View File

@ -1,9 +0,0 @@
source $stdenv/setup
mkdir $out
for file in $files
do
subdir=`dirname $file`
mkdir -p $out/$subdir
ln -s $dir/$file $out/$file
done

View File

@ -1,7 +0,0 @@
{name ? "", stdenv, dir, files}:
stdenv.mkDerivation {
inherit dir files;
name = if name == "" then dir.name else name;
builder = ./builder.sh;
}

View File

@ -1,19 +1,17 @@
{ lib, rustPlatform, fetchFromGitHub, cmake, stdenv, Security }: { lib, rustPlatform, fetchFromGitHub, stdenv, Security }:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "lunatic"; pname = "lunatic";
version = "0.10.1"; version = "0.12.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "lunatic-solutions"; owner = "lunatic-solutions";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-MQ10WwvUdqU4w9uA4H1+VRM29HXVtLMwfGvbM6VqS90="; sha256 = "sha256-7fxccufM5tunbutABEtsa6++OLTsS72oA219zvf+KN8=";
}; };
cargoSha256 = "sha256-tNYA3YruI7VENmLbd3rmZr7BkqHp1HNOfzPTkIiixqA="; cargoSha256 = "sha256-sHSQUvHTwyqMrGmwpblqpS4HfFiWGb+70a1uloDu2wY=";
nativeBuildInputs = [ cmake ];
buildInputs = lib.optional stdenv.isDarwin Security; buildInputs = lib.optional stdenv.isDarwin Security;

View File

@ -17,15 +17,17 @@ let
in in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "duckdb"; pname = "duckdb";
version = "0.5.1"; version = "0.6.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = pname; owner = pname;
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-qzDQFS2ogQ6hqTCddHnttWF365007Labnn4BmHB219k="; sha256 = "sha256-XCEX2VCynbMUP5xsxWq8PlHnfrBfES5c2fuu2jhM+tI=";
}; };
patches = [ ./version.patch ];
postPatch = '' postPatch = ''
substituteInPlace CMakeLists.txt --subst-var-by DUCKDB_VERSION "v${version}" substituteInPlace CMakeLists.txt --subst-var-by DUCKDB_VERSION "v${version}"
''; '';
@ -42,6 +44,7 @@ stdenv.mkDerivation rec {
"-DBUILD_TPCE=ON" "-DBUILD_TPCE=ON"
"-DBUILD_TPCH_EXTENSION=ON" "-DBUILD_TPCH_EXTENSION=ON"
"-DBUILD_VISUALIZER_EXTENSION=ON" "-DBUILD_VISUALIZER_EXTENSION=ON"
"-DBUILD_INET_EXTENSION=ON"
"-DJDBC_DRIVER=${enableFeature withJdbc}" "-DJDBC_DRIVER=${enableFeature withJdbc}"
]; ];
@ -56,13 +59,20 @@ stdenv.mkDerivation rec {
installCheckPhase = installCheckPhase =
let let
excludes = map (pattern: "exclude:'${pattern}'") [ excludes = map (pattern: "exclude:'${pattern}'") [
"*test_slow" "[s3]"
"Test file buffers for reading/writing to file" "Test closing database during long running query"
"[test_slow]"
"test/common/test_cast_hugeint.test" "test/common/test_cast_hugeint.test"
"test/sql/copy/csv/test_csv_remote.test" "test/sql/copy/csv/test_csv_remote.test"
"test/sql/copy/parquet/test_parquet_remote.test" "test/sql/copy/parquet/test_parquet_remote.test"
"test/sql/copy/parquet/test_parquet_remote_foreign_files.test" "test/sql/copy/parquet/test_parquet_remote_foreign_files.test"
"test/sql/storage/compression/chimp/chimp_read.test"
"test/sql/storage/compression/chimp/chimp_read_float.test"
"test/sql/storage/compression/patas/patas_compression_ratio.test_coverage"
"test/sql/storage/compression/patas/patas_read.test"
# these are only hidden if no filters are passed in
"[!hide]"
# this test apparently never terminates
"test/sql/copy/csv/auto/test_csv_auto.test"
] ++ lib.optionals stdenv.isAarch64 [ ] ++ lib.optionals stdenv.isAarch64 [
"test/sql/aggregate/aggregates/test_kurtosis.test" "test/sql/aggregate/aggregates/test_kurtosis.test"
"test/sql/aggregate/aggregates/test_skewness.test" "test/sql/aggregate/aggregates/test_skewness.test"

View File

@ -1,27 +1,34 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt
index 92c097228..5f51929f6 100644 index 349af6acf7..7ffec0b4cb 100644
--- a/CMakeLists.txt --- a/CMakeLists.txt
+++ b/CMakeLists.txt +++ b/CMakeLists.txt
@@ -157,45 +157,7 @@ if(${CMAKE_SYSTEM_NAME} STREQUAL "SunOS") @@ -196,52 +196,7 @@ if(${CMAKE_SYSTEM_NAME} STREQUAL "SunOS")
set(SUN TRUE) set(SUN TRUE)
endif() endif()
-execute_process( -find_package(Git)
- COMMAND git log -1 --format=%h -if(Git_FOUND)
- WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} - if (NOT DEFINED GIT_COMMIT_HASH)
- RESULT_VARIABLE GIT_RESULT - execute_process(
- OUTPUT_VARIABLE GIT_COMMIT_HASH - COMMAND ${GIT_EXECUTABLE} log -1 --format=%h
- OUTPUT_STRIP_TRAILING_WHITESPACE) - WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
-execute_process( - RESULT_VARIABLE GIT_RESULT
- COMMAND git describe --tags --abbrev=0 - OUTPUT_VARIABLE GIT_COMMIT_HASH
- WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} - OUTPUT_STRIP_TRAILING_WHITESPACE)
- OUTPUT_VARIABLE GIT_LAST_TAG - endif()
- OUTPUT_STRIP_TRAILING_WHITESPACE) - execute_process(
-execute_process( - COMMAND ${GIT_EXECUTABLE} describe --tags --abbrev=0
- COMMAND git describe --tags --long - WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
- WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} - OUTPUT_VARIABLE GIT_LAST_TAG
- OUTPUT_VARIABLE GIT_ITERATION - OUTPUT_STRIP_TRAILING_WHITESPACE)
- OUTPUT_STRIP_TRAILING_WHITESPACE) - execute_process(
- COMMAND ${GIT_EXECUTABLE} describe --tags --long
- WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
- OUTPUT_VARIABLE GIT_ITERATION
- OUTPUT_STRIP_TRAILING_WHITESPACE)
-else()
- message("Git NOT FOUND")
-endif()
- -
-if(GIT_RESULT EQUAL "0") -if(GIT_RESULT EQUAL "0")
- string(REGEX REPLACE "v([0-9]+).[0-9]+.[0-9]+" "\\1" DUCKDB_MAJOR_VERSION "${GIT_LAST_TAG}") - string(REGEX REPLACE "v([0-9]+).[0-9]+.[0-9]+" "\\1" DUCKDB_MAJOR_VERSION "${GIT_LAST_TAG}")
@ -47,5 +54,5 @@ index 92c097228..5f51929f6 100644
-endif() -endif()
+set(DUCKDB_VERSION "@DUCKDB_VERSION@") +set(DUCKDB_VERSION "@DUCKDB_VERSION@")
option(AMALGAMATION_BUILD message(STATUS "git hash ${GIT_COMMIT_HASH}, version ${DUCKDB_VERSION}")
"Build from the amalgamation files, rather than from the normal sources."

View File

@ -13,13 +13,19 @@
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "duckdb"; inherit (duckdb) pname version src patches;
inherit (duckdb) version src patches;
format = "setuptools"; format = "setuptools";
preConfigure = '' # we can't use sourceRoot otherwise patches don't apply, because the patches
# apply to the C++ library
postPatch = ''
cd tools/pythonpkg cd tools/pythonpkg
substituteInPlace setup.py --replace "multiprocessing.cpu_count()" "$NIX_BUILD_CORES"
# 1. let nix control build cores
# 2. unconstrain setuptools_scm version
substituteInPlace setup.py \
--replace "multiprocessing.cpu_count()" "$NIX_BUILD_CORES" \
--replace "setuptools_scm<7.0.0" "setuptools_scm"
''; '';
SETUPTOOLS_SCM_PRETEND_VERSION = version; SETUPTOOLS_SCM_PRETEND_VERSION = version;

View File

@ -4,7 +4,6 @@
, lib , lib
, stdenv , stdenv
, extraPackages ? [] , extraPackages ? []
, buildah
, runc # Default container runtime , runc # Default container runtime
, crun # Container runtime (default with cgroups v2 for podman/buildah) , crun # Container runtime (default with cgroups v2 for podman/buildah)
, conmon # Container runtime monitor , conmon # Container runtime monitor
@ -15,10 +14,6 @@
}: }:
let let
buildah = buildah-unwrapped;
preferLocalBuild = true;
binPath = lib.makeBinPath ([ binPath = lib.makeBinPath ([
] ++ lib.optionals stdenv.isLinux [ ] ++ lib.optionals stdenv.isLinux [
runc runc
@ -30,11 +25,13 @@ let
iptables iptables
] ++ extraPackages); ] ++ extraPackages);
in runCommand buildah.name { in runCommand buildah-unwrapped.name {
name = "${buildah.pname}-wrapper-${buildah.version}"; name = "${buildah-unwrapped.pname}-wrapper-${buildah-unwrapped.version}";
inherit (buildah) pname version; inherit (buildah-unwrapped) pname version;
meta = builtins.removeAttrs buildah.meta [ "outputsToInstall" ]; preferLocalBuild = true;
meta = builtins.removeAttrs buildah-unwrapped.meta [ "outputsToInstall" ];
outputs = [ outputs = [
"out" "out"
@ -46,7 +43,7 @@ in runCommand buildah.name {
]; ];
} '' } ''
ln -s ${buildah.man} $man ln -s ${buildah-unwrapped.man} $man
mkdir -p $out/bin mkdir -p $out/bin
ln -s ${buildah-unwrapped}/share $out/share ln -s ${buildah-unwrapped}/share $out/share

View File

@ -4,11 +4,11 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "jenkins"; pname = "jenkins";
version = "2.361.3"; version = "2.361.4";
src = fetchurl { src = fetchurl {
url = "https://get.jenkins.io/war-stable/${version}/jenkins.war"; url = "https://get.jenkins.io/war-stable/${version}/jenkins.war";
hash = "sha256-85y40J/RfHLcCWURzlDyRfwwBNECKqr2BCGlNvdAybk="; hash = "sha256-s4/iGK+1RHsMmm+jCNerdirFpY3YmqaLc1BnrWw3wXs=";
}; };
nativeBuildInputs = [ makeWrapper ]; nativeBuildInputs = [ makeWrapper ];

View File

@ -2,13 +2,13 @@
buildGoModule rec { buildGoModule rec {
pname = "oh-my-posh"; pname = "oh-my-posh";
version = "12.13.0"; version = "12.13.3";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "jandedobbeleer"; owner = "jandedobbeleer";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-bGg0UqqplJpsJ2xOHmu6y8ixGxdDkWwZyRrgzrNBlIY="; sha256 = "sha256-1H3BlKxTthyVXEaLISruZDFIeXEAaeZjGp597clPeLs=";
}; };
vendorSha256 = "sha256-OrtKFkWXqVoXKmN6BT8YbCNjR1gRTT4gPNwmirn7fjU="; vendorSha256 = "sha256-OrtKFkWXqVoXKmN6BT8YbCNjR1gRTT4gPNwmirn7fjU=";

View File

@ -8,16 +8,16 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "ruff"; pname = "ruff";
version = "0.0.121"; version = "0.0.122";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "charliermarsh"; owner = "charliermarsh";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-vplpsobc3LFkgJsyXGT0jel8nT6begotEvYGQESiMFI="; sha256 = "sha256-+CQOQcA7JLHsl6ieDpIEzUdeMBsGyP686mWaYgyweH4=";
}; };
cargoSha256 = "sha256-gtITHmB9Qd417yWqKcfidjUjAuVz1GNmbX0aL0Bl7jQ="; cargoSha256 = "sha256-ZxJ7ErGdsI1dZIeUVdYBD4IF0nHHnIJGUXn+rtSBLLY=";
buildInputs = lib.optionals stdenv.isDarwin [ buildInputs = lib.optionals stdenv.isDarwin [
CoreServices CoreServices

View File

@ -3,7 +3,7 @@
with lib; with lib;
buildLinux (args // rec { buildLinux (args // rec {
version = "5.10.154"; version = "5.10.155";
# modDirVersion needs to be x.y.z, will automatically add .0 if needed # modDirVersion needs to be x.y.z, will automatically add .0 if needed
modDirVersion = if (modDirVersionArg == null) then concatStringsSep "." (take 3 (splitVersion "${version}.0")) else modDirVersionArg; modDirVersion = if (modDirVersionArg == null) then concatStringsSep "." (take 3 (splitVersion "${version}.0")) else modDirVersionArg;
@ -13,6 +13,6 @@ buildLinux (args // rec {
src = fetchurl { src = fetchurl {
url = "mirror://kernel/linux/kernel/v5.x/linux-${version}.tar.xz"; url = "mirror://kernel/linux/kernel/v5.x/linux-${version}.tar.xz";
sha256 = "12763vlnrgmgj03khj9ls2g7zlhclj9g1l3008b36j9jli6kvbn6"; sha256 = "1wyla96qsdf50n7qjj4hdf36bj56whv7gc9mgw9bvrsqdi92gc7i";
}; };
} // (args.argsOverride or {})) } // (args.argsOverride or {}))

View File

@ -3,7 +3,7 @@
with lib; with lib;
buildLinux (args // rec { buildLinux (args // rec {
version = "5.15.78"; version = "5.15.79";
# modDirVersion needs to be x.y.z, will automatically add .0 if needed # modDirVersion needs to be x.y.z, will automatically add .0 if needed
modDirVersion = if (modDirVersionArg == null) then concatStringsSep "." (take 3 (splitVersion "${version}.0")) else modDirVersionArg; modDirVersion = if (modDirVersionArg == null) then concatStringsSep "." (take 3 (splitVersion "${version}.0")) else modDirVersionArg;
@ -13,6 +13,6 @@ buildLinux (args // rec {
src = fetchurl { src = fetchurl {
url = "mirror://kernel/linux/kernel/v5.x/linux-${version}.tar.xz"; url = "mirror://kernel/linux/kernel/v5.x/linux-${version}.tar.xz";
sha256 = "16d4d4g5n2g6jpp8bvad1bm1l0b0nb4ckwsmq6w2g3538xrrzf8d"; sha256 = "0m61k7k6lj24z9a266q08wzghggjik2wizcabdwd1vn0vcqr18yb";
}; };
} // (args.argsOverride or { })) } // (args.argsOverride or { }))

View File

@ -3,7 +3,7 @@
with lib; with lib;
buildLinux (args // rec { buildLinux (args // rec {
version = "6.0.8"; version = "6.0.9";
# modDirVersion needs to be x.y.z, will automatically add .0 if needed # modDirVersion needs to be x.y.z, will automatically add .0 if needed
modDirVersion = if (modDirVersionArg == null) then concatStringsSep "." (take 3 (splitVersion "${version}.0")) else modDirVersionArg; modDirVersion = if (modDirVersionArg == null) then concatStringsSep "." (take 3 (splitVersion "${version}.0")) else modDirVersionArg;
@ -13,6 +13,6 @@ buildLinux (args // rec {
src = fetchurl { src = fetchurl {
url = "mirror://kernel/linux/kernel/v6.x/linux-${version}.tar.xz"; url = "mirror://kernel/linux/kernel/v6.x/linux-${version}.tar.xz";
sha256 = "0mx2bxgnxm3vz688268939xw90jqci7xn992kfpny74mjqwzir0d"; sha256 = "1irip1yk62carcisxlacwcxsiqib4qswx6h5mfhv8f97x04a4531";
}; };
} // (args.argsOverride or { })) } // (args.argsOverride or { }))

View File

@ -9,13 +9,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "icinga2${nameSuffix}"; pname = "icinga2${nameSuffix}";
version = "2.13.5"; version = "2.13.6";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "icinga"; owner = "icinga";
repo = "icinga2"; repo = "icinga2";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-XVA3VIGmj3mXfx2eIJ5X4hfjRrnZaAHYMPRyy9+9QGc="; sha256 = "sha256-Zrq+pw1dZyKVxpbsXeEPU3hLqcaYj/0wqB9HmYXnd0Y=";
}; };
patches = [ patches = [

View File

@ -1,7 +1,6 @@
{ cmake, cudatoolkit, fetchFromGitHub, gfortran, lib, llvmPackages, python3Packages, stdenv, targetPlatform { cmake, cudatoolkit, fetchFromGitHub, gfortran, lib, llvmPackages, python3Packages, stdenv, targetPlatform
, enableCfp ? true , enableCfp ? true
, enableCuda ? false , enableCuda ? false
, enableExamples ? true
, enableFortran ? builtins.elem targetPlatform.system gfortran.meta.platforms , enableFortran ? builtins.elem targetPlatform.system gfortran.meta.platforms
, enableOpenMP ? true , enableOpenMP ? true
, enablePython ? true , enablePython ? true
@ -9,13 +8,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "zfp"; pname = "zfp";
version = "0.5.5"; version = "1.0.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "LLNL"; owner = "LLNL";
repo = "zfp"; repo = "zfp";
rev = version; rev = version;
sha256 = "19ycflz35qsrzfcvxdyy0mgbykfghfi9y5v684jb4awjp7nf562c"; sha256 = "sha256-E2LI1rWo1HO5O/sxPHAmLDs3Z5xouzlgMj11rQFPNYQ=";
}; };
nativeBuildInputs = [ cmake ]; nativeBuildInputs = [ cmake ];
@ -25,27 +24,24 @@ stdenv.mkDerivation rec {
++ lib.optional enableOpenMP llvmPackages.openmp ++ lib.optional enableOpenMP llvmPackages.openmp
++ lib.optionals enablePython (with python3Packages; [ cython numpy python ]); ++ lib.optionals enablePython (with python3Packages; [ cython numpy python ]);
# compile CUDA code for all extant GPUs so the binary will work with any GPU
# and driver combination. to be ultimately solved upstream:
# https://github.com/LLNL/zfp/issues/178
# NB: not in cmakeFlags due to https://github.com/NixOS/nixpkgs/issues/114044
preConfigure = lib.optionalString enableCuda ''
cmakeFlagsArray+=(
"-DCMAKE_CUDA_FLAGS=-gencode=arch=compute_52,code=sm_52 -gencode=arch=compute_60,code=sm_60 -gencode=arch=compute_61,code=sm_61 -gencode=arch=compute_70,code=sm_70 -gencode=arch=compute_75,code=sm_75 -gencode=arch=compute_80,code=sm_80 -gencode=arch=compute_86,code=sm_86 -gencode=arch=compute_87,code=sm_87 -gencode=arch=compute_86,code=compute_86"
)
'';
cmakeFlags = [ cmakeFlags = [
# More tests not enabled by default ] ++ lib.optional enableCfp "-DBUILD_CFP=ON"
''-DZFP_BINARY_DIR=${placeholder "out"}''
''-DZFP_BUILD_TESTING_LARGE=ON''
]
++ lib.optionals targetPlatform.isDarwin [
"-DCMAKE_INSTALL_BINDIR=bin"
"-DCMAKE_INSTALL_LIBDIR=lib"
]
++ lib.optional enableCfp "-DBUILD_CFP=ON"
++ lib.optional enableCuda "-DZFP_WITH_CUDA=ON" ++ lib.optional enableCuda "-DZFP_WITH_CUDA=ON"
++ lib.optional enableExamples "-DBUILD_EXAMPLES=ON"
++ lib.optional enableFortran "-DBUILD_ZFORP=ON" ++ lib.optional enableFortran "-DBUILD_ZFORP=ON"
++ lib.optional enableOpenMP "-DZFP_WITH_OPENMP=ON" ++ lib.optional enableOpenMP "-DZFP_WITH_OPENMP=ON"
++ lib.optional enablePython "-DBUILD_ZFPY=ON" ++ lib.optional enablePython "-DBUILD_ZFPY=ON"
++ ([ "-DBUILD_UTILITIES=${if enableUtilities then "ON" else "OFF"}" ]); ++ ([ "-DBUILD_UTILITIES=${if enableUtilities then "ON" else "OFF"}" ]);
preCheck = lib.optional targetPlatform.isDarwin ''
export DYLD_LIBRARY_PATH="$out/lib:$DYLD_LIBRARY_PATH"
'';
doCheck = true; doCheck = true;
meta = with lib; { meta = with lib; {

View File

@ -7081,6 +7081,10 @@ with pkgs;
git-credential-1password = callPackage ../applications/version-management/git-and-tools/git-credential-1password { }; git-credential-1password = callPackage ../applications/version-management/git-and-tools/git-credential-1password { };
git-credential-keepassxc = callPackage ../applications/version-management/git-and-tools/git-credential-keepassxc {
inherit (darwin.apple_sdk.frameworks) DiskArbitration Foundation;
};
git-crecord = callPackage ../applications/version-management/git-crecord { }; git-crecord = callPackage ../applications/version-management/git-crecord { };
git-crypt = callPackage ../applications/version-management/git-and-tools/git-crypt { }; git-crypt = callPackage ../applications/version-management/git-and-tools/git-crypt { };
@ -16819,10 +16823,6 @@ with pkgs;
libsigrokdecode = callPackage ../development/tools/libsigrokdecode { }; libsigrokdecode = callPackage ../development/tools/libsigrokdecode { };
# special forks used for dsview
libsigrok4dsl = callPackage ../applications/science/electronics/dsview/libsigrok4dsl.nix { };
libsigrokdecode4dsl = callPackage ../applications/science/electronics/dsview/libsigrokdecode4dsl.nix { };
sigrok-firmware-fx2lafw = callPackage ../development/tools/sigrok-firmware-fx2lafw { }; sigrok-firmware-fx2lafw = callPackage ../development/tools/sigrok-firmware-fx2lafw { };
cli11 = callPackage ../development/tools/misc/cli11 { }; cli11 = callPackage ../development/tools/misc/cli11 { };