Merge master into staging-next

This commit is contained in:
github-actions[bot] 2024-08-26 12:05:25 +00:00 committed by GitHub
commit 132f2322d0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
65 changed files with 714 additions and 233 deletions

View File

@ -404,6 +404,12 @@ lib.mapAttrs mkLicense ({
fullName = "CeCILL-C Free Software License Agreement";
};
cockroachdb-community-license = {
fullName = "CockroachDB Community License Agreement";
url = "https://www.cockroachlabs.com/cockroachdb-community-license/";
free = false;
};
cpal10 = {
spdxId = "CPAL-1.0";
fullName = "Common Public Attribution License 1.0";

View File

@ -542,21 +542,21 @@ checkConfigOutput '^"pear\\npear"$' config.twice.raw ./merge-module-with-key.nix
# Declaration positions
# Line should be present for direct options
checkConfigOutput '^10$' options.imported.line10.declarationPositions.0.line ./declaration-positions.nix
checkConfigOutput '/declaration-positions.nix"$' options.imported.line10.declarationPositions.0.file ./declaration-positions.nix
checkConfigOutput '^14$' options.imported.line14.declarationPositions.0.line ./declaration-positions.nix
checkConfigOutput '/declaration-positions.nix"$' options.imported.line14.declarationPositions.0.file ./declaration-positions.nix
# Generated options may not have line numbers but they will at least get the
# right file
checkConfigOutput '/declaration-positions.nix"$' options.generated.line18.declarationPositions.0.file ./declaration-positions.nix
checkConfigOutput '^null$' options.generated.line18.declarationPositions.0.line ./declaration-positions.nix
checkConfigOutput '/declaration-positions.nix"$' options.generated.line22.declarationPositions.0.file ./declaration-positions.nix
checkConfigOutput '^null$' options.generated.line22.declarationPositions.0.line ./declaration-positions.nix
# Submodules don't break it
checkConfigOutput '^39$' config.submoduleLine34.submodDeclLine39.0.line ./declaration-positions.nix
checkConfigOutput '/declaration-positions.nix"$' config.submoduleLine34.submodDeclLine39.0.file ./declaration-positions.nix
checkConfigOutput '^45$' config.submoduleLine38.submodDeclLine45.0.line ./declaration-positions.nix
checkConfigOutput '/declaration-positions.nix"$' config.submoduleLine38.submodDeclLine45.0.file ./declaration-positions.nix
# New options under freeform submodules get collected into the parent submodule
# (consistent with .declarations behaviour, but weird; notably appears in system.build)
checkConfigOutput '^34|23$' options.submoduleLine34.declarationPositions.0.line ./declaration-positions.nix
checkConfigOutput '^34|23$' options.submoduleLine34.declarationPositions.1.line ./declaration-positions.nix
checkConfigOutput '^38|27$' options.submoduleLine38.declarationPositions.0.line ./declaration-positions.nix
checkConfigOutput '^38|27$' options.submoduleLine38.declarationPositions.1.line ./declaration-positions.nix
# nested options work
checkConfigOutput '^30$' options.nested.nestedLine30.declarationPositions.0.line ./declaration-positions.nix
checkConfigOutput '^34$' options.nested.nestedLine34.declarationPositions.0.line ./declaration-positions.nix
cat <<EOF
====== module tests ======

View File

@ -1,13 +1,17 @@
{ lib, options, ... }:
let discardPositions = lib.mapAttrs (k: v: v);
let
discardPositions = lib.mapAttrs (k: v: v);
in
# unsafeGetAttrPos is unspecified best-effort behavior, so we only want to consider this test on an evaluator that satisfies some basic assumptions about this function.
assert builtins.unsafeGetAttrPos "a" { a = true; } != null;
assert builtins.unsafeGetAttrPos "a" (discardPositions { a = true; }) == null;
assert
builtins.unsafeGetAttrPos "a" (discardPositions {
a = true;
}) == null;
{
imports = [
{
options.imported.line10 = lib.mkOption {
options.imported.line14 = lib.mkOption {
type = lib.types.int;
};
@ -15,35 +19,39 @@ assert builtins.unsafeGetAttrPos "a" (discardPositions { a = true; }) == null;
# programs.firefox.nativeMessagingHosts.ff2mpv. We don't expect to get
# line numbers for these, but we can fall back on knowing the file.
options.generated = discardPositions {
line18 = lib.mkOption {
line22 = lib.mkOption {
type = lib.types.int;
};
};
options.submoduleLine34.extraOptLine23 = lib.mkOption {
options.submoduleLine38.extraOptLine27 = lib.mkOption {
default = 1;
type = lib.types.int;
};
}
];
options.nested.nestedLine30 = lib.mkOption {
options.nested.nestedLine34 = lib.mkOption {
type = lib.types.int;
};
options.submoduleLine34 = lib.mkOption {
options.submoduleLine38 = lib.mkOption {
default = { };
type = lib.types.submoduleWith {
modules = [
({ options, ... }: {
options.submodDeclLine39 = lib.mkOption { };
})
(
{ options, ... }:
{
options.submodDeclLine45 = lib.mkOption { };
}
)
{ freeformType = with lib.types; lazyAttrsOf (uniq unspecified); }
];
};
};
config = {
submoduleLine34.submodDeclLine39 = (options.submoduleLine34.type.getSubOptions [ ]).submodDeclLine39.declarationPositions;
submoduleLine38.submodDeclLine45 =
(options.submoduleLine38.type.getSubOptions [ ]).submodDeclLine45.declarationPositions;
};
}

View File

@ -6991,6 +6991,12 @@
githubId = 14952658;
name = "Tom Dohrmann";
};
frectonz = {
name = "Fraol Lemecha";
email = "fraol0912@gmail.com";
github = "frectonz";
githubId = 53809656;
};
fredeb = {
email = "im@fredeb.dev";
github = "FredeEB";
@ -20413,6 +20419,13 @@
githubId = 3889585;
name = "Cheng Shao";
};
terryg = {
name = "Terry Garcia";
email = "terry@terryg.org";
github = "TerryGarcia";
githubId = 159372832;
keys = [ { fingerprint = "6F54 C08C 37C8 EC78 15FA 0D01 A721 8CBA 2D80 15C3"; } ];
};
tesq0 = {
email = "mikolaj.galkowski@gmail.com";
github = "tesq0";

View File

@ -33,6 +33,8 @@
- [Goatcounter](https://www.goatcounter.com/), Easy web analytics. No tracking of personal data. Available as [services.goatcounter](options.html#opt-services.goatcocunter.enable).
- [UWSM](https://github.com/Vladimir-csp/uwsm), a wayland session manager to wrap Wayland Compositors into useful systemd units such as `graphical-session.target`. Available as [programs.uwsm](#opt-programs.uwsm.enable).
- [Open-WebUI](https://github.com/open-webui/open-webui), a user-friendly WebUI
for LLMs. Available as [services.open-webui](#opt-services.open-webui.enable)
service.

View File

@ -310,6 +310,7 @@
./programs/wayland/miracle-wm.nix
./programs/wayland/river.nix
./programs/wayland/sway.nix
./programs/wayland/uwsm.nix
./programs/wayland/waybar.nix
./programs/wayland/wayfire.nix
./programs/weylus.nix

View File

@ -0,0 +1,129 @@
{
config,
lib,
pkgs,
...
}:
let
cfg = config.programs.uwsm;
# Helper function to create desktop entry files for UWSM-managed compositors
mk_uwsm_desktop_entry =
opts:
(pkgs.writeTextFile {
name = "${opts.name}-uwsm";
text = ''
[Desktop Entry]
Name=${opts.prettyName} (UWSM)
Comment=${opts.comment}
Exec=${lib.getExe cfg.package} start -S -F ${opts.binPath}
Type=Application
'';
destination = "/share/wayland-sessions/${opts.name}-uwsm.desktop";
derivationArgs = {
passthru.providedSessions = [ "${opts.name}-uwsm" ];
};
});
in
{
options.programs.uwsm = {
enable = lib.mkEnableOption ''
uwsm, which wraps standalone Wayland compositors with a set
of Systemd units on the fly. This essentially
binds the wayland compositor into `graphical-session-pre.target`,
`graphical-session.target`, `xdg-desktop-autostart.target`.
This is useful for Wayland compositors like Hyprland, Sway, Wayfire,
etc. that do not start these targets and services on their own.
::: {.note}
You must configure `waylandCompositors` suboptions as well
so that UWSM knows which compositors to manage.
Additionally, this by default uses `dbus-broker` as the dbus
implementation for better compatibility. If you dislike this behavior
you can set `services.dbus.implementation = lib.mkForce "dbus"`
in your configuration.
:::
If you are having trouble starting a service that depends on
`graphical-session.target`, while using a WM, enabling this option
might help
'';
package = lib.mkPackageOption pkgs "uwsm" { };
waylandCompositors = lib.mkOption {
description = ''
Configuration for UWSM-managed Wayland Compositors. This
creates a desktop entry file which will be used by Display
Managers like GDM, to allow starting the UWSM managed session.
'';
type = lib.types.attrsOf (
lib.types.submodule (
{ ... }:
{
options = {
prettyName = lib.mkOption {
type = lib.types.str;
description = "The full name of the desktop entry file.";
example = "ExampleWaylandCompositor";
};
comment = lib.mkOption {
type = lib.types.str;
description = "The comment field of the desktop entry file.";
default = "An intelligent Wayland compositor managed by UWSM.";
};
binPath = lib.mkOption {
type = lib.types.path;
description = ''
The wayland-compositor binary path that will be called by UWSM.
It is recommended to use the `/run/current-system/sw/bin/` path
instead of `lib.getExe pkgs.<compositor>` to avoid version mismatch
of the compositor used by UWSM and the one installed in the system.
'';
example = "/run/current-system/sw/bin/ExampleCompositor";
};
};
}
)
);
example = lib.literalExpression ''
hyprland = {
prettyName = "Hyprland";
comment = "Hyprland compositor managed by UWSM";
binPath = "/run/current-system/sw/bin/Hyprland";
};
sway = {
prettyName = "Sway";
comment = "Sway compositor managed by UWSM";
binPath = "/run/current-system/sw/bin/sway";
};
'';
};
};
config = lib.mkIf cfg.enable {
environment.systemPackages = [ cfg.package ];
systemd.packages = [ cfg.package ];
environment.pathsToLink = [ "/share/uwsm" ];
services.graphical-desktop.enable = true;
# UWSM recommends dbus broker for better compatibility
services.dbus.implementation = "broker";
services.displayManager.sessionPackages = lib.mapAttrsToList (
name: value:
mk_uwsm_desktop_entry {
inherit name;
inherit (value) prettyName comment binPath;
}
) cfg.waylandCompositors;
};
meta.maintainers = with lib.maintainers; [
johnrtitor
kai-tub
];
}

View File

@ -84,7 +84,7 @@ let
};
in
{
meta.maintainers = with maintainers; [ erikarvstedt Flakebi leona ];
meta.maintainers = with maintainers; [ leona SuperSandro2000 erikarvstedt ];
imports = [
(mkRenamedOptionModule [ "services" "paperless-ng" ] [ "services" "paperless" ])

View File

@ -52,7 +52,7 @@ let
flashbackEnabled = cfg.flashback.enableMetacity || lib.length cfg.flashback.customSessions > 0;
flashbackWms = lib.optional cfg.flashback.enableMetacity {
wmName = "pkgs.metacity";
wmName = "metacity";
wmLabel = "Metacity";
wmCommand = "${pkgs.metacity}/bin/metacity";
enableGnomePanel = true;

View File

@ -1,6 +1,6 @@
import ./make-test-python.nix ({ lib, ... }: {
name = "paperless";
meta.maintainers = with lib.maintainers; [ erikarvstedt Flakebi ];
meta.maintainers = with lib.maintainers; [ leona SuperSandro2000 erikarvstedt ];
nodes = let self = {
simple = { pkgs, ... }: {

View File

@ -7,13 +7,13 @@
stdenv.mkDerivation rec {
pname = "snapcast";
version = "0.28.0";
version = "0.29.0";
src = fetchFromGitHub {
owner = "badaix";
repo = "snapcast";
rev = "v${version}";
sha256 = "sha256-XxpiLojs1TI3qM7yXS+OPcHKo6pLcfJ+Eop7GjQ4HQw=";
hash = "sha256-FWOGBXYWLHHZhvC5/BpkDd70ZupzALZ3ks3qTcrtwKQ=";
};
nativeBuildInputs = [ cmake pkg-config ];

View File

@ -1,19 +1,28 @@
with import <localpkgs> {};
with import <localpkgs> { };
let
inherit (vimUtils.override {inherit vim;}) buildVimPlugin;
inherit (vimUtils.override { inherit vim; }) buildVimPlugin;
inherit (neovimUtils) buildNeovimPlugin;
generated = callPackage <localpkgs/pkgs/applications/editors/vim/plugins/generated.nix> {
inherit buildNeovimPlugin buildVimPlugin;
} {} {};
hasChecksum = value:
lib.isAttrs value && lib.hasAttrByPath ["src" "outputHash"] value;
getChecksum = name: value:
if hasChecksum value then {
submodules = value.src.fetchSubmodules or false;
sha256 = value.src.outputHash;
rev = value.src.rev;
} else null;
} { } { };
hasChecksum =
value:
lib.isAttrs value
&& lib.hasAttrByPath [
"src"
"outputHash"
] value;
getChecksum =
name: value:
if hasChecksum value then
{
submodules = value.src.fetchSubmodules or false;
sha256 = value.src.outputHash;
rev = value.src.rev;
}
else
null;
checksums = lib.mapAttrs getChecksum generated;
in
lib.filterAttrs (n: v: v != null) checksums
lib.filterAttrs (n: v: v != null) checksums

View File

@ -24,7 +24,7 @@ let
vivaldiName = if isSnapshot then "vivaldi-snapshot" else "vivaldi";
in stdenv.mkDerivation rec {
pname = "vivaldi";
version = "6.8.3381.53";
version = "6.8.3381.57";
suffix = {
aarch64-linux = "arm64";
@ -34,8 +34,8 @@ in stdenv.mkDerivation rec {
src = fetchurl {
url = "https://downloads.vivaldi.com/${branch}/vivaldi-${branch}_${version}-1_${suffix}.deb";
hash = {
aarch64-linux = "sha256-wcfEaUcl/FUhhrp977/xg5+dE+93vy8wn5x6m8qX1EU=";
x86_64-linux = "sha256-6WLGvd9Kp6fRG1HxMOjK4MhK4eoYjwEgYGJROI7lM2Y=";
aarch64-linux = "sha256-Tehc9T9+7NHaMYu7l7qB/09ips41rTx1VDCalUyO6Nw=";
x86_64-linux = "sha256-PC5fzMRIC2bW8xmPCG2nNIwwz0wha6+VDLAV1ihbQkM=";
}.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
};

View File

@ -25,13 +25,13 @@
}:
let
version = "2.11.4";
version = "2.11.6";
src = fetchFromGitHub {
owner = "paperless-ngx";
repo = "paperless-ngx";
rev = "refs/tags/v${version}";
hash = "sha256-qqOTW7qgaZfNFYgVIDdwVh9KlT3Z6g8EALMOv39aRVc=";
hash = "sha256-RNX+KS2h9zrOK8QzeQWH55pkNPTDW4gic2HLG+XXLRg=";
};
# subpath installation is broken with uvicorn >= 0.26
@ -76,7 +76,7 @@ let
cd src-ui
'';
npmDepsHash = "sha256-dze03mkWMA2o3v3aoPTrDtUndTdP7Tk4gvFp4nq80po=";
npmDepsHash = "sha256-ML1Yp3JIMbRF6kVu190ReoY7oDUtUfNkHE7dHF6YUAE=";
nativeBuildInputs = [
pkg-config
@ -261,7 +261,7 @@ python.pkgs.buildPythonApplication rec {
passthru = {
inherit python path frontend tesseract5;
nltkData = with nltk-data; [ punkt snowball_data stopwords ];
nltkData = with nltk-data; [ punkt_tab snowball_data stopwords ];
tests = { inherit (nixosTests) paperless; };
};
@ -271,6 +271,6 @@ python.pkgs.buildPythonApplication rec {
changelog = "https://github.com/paperless-ngx/paperless-ngx/releases/tag/v${version}";
license = licenses.gpl3Only;
platforms = platforms.unix;
maintainers = with maintainers; [ lukegb gador erikarvstedt leona ];
maintainers = with maintainers; [ leona SuperSandro2000 erikarvstedt ];
};
}

View File

@ -10,6 +10,10 @@
, libint
, libvori
, libxc
, dftd4
, mctc-lib
, mstore
, multicharge
, mpi
, gsl
, scalapack
@ -54,13 +58,13 @@ let
in
stdenv.mkDerivation rec {
pname = "cp2k";
version = "2024.1";
version = "2024.2";
src = fetchFromGitHub {
owner = "cp2k";
repo = "cp2k";
rev = "v${version}";
hash = "sha256-6PB6wjdTOa55dXV7QIsjxI77hhc95WFEjNePfupBUJQ=";
hash = "sha256-KXxqzapdPZggFlxX1rkNcxEYb2+aQIPFclFspxII7aE=";
fetchSubmodules = true;
};
@ -80,6 +84,10 @@ stdenv.mkDerivation rec {
libint
libvori
libxc
dftd4
mctc-lib
mstore
multicharge
libxsmm
mpi
spglib
@ -154,6 +162,7 @@ stdenv.mkDerivation rec {
-D__MPI_VERSION=3 -D__F2008 -D__LIBXSMM -D__SPGLIB \
-D__MAX_CONTR=4 -D__LIBVORI ${lib.optionalString enableElpa "-D__ELPA"} \
-D__PLUMED2 -D__HDF5 -D__GSL -D__SIRIUS -D__LIBVDWXC -D__SPFFT -D__SPLA \
-D__DFTD4 \
${lib.strings.optionalString (gpuBackend == "cuda") "-D__OFFLOAD_CUDA -D__ACC -D__DBCSR_ACC -D__NO_OFFLOAD_PW"} \
${lib.strings.optionalString (gpuBackend == "rocm") "-D__OFFLOAD_HIP -D__DBCSR_ACC -D__NO_OFFLOAD_PW"}
CFLAGS = -fopenmp
@ -165,6 +174,7 @@ stdenv.mkDerivation rec {
-I${lib.getDev libint}/include \
-I${lib.getDev sirius}/include/sirius \
-I${lib.getDev libxc}/include \
-I${lib.getDev dftd4}/include/dftd4 \
-I${lib.getDev libxsmm}/include \
-I${lib.getDev hdf5-fortran}/include \
-fallow-argument-mismatch
@ -176,6 +186,7 @@ stdenv.mkDerivation rec {
-fopenmp ${lib.optionalString enableElpa "$(pkg-config --libs elpa)"} \
-lz -ldl ${lib.optionalString (mpi.pname == "openmpi") "$(mpicxx --showme:link)"} \
-lplumed -lhdf5_fortran -lhdf5_hl -lhdf5 -lgsl -lsirius -lspla -lspfft -lvdwxc \
-ldftd4 -lmstore -lmulticharge -lmctc-lib \
${lib.strings.optionalString (gpuBackend == "cuda") ''
-L${cudaPackages.cuda_cudart}/lib/stubs/ \
-lcudart -lnvrtc -lcuda -lcublas

View File

@ -0,0 +1 @@
Just some text

View File

@ -18,8 +18,8 @@
norefsDup = writeText "hi" "hello";
helloRef = writeText "hi" "hello ${hello}";
helloRefDup = writeText "hi" "hello ${hello}";
path = ./samples.nix;
pathLike.outPath = ./samples.nix;
path = ./apath.txt;
pathLike.outPath = ./apath.txt;
helloFigletRef = writeText "hi" "hello ${hello} ${figlet}";
selfRef = runCommand "self-ref-1" { } "echo $out >$out";
selfRef2 = runCommand "self-ref-2" { } ''echo "${figlet}, $out" >$out'';

View File

@ -310,7 +310,7 @@ rec {
# writeBash "example"
# {
# makeWrapperArgs = [
# "--prefix" "PATH" ":" "${pkgs.hello}/bin"
# "--prefix" "PATH" ":" "${lib.makeBinPath [ pkgs.hello ]}"
# ];
# }
# ''
@ -336,7 +336,7 @@ rec {
# writeBashBin "example"
# {
# makeWrapperArgs = [
# "--prefix", "PATH", ":", "${pkgs.hello}/bin",
# "--prefix" "PATH" ":" "${lib.makeBinPath [ pkgs.hello ]}"
# ];
# }
# ''
@ -357,7 +357,7 @@ rec {
# writeDash "example"
# {
# makeWrapperArgs = [
# "--prefix", "PATH", ":", "${pkgs.hello}/bin",
# "--prefix" "PATH" ":" "${lib.makeBinPath [ pkgs.hello ]}"
# ];
# }
# ''
@ -383,7 +383,7 @@ rec {
# writeDashBin "example"
# {
# makeWrapperArgs = [
# "--prefix", "PATH", ":", "${pkgs.hello}/bin",
# "--prefix" "PATH" ":" "${lib.makeBinPath [ pkgs.hello ]}"
# ];
# }
# ''
@ -404,7 +404,7 @@ rec {
# writeFish "example"
# {
# makeWrapperArgs = [
# "--prefix", "PATH", ":", "${pkgs.hello}/bin",
# "--prefix" "PATH" ":" "${lib.makeBinPath [ pkgs.hello ]}"
# ];
# }
# ''
@ -439,7 +439,7 @@ rec {
# writeFishBin "example"
# {
# makeWrapperArgs = [
# "--prefix", "PATH", ":", "${pkgs.hello}/bin",
# "--prefix" "PATH" ":" "${lib.makeBinPath [ pkgs.hello ]}"
# ];
# }
# ''
@ -496,7 +496,7 @@ rec {
# writeNu "example"
# {
# makeWrapperArgs = [
# "--prefix", "PATH", ":", "${pkgs.hello}/bin",
# "--prefix" "PATH" ":" "${lib.makeBinPath [ pkgs.hello ]}"
# ];
# }
# ''
@ -524,7 +524,7 @@ rec {
# writeNuBin "example"
# {
# makeWrapperArgs = [
# "--prefix", "PATH", ":", "${pkgs.hello}/bin",
# "--prefix" "PATH" ":" "${lib.makeBinPath [ pkgs.hello ]}"
# ];
# }
# ''

View File

@ -6,13 +6,13 @@
}:
buildGoModule rec {
pname = "bitrise";
version = "2.19.0";
version = "2.20.0";
src = fetchFromGitHub {
owner = "bitrise-io";
repo = "bitrise";
rev = version;
hash = "sha256-VjuDeRl/rqA7bdhn9REdxdjRon5WxHkFIveOYNpQqa8=";
hash = "sha256-kwM3TqXxkVq45oN9T+G7wmsBMdIJ/FN6ZoUysoM5PNY=";
};
# many tests rely on writable $HOME/.bitrise and require network access

View File

@ -12,12 +12,12 @@
stdenv.mkDerivation (finalAttrs: {
pname = "blastem";
version = "0.6.2-unstable-2024-03-31";
version = "0.6.2-unstable-2024-08-14";
src = fetchhg {
url = "https://www.retrodev.com/repos/blastem";
rev = "48ab1e3e5df5";
hash = "sha256-UZl5fIE7LJqxwS8kFJ3xr8BJyHF60dnRNeA5k7lAuxg=";
rev = "aa888682faa0";
hash = "sha256-0xw9O0o1pkJiXHyZer4nMJeLlRXS3Z4YYoLgfkrz3Yo=";
};
# will probably be fixed in https://github.com/NixOS/nixpkgs/pull/302481

View File

@ -7,6 +7,7 @@
autoreconfHook,
bison,
bubblewrap,
buildPackages,
bzip2,
coreutils,
curl,
@ -40,6 +41,7 @@
p11-kit,
pkg-config,
polkit,
pkgsCross,
python3,
shared-mime-info,
socat,
@ -205,8 +207,12 @@ stdenv.mkDerivation (finalAttrs: {
PATH=${lib.makeBinPath [ vsc-py ]}:$PATH patchShebangs --build subprojects/variant-schema-compiler/variant-schema-compiler
substituteInPlace configure.ac \
--replace-fail '$BWRAP --version' 'echo ${bubblewrap.version}' \
--replace-fail '$DBUS_PROXY --version' 'echo ${xdg-dbus-proxy.version}'
--replace-fail '$BWRAP --' ${
lib.escapeShellArg (stdenv.hostPlatform.emulator buildPackages + " $BWRAP --")
} \
--replace-fail '$DBUS_PROXY --' ${
lib.escapeShellArg (stdenv.hostPlatform.emulator buildPackages + " $DBUS_PROXY --")
}
'';
passthru = {
@ -218,6 +224,8 @@ stdenv.mkDerivation (finalAttrs: {
updateScript = nix-update-script { };
tests = {
cross = pkgsCross.aarch64-multiplatform.flatpak;
installedTests = nixosTests.installed-tests.flatpak;
validate-icon = runCommand "test-icon-validation" { } ''

View File

@ -5,14 +5,14 @@
python3.pkgs.buildPythonApplication rec {
pname = "getmail6";
version = "6.19.03";
version = "6.19.04";
pyproject = true;
src = fetchFromGitHub {
owner = "getmail6";
repo = "getmail6";
rev = "refs/tags/v${version}";
hash = "sha256-BBsQ3u8CL3Aom+hqjeOErOBtWB8imU2PGgzP8+dq4mM=";
hash = "sha256-mKYAk3rXWBMgyxXenVRTGXIUG6ruz5/CxLmh8rpinfI=";
};
build-system = with python3.pkgs; [

View File

@ -82,7 +82,10 @@ stdenv.mkDerivation rec {
mesonFlags = [ "-Dupdate_mimedb=false" ];
passthru = {
updateScript = gnome.updateScript { packageName = "bijiben"; };
updateScript = gnome.updateScript {
packageName = "bijiben";
attrPath = "gnome-notes";
};
};
meta = with lib; {

View File

@ -15,13 +15,13 @@
stdenv.mkDerivation {
pname = "rakshasa-libtorrent";
version = "0.13.8-unstable-2023-03-16";
version = "0.13.8-unstable-2024-08-20";
src = fetchFromGitHub {
owner = "rakshasa";
repo = "libtorrent";
rev = "91f8cf4b0358d9b4480079ca7798fa7d9aec76b5";
hash = "sha256-mEIrMwpWMCAA70Qb/UIOg8XTfg71R/2F4kb3QG38duU=";
rev = "71a487c66b136524bce5519cb1f9e855621a9101";
hash = "sha256-DRdztKBp16aWYfIpGR7KIjSbveqPTx/CVz5KxT73u7k=";
};
nativeBuildInputs = [

View File

@ -10,12 +10,12 @@
}:
let
version = "1.11.0";
version = "1.12.0";
src = fetchFromGitHub {
owner = "mealie-recipes";
repo = "mealie";
rev = "v${version}";
hash = "sha256-tBbvmM66zCNpKqeekPY48j0t5PjLHeyQ8+kJ6755ivo=";
hash = "sha256-Lwd0P1ssAITLH256uMXNb5b1OcFAy8OVjjpnmfNVUvQ=";
};
frontend = callPackage (import ./mealie-frontend.nix src version) { };
@ -47,16 +47,6 @@ pythonpkgs.buildPythonApplication rec {
inherit version src;
pyproject = true;
patches = [
# Pull in https://github.com/mealie-recipes/mealie/pull/4002 manually until
# it lands in an upstream mealie release.
# See https://github.com/NixOS/nixpkgs/issues/321623.
( fetchpatch {
url = "https://github.com/mealie-recipes/mealie/commit/65ece35966120479db903785b22e9f2645f72aa4.patch";
hash = "sha256-4Nc0dFJrZ7ElN9rrq+CFpayKsrRjRd24fYraUFTzcH8=";
})
];
build-system = with pythonpkgs; [ poetry-core ];
nativeBuildInputs = [ makeWrapper ];

View File

@ -0,0 +1,28 @@
{
lib,
fetchFromGitHub,
rustPlatform,
}:
rustPlatform.buildRustPackage rec {
pname = "mekuteriya";
version = "0.1.5";
src = fetchFromGitHub {
owner = "frectonz";
repo = "mek-ut-er-ya";
rev = version;
hash = "sha256-bWp2UNrhCHY2DQWusGS9L9/jI2r23F34yLpuE6nuOD0=";
};
cargoHash = "sha256-WkrlQbNTP3lNEtlnAMrTd9lBo2Q4dECqtV29kmV8F7A=";
meta = {
description = "Ethiopian Calendar CLI";
homepage = "https://github.com/frectonz/mek-ut-er-ya";
mainProgram = "mekuteriya";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.frectonz ];
platforms = lib.platforms.all;
};
}

View File

@ -11,17 +11,17 @@
}:
rustPlatform.buildRustPackage rec {
pname = "nrr";
version = "0.9.4";
version = "0.9.5";
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "ryanccn";
repo = "nrr";
rev = "v${version}";
hash = "sha256-X1zgQvgjWbTQAOHAZ+G2u0yO+qeiU0hamTLM39VOK20=";
hash = "sha256-nzM16rZ3+JrmRmeE1dSZPj3P1KmN+Cv7QkkgOadeqx8=";
};
cargoHash = "sha256-NpvYN68l5wibrFxST35sWDBbUG1mauNszA8NYIWGGa0=";
cargoHash = "sha256-F2JlUErplSRQwSAEavQPNDMcXYc2waeYwjGuzmZq8sc=";
buildInputs = lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.CoreFoundation

View File

@ -8,11 +8,11 @@
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "proton-pass";
version = "1.22.0";
version = "1.22.1";
src = fetchurl {
url = "https://proton.me/download/PassDesktop/linux/x64/ProtonPass_${finalAttrs.version}.deb";
hash = "sha256-ARIUHmU/YN8IoAFMkcxzGAoH31vbJLT7HfYD6a57QaY=";
hash = "sha256-DIA54xxJ8Nhh8wb4p13yjdenqgTgenAH4Tmbqk3IXwo=";
};
dontConfigure = true;

View File

@ -11,14 +11,14 @@
stdenv.mkDerivation (finalAttrs: {
pname = "qcm";
version = "1.0.4";
version = "1.0.5";
src = fetchFromGitHub {
owner = "hypengw";
repo = "Qcm";
rev = "v${finalAttrs.version}";
fetchSubmodules = true;
hash = "sha256-dwzstlmGuY8oRxxO2BPXmSCSnE7Fbp+dyYVs17HUopA=";
hash = "sha256-/FOT2xK01JbJbTd5AT5Dk/5EF9qUyLvPTnw8PMtHYoQ=";
};
patches = [ ./remove_cubeb_vendor.patch ];
@ -38,6 +38,12 @@ stdenv.mkDerivation (finalAttrs: {
cubeb
] ++ cubeb.passthru.backendLibs;
# Correct qml import path
postInstall = ''
mkdir $out/lib/qt-6
mv $out/lib/qml $out/lib/qt-6/qml
'';
qtWrapperArgs = [
"--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath cubeb.passthru.backendLibs}"
];

View File

@ -7,13 +7,13 @@
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "sarasa-gothic";
version = "1.0.19";
version = "1.0.20";
src = fetchurl {
# Use the 'ttc' files here for a smaller closure size.
# (Using 'ttf' files gives a closure size about 15x larger, as of November 2021.)
url = "https://github.com/be5invis/Sarasa-Gothic/releases/download/v${finalAttrs.version}/Sarasa-TTC-${finalAttrs.version}.zip";
hash = "sha256-zqDVRgWlRND9a2ketlXE4f/Voa1tSYpnCotPGFWqcl8=";
hash = "sha256-9F/YU3APIVNCzHbAl0zL5+wqUP/VnzeYhj6SppwkbvI=";
};
sourceRoot = ".";

View File

@ -43,7 +43,7 @@ in appimageTools.wrapType2 {
homepage = "https://simplex.chat";
changelog = "https://github.com/simplex-chat/simplex-chat/releases/tag/v${version}";
license = licenses.agpl3Only;
maintainers = with maintainers; [ yuu ];
maintainers = with maintainers; [ terryg yuu ];
platforms = [ "x86_64-linux" ];
};
}

View File

@ -38,13 +38,13 @@ assert builtins.elem gpuBackend [ "none" "cuda" "rocm" ];
stdenv.mkDerivation rec {
pname = "SIRIUS";
version = "7.5.2";
version = "7.6.0";
src = fetchFromGitHub {
owner = "electronic-structure";
repo = pname;
rev = "v${version}";
hash = "sha256-DYie6ufgZNqg7ohlIed3Bo+sqLKHOxWXTwAkea2guLk=";
hash = "sha256-AdjqyHZRMl9zxwuTBzNXJkPi8EIhG/u98XJMEjHi/6k=";
};

View File

@ -0,0 +1,63 @@
{
lib,
darwin,
fetchFromGitHub,
libiconv,
openssl,
pkg-config,
rustPlatform,
stdenv,
testers,
}:
let
inherit (darwin.apple_sdk.frameworks) Security;
self = rustPlatform.buildRustPackage {
pname = "so";
version = "0.4.10";
src = fetchFromGitHub {
pname = "so-source";
inherit (self) version;
owner = "samtay";
repo = "so";
rev = "v${self.version}";
hash = "sha256-25jZEo1C9XF4m9YzDwtecQy468nHyv2wnRuK5oY2siU=";
};
cargoHash = "sha256-F9DNY0jKhH6aQRqlXq6MEMoFa1qtvAdL5lSEsql6gcI=";
nativeBuildInputs = [ pkg-config ];
buildInputs =
[ openssl ]
++ lib.optionals stdenv.isDarwin [
libiconv
Security
];
strictDeps = true;
passthru = {
tests = {
version = testers.testVersion {
package = self;
command = ''
export HOME=$TMP
so --version
'';
};
};
};
meta = {
homepage = "https://github.com/samtay/so";
description = "TUI to StackExchange network";
changelog = "https://github.com/samtay/so/blob/main/CHANGELOG.md";
mainProgram = "so";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ AndersonTorres ];
};
};
in
self

View File

@ -14,14 +14,8 @@ let
defaultVersion =
with lib.versions;
lib.switch coq.coq-version [
{
case = range "8.12" "8.20";
out = "20240715";
}
{
case = range "8.7" "8.11";
out = "20200624";
}
{ case = range "8.12" "8.20"; out = "20240715"; }
{ case = range "8.7" "8.11"; out = "20200624"; }
] null;
release = {
"20240715".sha256 = "sha256-9CSxAIm0aEXkwF+aj8u/bqLG30y5eDNz65EnohJPjzI="; # coq 8.9 - 8.20

View File

@ -0,0 +1,24 @@
{ lib, mkCoqDerivation, coq, itree-io, json, QuickChick, version ? null }:
mkCoqDerivation {
pname = "async-test";
owner = "liyishuai";
repo = "coq-async-test";
inherit version;
defaultVersion = let inherit (lib.versions) range; in
lib.switch coq.coq-version [
{ case = range "8.12" "8.19"; out = "0.1.0"; }
] null;
release = {
"0.1.0".sha256 = "sha256-0DBUS20337tpBi64mlJIWTQvIAdUvWbFCM9Sat7MEA8=";
};
releaseRev = v: "v${v}";
propagatedBuildInputs = [ itree-io json QuickChick ];
meta = {
description = "From interaction trees to asynchronous tests.";
license = lib.licenses.mpl20;
};
}

View File

@ -0,0 +1,28 @@
{ lib, mkCoqDerivation, coq, QuickChick, async-test, version ? null }:
mkCoqDerivation {
pname = "http";
owner = "liyishuai";
repo = "coq-http";
inherit version;
defaultVersion = let inherit (lib.versions) range; in
lib.switch coq.coq-version [
{ case = range "8.14" "8.19"; out = "0.2.1"; }
] null;
release = {
"0.2.1".sha256 = "sha256-CIcaXEojNdajXNoMBjGlQRc1sOJSKgUlditNxbNSPgk=";
};
releaseRev = v: "v${v}";
propagatedBuildInputs = [ QuickChick async-test ];
configurePhase = ''
sed -e 's/^ install extract.*//' -i Makefile
'';
meta = {
description = "HTTP specification in Coq, testable and verifiable";
license = lib.licenses.mpl20;
};
}

View File

@ -0,0 +1,24 @@
{ lib, mkCoqDerivation, coq, ITree, simple-io, version ? null }:
mkCoqDerivation {
pname = "itree-io";
repo = "coq-itree-io";
owner = "Lysxia";
inherit version;
defaultVersion = let inherit (lib.versions) range; in
lib.switch coq.coq-version [
{ case = range "8.12" "8.19"; out = "0.1.1"; }
] null;
release = {
"0.1.1".sha256 = "sha256-IFwIj8dxW4jm2gvuUJ8LKZFSJeljp0bsn8fezxY6t2o=";
};
releaseRev = v: "v${v}";
propagatedBuildInputs = [ ITree simple-io ];
meta = {
description = "Interpret itree in the IO monad of simple-io.";
license = lib.licenses.mit;
};
}

View File

@ -0,0 +1,26 @@
{ lib, mkCoqDerivation, coq, parsec, MenhirLib, version ? null }:
mkCoqDerivation {
pname = "json";
owner = "liyishuai";
repo = "coq-json";
inherit version;
defaultVersion = let inherit (lib.versions) range; in
lib.switch coq.coq-version [
{ case = range "8.14" "8.20"; out = "0.1.3"; }
] null;
release = {
"0.1.3".sha256 = "sha256-lElAzW4IuX+BB6ngDjlyKn0MytLRfbhQanB+Lct/WR0=";
};
releaseRev = v: "v${v}";
propagatedBuildInputs = [ parsec MenhirLib coq.ocamlPackages.menhir ];
buildFlags = [ "MENHIRFLAGS=--coq" "MENHIRFLAGS+=--coq-no-version-check" ];
meta = {
description = "From JSON to Coq, and vice versa.";
license = lib.licenses.bsd3;
};
}

View File

@ -1,29 +1,32 @@
{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake }:
{ lib, stdenv, fetchFromGitHub, cmake }:
stdenv.mkDerivation (finalAttrs: {
pname = "libspatialindex";
version = "1.9.3";
version = "2.0.0";
src = fetchFromGitHub {
owner = "libspatialindex";
repo = "libspatialindex";
rev = finalAttrs.version;
hash = "sha256-zsvS0IkCXyuNLCQpccKdAsFKoq0l+y66ifXlTHLNTkc=";
hash = "sha256-hZyAXz1ddRStjZeqDf4lYkV/g0JLqLy7+GrSUh75k20=";
};
patches = [
# Allow building static libs
(fetchpatch {
name = "fix-static-lib-build.patch";
url = "https://github.com/libspatialindex/libspatialindex/commit/caee28d84685071da3ff3a4ea57ff0b6ae64fc87.patch";
hash = "sha256-nvTW/t9tw1ZLeycJY8nj7rQgZogxQb765Ca2b9NDvRo=";
})
];
postPatch = ''
patchShebangs test/
'';
nativeBuildInputs = [ cmake ];
cmakeFlags = [
"-DSIDX_BUILD_TESTS=${if finalAttrs.finalPackage.doCheck then "ON" else "OFF"}"
(lib.cmakeBool "BUILD_TESTING" finalAttrs.finalPackage.doCheck)
# The cmake package does not handle absolute CMAKE_INSTALL_INCLUDEDIR
# correctly (setting it to an absolute path causes include files to go to
# $out/$out/include, because the absolute path is interpreted with root
# at $out).
# See: https://github.com/NixOS/nixpkgs/issues/144170
"-DCMAKE_INSTALL_INCLUDEDIR=include"
"-DCMAKE_INSTALL_LIBDIR=lib"
];
doCheck = true;

View File

@ -72,7 +72,7 @@
, enableIscsi ? false
, openiscsi
, libiscsi
, enableXen ? false
, enableXen ? stdenv.isLinux && stdenv.isx86_64
, xen
, enableZfs ? stdenv.isLinux
, zfs
@ -163,6 +163,11 @@ stdenv.mkDerivation rec {
sed -i '/qemuvhostusertest/d' tests/meson.build
sed -i '/qemuxml2xmltest/d' tests/meson.build
sed -i '/domaincapstest/d' tests/meson.build
'' + lib.optionalString enableXen ''
# Has various hardcoded paths that don't exist outside of a Xen dom0.
sed -i '/libxlxml2domconfigtest/d' tests/meson.build
substituteInPlace src/libxl/libxl_capabilities.h \
--replace-fail /usr/lib/xen ${xen}/libexec/xen
'';
strictDeps = true;

View File

@ -8,13 +8,13 @@
stdenv.mkDerivation rec {
pname = "ngtcp2";
version = "1.6.0";
version = "1.7.0";
src = fetchFromGitHub {
owner = "ngtcp2";
repo = pname;
rev = "v${version}";
hash = "sha256-alS6M4sSyyytnzu9RTjDAioqkafEmgt/HpFUQ4MniCI=";
hash = "sha256-P9l7J4JMSO40YoFIHlv9kmKJeJGV5Y4hXkKA3rM0lTI=";
fetchSubmodules = true;
};

View File

@ -26,6 +26,11 @@ stdenv.mkDerivation rec {
hash = "sha256-VIV9953hx0MZupOARdH+P1h7JtZeJmTlqtO8si+lwdU=";
};
patches = [
# Make sure fortran headers are installed directly in /include
./fortran-module-dir.patch
];
nativeBuildInputs = [ gfortran meson ninja pkg-config python3 ];
buildInputs = [ blas lapack mctc-lib mstore multicharge ];

View File

@ -0,0 +1,56 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f222aab..262b505 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -89,7 +89,6 @@ target_include_directories(
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/include>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
- $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/${module-dir}>
)
target_include_directories(
"${PROJECT_NAME}-lib"
@@ -132,7 +131,7 @@ install(
install(
DIRECTORY
"${CMAKE_CURRENT_BINARY_DIR}/include/"
- DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${module-dir}"
+ DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/"
)
if(WITH_API)
enable_language("C")
diff --git a/config/template.cmake b/config/template.cmake
index 8b5141d..8f94d66 100644
--- a/config/template.cmake
+++ b/config/template.cmake
@@ -6,7 +6,6 @@ set("@PROJECT_NAME@_WITH_OpenMP" @WITH_OpenMP@)
set(
"@PROJECT_NAME@_INCLUDE_DIRS"
"@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_INCLUDEDIR@"
- "@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_INCLUDEDIR@/@module-dir@"
)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}")
diff --git a/config/template.pc b/config/template.pc
index 3d6efbb..fea69e4 100644
--- a/config/template.pc
+++ b/config/template.pc
@@ -6,4 +6,4 @@ Name: @PROJECT_NAME@
Description: @PROJECT_DESCRIPTION@
Version: @PROJECT_VERSION@
Libs: -L${libdir} -l@PROJECT_NAME@
-Cflags: -I${includedir} -I${includedir}/@module-dir@
+Cflags: -I${includedir} -I${includedir}/
diff --git a/meson.build b/meson.build
index c9e9c58..ac8f0bd 100644
--- a/meson.build
+++ b/meson.build
@@ -83,7 +83,7 @@ if install
)
endif
- module_id = meson.project_name() / fc_id + '-' + fc.version()
+ module_id = meson.project_name()
meson.add_install_script(
find_program(files('config'/'install-mod.py')),
get_option('includedir') / module_id,

View File

@ -9,7 +9,7 @@
buildPythonPackage rec {
pname = "asyncstdlib";
version = "3.12.4";
version = "3.12.5";
pyproject = true;
disabled = pythonOlder "3.9";
@ -18,7 +18,7 @@ buildPythonPackage rec {
owner = "maxfischer2781";
repo = "asyncstdlib";
rev = "refs/tags/v${version}";
hash = "sha256-5xbz56/s448PIOZ4DN6NFcYYWXaebaZA3ApGAIMZXH4=";
hash = "sha256-RQoq+Okzan4/Q51mlL1EPyZuBSr3+xGWEPSAnZYJGyA=";
};
build-system = [ flit-core ];

View File

@ -20,7 +20,7 @@
buildPythonPackage rec {
pname = "faraday-plugins";
version = "1.18.2";
version = "1.19.0";
pyproject = true;
disabled = pythonOlder "3.7";
@ -29,7 +29,7 @@ buildPythonPackage rec {
owner = "infobyte";
repo = "faraday_plugins";
rev = "refs/tags/${version}";
hash = "sha256-QSJrzZyqwaHu8as03YIzB7PjUMzCnyADZgcBVnhm6c0=";
hash = "sha256-ZKib2tpL7Yn3yWuyZFOQ3saNQLwrUEeuojSMpoTy89M=";
};
postPatch = ''

View File

@ -21,7 +21,7 @@
buildPythonPackage rec {
pname = "mypy-boto3-builder";
version = "7.26.0";
version = "7.26.1";
pyproject = true;
disabled = pythonOlder "3.10";
@ -30,7 +30,7 @@ buildPythonPackage rec {
owner = "youtype";
repo = "mypy_boto3_builder";
rev = "refs/tags/${version}";
hash = "sha256-gEIh5uHoInuGE1avR2giyq59pm/Avu5NYr3DttvqQp8=";
hash = "sha256-BuJ94E9GFGOD7gD5T1Sxchxye3REr2n3wzI0+jGMPuA=";
};
build-system = [ poetry-core ];

View File

@ -11,15 +11,14 @@
buildPythonPackage rec {
pname = "nltk";
version = "3.8.1";
version = "3.9.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
extension = "zip";
hash = "sha256-GDTaPQaCy6Tyzt4vmq1rD6+2RhukUdsO+2+cOXmNZNM=";
hash = "sha256-h9EnvT3kvYmk+BJl5fpZyxsZmydEAXU3D3QX0rx66Gg=";
};
propagatedBuildInputs = [

View File

@ -4,44 +4,46 @@
buildPythonPackage,
fetchFromGitHub,
fetchpatch,
pythonOlder,
freezegun,
pytestCheckHook,
pythonOlder,
pytz,
setuptools,
}:
buildPythonPackage rec {
pname = "python-datemath";
version = "1.5.5";
format = "setuptools";
version = "3.0.1";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "nickmaccarthy";
repo = pname;
rev = "v${version}";
hash = "sha256-WVWGhyBguE1+KEMQu0N5QxO7IC4rPEJ/2L3VWUCQNi4=";
repo = "python-datemath";
rev = "refs/tags/v${version}";
hash = "sha256-BL+F2oHM49QiwV1/rjXz3wLp+EaTfmc5tAdlsGKq8ag=";
};
patches = [
(fetchpatch {
name = "remove-unittest2.patch";
url = "https://github.com/nickmaccarthy/python-datemath/commit/781daa0241ed327d5f211f3b62f553f3ee3d86e0.patch";
hash = "sha256-WD6fuDaSSNXgYWoaUexiWnofCzEZzercEUlqTvOUT5I=";
})
build-system = [ setuptools ];
dependencies = [ arrow ];
nativeCheckInputs = [
freezegun
pytestCheckHook
pytz
];
propagatedBuildInputs = [ arrow ];
nativeCheckInputs = [ pytestCheckHook ];
pytestFlagsArray = [ "tests.py" ];
pythonImportsCheck = [ "datemath" ];
meta = with lib; {
meta = {
description = "Python module to emulate the date math used in SOLR and Elasticsearch";
homepage = "https://github.com/nickmaccarthy/python-datemath";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
changelog = "https://github.com/nickmaccarthy/python-datemath/blob/v${version}/CHANGELOG.md";
license = with lib.licenses; [ asl20 ];
maintainers = with lib.maintainers; [ fab ];
};
}

View File

@ -1,28 +0,0 @@
{ lib, stdenv, rustPlatform, fetchFromGitHub, openssl, pkg-config, libiconv, Security }:
rustPlatform.buildRustPackage rec {
pname = "so";
version = "0.4.9";
src = fetchFromGitHub {
owner = "samtay";
repo = pname;
rev = "v${version}";
sha256 = "sha256-4IZNOclQj3ZLE6WRddn99CrV8OoyfkRBXnA4oEyMxv8=";
};
cargoHash = "sha256-hHXA/n/HQeBaD4QZ2b6Okw66poBRwNTpQWF0qBhLp/o=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [
libiconv Security
];
meta = with lib; {
description = "TUI interface to the StackExchange network";
mainProgram = "so";
homepage = "https://github.com/samtay/so";
license = licenses.mit;
maintainers = with maintainers; [ mredaelli ];
};
}

View File

@ -1,4 +1,4 @@
{ lib, callPackage, fetchFromGitHub, fetchurl, fetchpatch, stdenv, pkgsi686Linux }:
{ lib, callPackage, fetchFromGitHub, fetchgit, fetchpatch, stdenv, pkgsi686Linux }:
let
generic = args: let
@ -128,14 +128,33 @@ rec {
};
# Last one supporting x86
legacy_390 = generic {
legacy_390 = let
# Source corresponding to https://aur.archlinux.org/packages/nvidia-390xx-dkms
aurPatches = fetchgit {
url = "https://aur.archlinux.org/nvidia-390xx-utils.git";
rev = "ebb48c240ce329e89ad3b59e78c8c708f46f27b3";
hash = "sha256-AGx3/EQ81awBMs6rrXTGWJmyq+UjBCPp6/9z1BQBB9E=";
};
patchset = [
"kernel-4.16+-memory-encryption.patch"
"kernel-6.2.patch"
"kernel-6.3.patch"
"kernel-6.4.patch"
"kernel-6.5.patch"
"kernel-6.6.patch"
"kernel-6.8.patch"
"gcc-14.patch"
"kernel-6.10.patch"
];
in generic {
version = "390.157";
sha256_32bit = "sha256-VdZeCkU5qct5YgDF8Qgv4mP7CVHeqvlqnP/rioD3B5k=";
sha256_64bit = "sha256-W+u8puj+1da52BBw+541HxjtxTSVJVPL3HHo/QubMoo=";
settingsSha256 = "sha256-uJZO4ak/w/yeTQ9QdXJSiaURDLkevlI81de0q4PpFpw=";
persistencedSha256 = "sha256-NuqUQbVt80gYTXgIcu0crAORfsj9BCRooyH3Gp1y1ns=";
broken = kernel.kernelAtLeast "6.2";
patches = map (patch: "${aurPatches}/${patch}") patchset;
broken = kernel.kernelAtLeast "6.11 ";
# fixes the bug described in https://bbs.archlinux.org/viewtopic.php?pid=2083439#p2083439
# see https://bbs.archlinux.org/viewtopic.php?pid=2083651#p2083651

View File

@ -7,6 +7,7 @@ let
scalaVersion = "2.13";
sha256 = "sha256-4Cl8xv2wnvnZkFdRsl0rYpwXUo+GKbYFYe7/h84pCZw=";
jre = jdk17_headless;
nixosTest = nixosTests.kafka.kafka_3_8;
};
"3_7" = {
kafkaVersion = "3.7.1";

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, perl, zlib, apr, aprutil, pcre2, libiconv, lynx, which, libxcrypt
{ lib, stdenv, fetchurl, fetchpatch2, perl, zlib, apr, aprutil, pcre2, libiconv, lynx, which, libxcrypt, buildPackages
, nixosTests
, proxySupport ? true
, sslSupport ? true, openssl
@ -19,10 +19,22 @@ stdenv.mkDerivation rec {
hash = "sha256-Z0GI579EztgtqNtSLalGhJ4iCA1z0WyT9/TfieJXKew=";
};
patches = [
# Fix cross-compilation by using CC_FOR_BUILD for generator program
# https://issues.apache.org/bugzilla/show_bug.cgi?id=51257#c6
(fetchpatch2 {
name = "apache-httpd-cross-compile.patch";
url = "https://gitlab.com/buildroot.org/buildroot/-/raw/5dae8cddeecf16c791f3c138542ec51c4e627d75/package/apache/0001-cross-compile.patch";
hash = "sha256-KGnAa6euOt6dkZQwURyVITcfqTkDkSR8zpE97DywUUw=";
})
];
# FIXME: -dev depends on -doc
outputs = [ "out" "dev" "man" "doc" ];
setOutputFlags = false; # it would move $out/modules, etc.
depsBuildBuild = [ buildPackages.stdenv.cc ];
nativeBuildInputs = [ which ];
buildInputs = [ perl libxcrypt zlib ] ++
@ -70,6 +82,10 @@ stdenv.mkDerivation rec {
(lib.enableFeature luaSupport "lua")
(lib.withFeatureAs luaSupport "lua" lua5)
] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
# skip bad config check when cross compiling
# https://gitlab.com/buildroot.org/buildroot/-/blob/5dae8cddeecf16c791f3c138542ec51c4e627d75/package/apache/apache.mk#L23
"ap_cv_void_ptr_lt_long=no"
];
enableParallelBuilding = true;

View File

@ -15,11 +15,11 @@ let
# var/www/onlyoffice/documentserver/server/DocService/docservice
onlyoffice-documentserver = stdenv.mkDerivation rec {
pname = "onlyoffice-documentserver";
version = "7.5.1";
version = "8.1.1";
src = fetchurl {
url = "https://github.com/ONLYOFFICE/DocumentServer/releases/download/v${lib.concatStringsSep "." (lib.take 3 (lib.splitVersion version))}/onlyoffice-documentserver_amd64.deb";
sha256 = "sha256-191PYpxs/TbVXoBPHvuyTp81ZMtw1YaFznY1hUSbh+0=";
sha256 = "sha256-YzGImBG/CkJqKrZwQQ/mgptasxqYgmmE2ivzbYzbz9M=";
};
preferLocalBuild = true;

View File

@ -39,7 +39,11 @@ buildFHSEnv {
meta = with lib; {
homepage = "https://www.cockroachlabs.com";
description = "Scalable, survivable, strongly-consistent SQL database";
license = licenses.bsl11;
license = with licenses; [
bsl11
mit
cockroachdb-community-license
];
platforms = [ "aarch64-linux" "x86_64-linux" ];
maintainers = with maintainers; [ rushmorem thoughtpolice ];
};

View File

@ -1,7 +1,18 @@
{ lib, haskellPackages, runCommand }:
{ lib, haskell, haskellPackages, runCommand }:
let
localRaw = haskellPackages.callPackage ./local/generated.nix {};
src = lib.fileset.toSource {
root = ./local;
fileset = lib.fileset.unions [
./local/app
./local/CHANGELOG.md
./local/local.cabal
];
};
# This prevents the source from depending on the formatting of the ./local/generated.nix file
localRaw = haskell.lib.compose.overrideSrc {
inherit src;
} (haskellPackages.callPackage ./local/generated.nix {});
in
lib.recurseIntoAttrs rec {
@ -20,14 +31,14 @@ lib.recurseIntoAttrs rec {
assumptionLocalHasDirectReference = runCommand "localHasDirectReference" {
drvPath = builtins.unsafeDiscardOutputDependency localRaw.drvPath;
} ''
grep ${./local} $drvPath >/dev/null
grep ${src} $drvPath >/dev/null
touch $out
'';
localHasNoDirectReference = runCommand "localHasNoDirectReference" {
drvPath = builtins.unsafeDiscardOutputDependency localFromCabalSdist.drvPath;
} ''
grep -v ${./local} $drvPath >/dev/null
grep -v ${src} $drvPath >/dev/null
touch $out
'';
}

View File

@ -15,16 +15,25 @@ let
makeGoldenTest = testname: runCommand "make-binary-wrapper-test-${testname}" env ''
mkdir -p tmp/foo # for the chdir test
params=$(<"${./.}/${testname}.cmdline")
source=${lib.fileset.toSource {
root = ./.;
fileset = lib.fileset.unions [
(./. + "/${testname}.cmdline")
(./. + "/${testname}.c")
(lib.fileset.maybeMissing (./. + "/${testname}.env"))
];
}}
params=$(<"$source/${testname}.cmdline")
eval "makeCWrapper /send/me/flags $params" > wrapper.c
diff wrapper.c "${./.}/${testname}.c"
diff wrapper.c "$source/${testname}.c"
if [ -f "${./.}/${testname}.env" ]; then
if [ -f "$source/${testname}.env" ]; then
eval "makeWrapper ${envCheck} wrapped $params"
env -i ./wrapped > env.txt
sed "s#SUBST_ARGV0#${envCheck}#;s#SUBST_CWD#$PWD#" \
"${./.}/${testname}.env" > golden-env.txt
"$source/${testname}.env" > golden-env.txt
if ! diff env.txt golden-env.txt; then
echo "env/argv should be:"
cat golden-env.txt

View File

@ -64,6 +64,7 @@ in stdenv.mkDerivation rec {
binaryPath="$out/bin/$program"
wrapProgram "$programPath" \
--set CLOUDSDK_PYTHON "${pythonEnv}/bin/python" \
--set CLOUDSDK_PYTHON_ARGS "-S -W ignore" \
--prefix PYTHONPATH : "${pythonEnv}/${python.sitePackages}" \
--prefix PATH : "${openssl.bin}/bin"

View File

@ -11,13 +11,13 @@
stdenv.mkDerivation rec {
pname = "ipv6calc";
version = "4.2.0";
version = "4.2.1";
src = fetchFromGitHub {
owner = "pbiering";
repo = pname;
rev = version;
sha256 = "sha256-z4CfakCvFdCPwB52wfeooCMI51QY629nMDbCmR50fI4=";
sha256 = "sha256-2agZ/EqLbFdYh7qGDGX938TeCGZr1mUw4mQLy+O2+ug=";
};
buildInputs = [

View File

@ -1,12 +1,11 @@
let
pkgs = import <nixpkgs> {};
in pkgs.runCommand "diagnostics-multiuser"
{ }
''
set -x
# no cache: ${toString builtins.currentTime}
# For reproducibility, nix always uses nixbld group:
# https://github.com/NixOS/nix/blob/1dd29d7aebae706f3e90a18bbfae727f2ed03c70/src/libstore/build.cc#L1896-L1908
test "$(groups)" == "nixbld"
touch $out
''
pkgs = import <nixpkgs> { };
in
pkgs.runCommand "diagnostics-multiuser" { } ''
set -x
# no cache: ${toString builtins.currentTime}
# For reproducibility, nix always uses nixbld group:
# https://github.com/NixOS/nix/blob/1dd29d7aebae706f3e90a18bbfae727f2ed03c70/src/libstore/build.cc#L1896-L1908
test "$(groups)" == "nixbld"
touch $out
''

View File

@ -1,6 +1,7 @@
let
pkgs = import <nixpkgs> {};
in pkgs.runCommand "diagnostics-sandbox"
pkgs = import <nixpkgs> { };
in
pkgs.runCommand "diagnostics-sandbox"
{
__noChroot = true;
}

View File

@ -1,10 +1,9 @@
let
pkgs = import <nixpkgs> {};
in pkgs.runCommand "diagnostics-sandbox"
{ }
''
set -x
# no cache: ${toString builtins.currentTime}
test -d "$(dirname "$out")/../var/nix"
touch $out
''
pkgs = import <nixpkgs> { };
in
pkgs.runCommand "diagnostics-sandbox" { } ''
set -x
# no cache: ${toString builtins.currentTime}
test -d "$(dirname "$out")/../var/nix"
touch $out
''

View File

@ -1,7 +1,7 @@
{ lib, newScope, fetchFromGitHub, unzip, stdenvNoCC }:
let
base = {
version = "unstable-2023-02-02";
version = "0-unstable-2024-07-29";
nativeBuildInputs = [ unzip ];
dontBuild = true;
meta = with lib; {
@ -17,14 +17,14 @@ let
src = fetchFromGitHub {
owner = "nltk";
repo = "nltk_data";
rev = "5db857e6f7df11eabb5e5665836db9ec8df07e28";
rev = "cfe82914f3c2d24363687f1db3b05e8b9f687e2b";
inherit hash;
sparseCheckout = [ "packages/${location}/${pname}.zip" ];
};
in
stdenvNoCC.mkDerivation (base // {
inherit pname src;
version = base.version;
inherit (base) version;
installPhase = ''
runHook preInstall
@ -38,24 +38,29 @@ let
});
in
lib.makeScope newScope (self: {
punkt = makeNltkDataPackage ({
punkt = makeNltkDataPackage {
pname = "punkt";
location = "tokenizers";
hash = "sha256-rMkgn3xzmSJNv8//kqbPF2Xq3Gf16lgA1Wx8FPYbaQo=";
});
averaged_perceptron_tagger = makeNltkDataPackage ({
hash = "sha256-OzMkruoYbFKqzuimOXIpE5lhHz8tmSqOFoLT+fjdTVg=";
};
punkt_tab = makeNltkDataPackage {
pname = "punkt_tab";
location = "tokenizers";
hash = "sha256-OzMkruoYbFKqzuimOXIpE5lhHz8tmSqOFoLT+fjdTVg=";
};
averaged_perceptron_tagger = makeNltkDataPackage {
pname = "averaged_perceptron_tagger";
location = "taggers";
hash = "sha256-ilTs4HWPUoHxQb4kWEy3wJ6QsE/98+EQya44gtV2inw=";
});
snowball_data = makeNltkDataPackage ({
hash = "sha256-tl3Cn2okhBkUtTXvAmFRx72Brez6iTGRdmFTwFmpk3M=";
};
snowball_data = makeNltkDataPackage {
pname = "snowball_data";
location = "stemmers";
hash = "sha256-Y6LERPtaRbCtWmJCvMAd2xH02xdrevZBFNYvP9N4+3s=";
});
stopwords = makeNltkDataPackage ({
hash = "sha256-mNefwOPVJGz9kXV3LV4DuV7FJpNir/Nwg4ujd0CogEk=";
};
stopwords = makeNltkDataPackage {
pname = "stopwords";
location = "corpora";
hash = "sha256-Rj1jnt6IDEmBbSIHHueyEvPmdE4EZ6/bJ3qehniebbk=";
});
hash = "sha256-8lMjW5YI8h6dHJ/83HVY2OYGDyKPpgkUAKPISiAKqqk=";
};
})

View File

@ -5785,7 +5785,7 @@ with pkgs;
inherit (darwin.apple_sdk.frameworks) Security;
};
nltk-data = callPackage ../tools/text/nltk_data { };
nltk-data = callPackage ../tools/text/nltk-data { };
seaborn-data = callPackage ../tools/misc/seaborn-data { };
@ -12675,10 +12675,6 @@ with pkgs;
snort = callPackage ../applications/networking/ids/snort { };
so = callPackage ../development/tools/so {
inherit (darwin.apple_sdk.frameworks) Security;
};
soapui = callPackage ../applications/networking/soapui {
jdk = if stdenv.isDarwin
then (jdk11.override { enableJavaFX = true; })

View File

@ -19,6 +19,7 @@ let
aac-tactics = callPackage ../development/coq-modules/aac-tactics {};
addition-chains = callPackage ../development/coq-modules/addition-chains {};
async-test = callPackage ../development/coq-modules/async-test {};
atbr = callPackage ../development/coq-modules/atbr {};
autosubst = callPackage ../development/coq-modules/autosubst {};
bignums = if lib.versionAtLeast coq.coq-version "8.6"
@ -72,6 +73,7 @@ let
hierarchy-builder = callPackage ../development/coq-modules/hierarchy-builder {};
high-school-geometry = callPackage ../development/coq-modules/high-school-geometry {};
HoTT = callPackage ../development/coq-modules/HoTT {};
http = callPackage ../development/coq-modules/http {};
hydra-battles = callPackage ../development/coq-modules/hydra-battles {};
interval = callPackage ../development/coq-modules/interval {};
InfSeqExt = callPackage ../development/coq-modules/InfSeqExt {};
@ -79,6 +81,8 @@ let
iris-named-props = callPackage ../development/coq-modules/iris-named-props {};
itauto = callPackage ../development/coq-modules/itauto { };
ITree = callPackage ../development/coq-modules/ITree { };
itree-io = callPackage ../development/coq-modules/itree-io { };
json = callPackage ../development/coq-modules/json {};
LibHyps = callPackage ../development/coq-modules/LibHyps {};
ltac2 = callPackage ../development/coq-modules/ltac2 {};
math-classes = callPackage ../development/coq-modules/math-classes { };

View File

@ -506,7 +506,7 @@ in {
# The configure script doesn't correctly add library link
# flags, so we add them to the variable used by the Makefile
# when linking.
MYSQLND_SHARED_LIBADD = "-lssl -lcrypto";
MYSQLND_SHARED_LIBADD = "-lz -lssl -lcrypto";
# The configure script builds a config.h which is never
# included. Let's include it in the main header file
# included by all .c-files.