0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-12 05:16:25 +03:00

Merge staging-next into staging

This commit is contained in:
github-actions[bot] 2023-05-28 00:03:10 +00:00 committed by GitHub
commit 003f914d04
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
55 changed files with 453 additions and 239 deletions

View file

@ -19,7 +19,7 @@ In the following is an example expression using `buildGoModule`, the following a
To avoid updating this field when dependencies change, run `go mod vendor` in your source repo and set `vendorHash = null;` To avoid updating this field when dependencies change, run `go mod vendor` in your source repo and set `vendorHash = null;`
To obtain the actual hash, set `vendorHash = lib.fakeSha256;` and run the build ([more details here](#sec-source-hashes)). To obtain the actual hash, set `vendorHash = lib.fakeSha256;` and run the build ([more details here](#sec-source-hashes)).
- `proxyVendor`: Fetches (go mod download) and proxies the vendor directory. This is useful if your code depends on c code and go mod tidy does not include the needed sources to build or if any dependency has case-insensitive conflicts which will produce platform dependant `vendorHash` checksums. - `proxyVendor`: Fetches (go mod download) and proxies the vendor directory. This is useful if your code depends on c code and go mod tidy does not include the needed sources to build or if any dependency has case-insensitive conflicts which will produce platform-dependent `vendorHash` checksums.
- `modPostBuild`: Shell commands to run after the build of the go-modules executes `go mod vendor`, and before calculating fixed output derivation's `vendorHash` (or `vendorSha256`). Note that if you change this attribute, you need to update `vendorHash` (or `vendorSha256`) attribute. - `modPostBuild`: Shell commands to run after the build of the go-modules executes `go mod vendor`, and before calculating fixed output derivation's `vendorHash` (or `vendorSha256`). Note that if you change this attribute, you need to update `vendorHash` (or `vendorSha256`) attribute.
```nix ```nix

View file

@ -11050,6 +11050,11 @@
githubId = 1009523; githubId = 1009523;
name = "Ashijit Pramanik"; name = "Ashijit Pramanik";
}; };
name-snrl = {
github = "name-snrl";
githubId = 72071763;
name = "Yusup Urazaev";
};
namore = { namore = {
email = "namor@hemio.de"; email = "namor@hemio.de";
github = "namore"; github = "namore";

View file

@ -10,10 +10,14 @@
<!-- 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. -->
- [river](https://github.com/riverwm/river), A dynamic tiling wayland compositor. Available as [programs.river](#opt-programs.river.enable).
## Backward Incompatibilities {#sec-release-23.11-incompatibilities} ## Backward Incompatibilities {#sec-release-23.11-incompatibilities}
- The latest version of `clonehero` now stores custom content in `~/.clonehero`. See the [migration instructions](https://clonehero.net/2022/11/29/v23-to-v1-migration-instructions.html). Typically, these content files would exist along side the binary, but the previous build used a wrapper script that would store them in `~/.config/unity3d/srylain Inc_/Clone Hero`. - The latest version of `clonehero` now stores custom content in `~/.clonehero`. See the [migration instructions](https://clonehero.net/2022/11/29/v23-to-v1-migration-instructions.html). Typically, these content files would exist along side the binary, but the previous build used a wrapper script that would store them in `~/.config/unity3d/srylain Inc_/Clone Hero`.
- `etcd` has been updated to 3.5, you will want to read the [3.3 to 3.4](https://etcd.io/docs/v3.5/upgrades/upgrade_3_4/) and [3.4 to 3.5](https://etcd.io/docs/v3.5/upgrades/upgrade_3_5/) upgrade guides
## Other Notable Changes {#sec-release-23.11-notable-changes} ## Other Notable Changes {#sec-release-23.11-notable-changes}
- A new option was added to the virtualisation module that enables specifying explicitly named network interfaces in QEMU VMs. The existing `virtualisation.vlans` is still supported for cases where the name of the network interface is irrelevant. - A new option was added to the virtualisation module that enables specifying explicitly named network interfaces in QEMU VMs. The existing `virtualisation.vlans` is still supported for cases where the name of the network interface is irrelevant.

View file

@ -241,7 +241,6 @@
./programs/starship.nix ./programs/starship.nix
./programs/steam.nix ./programs/steam.nix
./programs/streamdeck-ui.nix ./programs/streamdeck-ui.nix
./programs/sway.nix
./programs/sysdig.nix ./programs/sysdig.nix
./programs/system-config-printer.nix ./programs/system-config-printer.nix
./programs/systemtap.nix ./programs/systemtap.nix
@ -256,7 +255,9 @@
./programs/usbtop.nix ./programs/usbtop.nix
./programs/vim.nix ./programs/vim.nix
./programs/wavemon.nix ./programs/wavemon.nix
./programs/waybar.nix ./programs/wayland/river.nix
./programs/wayland/sway.nix
./programs/wayland/waybar.nix
./programs/weylus.nix ./programs/weylus.nix
./programs/wireshark.nix ./programs/wireshark.nix
./programs/xastir.nix ./programs/xastir.nix
@ -1310,7 +1311,6 @@
./services/x11/window-managers/default.nix ./services/x11/window-managers/default.nix
./services/x11/window-managers/fluxbox.nix ./services/x11/window-managers/fluxbox.nix
./services/x11/window-managers/icewm.nix ./services/x11/window-managers/icewm.nix
./services/x11/window-managers/bspwm.nix
./services/x11/window-managers/katriawm.nix ./services/x11/window-managers/katriawm.nix
./services/x11/window-managers/metacity.nix ./services/x11/window-managers/metacity.nix
./services/x11/window-managers/nimdow.nix ./services/x11/window-managers/nimdow.nix

View file

@ -0,0 +1,59 @@
{
config,
pkgs,
lib,
...
}:
with lib; let
cfg = config.programs.river;
in {
options.programs.river = {
enable = mkEnableOption (lib.mdDoc "river, a dynamic tiling Wayland compositor");
package = mkOption {
type = with types; nullOr package;
default = pkgs.river;
defaultText = literalExpression "pkgs.river";
description = lib.mdDoc ''
River package to use.
Set to `null` to not add any River package to your path.
This should be done if you want to use the Home Manager River module to install River.
'';
};
extraPackages = mkOption {
type = with types; listOf package;
default = with pkgs; [
swaylock
foot
dmenu
];
defaultText = literalExpression ''
with pkgs; [ swaylock foot dmenu ];
'';
example = literalExpression ''
with pkgs; [
termite rofi light
]
'';
description = lib.mdDoc ''
Extra packages to be installed system wide. See
[Common X11 apps used on i3 with Wayland alternatives](https://github.com/swaywm/sway/wiki/i3-Migration-Guide#common-x11-apps-used-on-i3-with-wayland-alternatives)
for a list of useful software.
'';
};
};
config =
mkIf cfg.enable (mkMerge [
{
environment.systemPackages = optional (cfg.package != null) cfg.package ++ cfg.extraPackages;
# To make a river session available if a display manager like SDDM is enabled:
programs.xwayland.enable = mkDefault true;
}
(import ./wayland-session.nix { inherit lib pkgs; })
]);
meta.maintainers = with lib.maintainers; [ GaetanLepage ];
}

View file

@ -123,41 +123,36 @@ in {
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable
assertions = [ (mkMerge [
{ {
assertion = cfg.extraSessionCommands != "" -> cfg.wrapperFeatures.base; assertions = [
message = '' {
The extraSessionCommands for Sway will not be run if assertion = cfg.extraSessionCommands != "" -> cfg.wrapperFeatures.base;
wrapperFeatures.base is disabled. message = ''
''; The extraSessionCommands for Sway will not be run if
} wrapperFeatures.base is disabled.
]; '';
environment = { }
systemPackages = optional (cfg.package != null) cfg.package ++ cfg.extraPackages; ];
# Needed for the default wallpaper: environment = {
pathsToLink = optionals (cfg.package != null) [ "/share/backgrounds/sway" ]; systemPackages = optional (cfg.package != null) cfg.package ++ cfg.extraPackages;
etc = { # Needed for the default wallpaper:
"sway/config.d/nixos.conf".source = pkgs.writeText "nixos.conf" '' pathsToLink = optionals (cfg.package != null) [ "/share/backgrounds/sway" ];
# Import the most important environment variables into the D-Bus and systemd etc = {
# user environments (e.g. required for screen sharing and Pinentry prompts): "sway/config.d/nixos.conf".source = pkgs.writeText "nixos.conf" ''
exec dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP # Import the most important environment variables into the D-Bus and systemd
''; # user environments (e.g. required for screen sharing and Pinentry prompts):
} // optionalAttrs (cfg.package != null) { exec dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
"sway/config".source = mkOptionDefault "${cfg.package}/etc/sway/config"; '';
}; } // optionalAttrs (cfg.package != null) {
}; "sway/config".source = mkOptionDefault "${cfg.package}/etc/sway/config";
security.polkit.enable = true; };
security.pam.services.swaylock = {}; };
hardware.opengl.enable = mkDefault true; # To make a Sway session available if a display manager like SDDM is enabled:
fonts.enableDefaultFonts = mkDefault true; services.xserver.displayManager.sessionPackages = optionals (cfg.package != null) [ cfg.package ]; }
programs.dconf.enable = mkDefault true; (import ./wayland-session.nix { inherit lib pkgs; })
# To make a Sway session available if a display manager like SDDM is enabled: ]);
services.xserver.displayManager.sessionPackages = optionals (cfg.package != null) [ cfg.package ];
programs.xwayland.enable = mkDefault true;
# For screen sharing (this option only has an effect with xdg.portal.enable):
xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-wlr ];
};
meta.maintainers = with lib.maintainers; [ primeos colemickens ]; meta.maintainers = with lib.maintainers; [ primeos colemickens ];
} }

View file

@ -0,0 +1,23 @@
{ lib, pkgs, ... }: with lib; {
security = {
polkit.enable = true;
pam.services.swaylock = {};
};
hardware.opengl.enable = mkDefault true;
fonts.enableDefaultFonts = mkDefault true;
programs = {
dconf.enable = mkDefault true;
xwayland.enable = mkDefault true;
};
xdg.portal = {
enable = mkDefault true;
extraPortals = [
# For screen sharing
pkgs.xdg-desktop-portal-wlr
];
};
}

View file

@ -15,6 +15,8 @@ in {
type = types.bool; type = types.bool;
}; };
package = mkPackageOptionMD pkgs "etcd" { };
name = mkOption { name = mkOption {
description = lib.mdDoc "Etcd unique node name."; description = lib.mdDoc "Etcd unique node name.";
default = config.networking.hostName; default = config.networking.hostName;
@ -187,13 +189,13 @@ in {
serviceConfig = { serviceConfig = {
Type = "notify"; Type = "notify";
ExecStart = "${pkgs.etcd}/bin/etcd"; ExecStart = "${cfg.package}/bin/etcd";
User = "etcd"; User = "etcd";
LimitNOFILE = 40000; LimitNOFILE = 40000;
}; };
}; };
environment.systemPackages = [ pkgs.etcd ]; environment.systemPackages = [ cfg.package ];
users.users.etcd = { users.users.etcd = {
isSystemUser = true; isSystemUser = true;

View file

@ -53,7 +53,7 @@ import ./make-test-python.nix ({ pkgs, ... } : let
[ v3_req ] [ v3_req ]
basicConstraints = CA:FALSE basicConstraints = CA:FALSE
keyUsage = digitalSignature, keyEncipherment keyUsage = digitalSignature, keyEncipherment
extendedKeyUsage = serverAuth extendedKeyUsage = serverAuth, clientAuth
subjectAltName = @alt_names subjectAltName = @alt_names
[alt_names] [alt_names]
DNS.1 = node1 DNS.1 = node1
@ -86,10 +86,13 @@ import ./make-test-python.nix ({ pkgs, ... } : let
}; };
environment.variables = { environment.variables = {
ETCDCTL_CERT_FILE = "${etcd_client_cert}"; ETCD_CERT_FILE = "${etcd_client_cert}";
ETCDCTL_KEY_FILE = "${etcd_client_key}"; ETCD_KEY_FILE = "${etcd_client_key}";
ETCDCTL_CA_FILE = "${ca_pem}"; ETCD_CA_FILE = "${ca_pem}";
ETCDCTL_PEERS = "https://127.0.0.1:2379"; ETCDCTL_ENDPOINTS = "https://127.0.0.1:2379";
ETCDCTL_CACERT = "${ca_pem}";
ETCDCTL_CERT = "${etcd_cert}";
ETCDCTL_KEY = "${etcd_key}";
}; };
networking.firewall.allowedTCPPorts = [ 2380 ]; networking.firewall.allowedTCPPorts = [ 2380 ];
@ -134,21 +137,21 @@ in {
node2.start() node2.start()
node1.wait_for_unit("etcd.service") node1.wait_for_unit("etcd.service")
node2.wait_for_unit("etcd.service") node2.wait_for_unit("etcd.service")
node2.wait_until_succeeds("etcdctl cluster-health") node2.wait_until_succeeds("etcdctl endpoint status")
node1.succeed("etcdctl set /foo/bar 'Hello world'") node1.succeed("etcdctl put /foo/bar 'Hello world'")
node2.succeed("etcdctl get /foo/bar | grep 'Hello world'") node2.succeed("etcdctl get /foo/bar | grep 'Hello world'")
with subtest("should add another member"): with subtest("should add another member"):
node1.wait_until_succeeds("etcdctl member add node3 https://node3:2380") node1.wait_until_succeeds("etcdctl member add node3 --peer-urls=https://node3:2380")
node3.start() node3.start()
node3.wait_for_unit("etcd.service") node3.wait_for_unit("etcd.service")
node3.wait_until_succeeds("etcdctl member list | grep 'node3'") node3.wait_until_succeeds("etcdctl member list | grep 'node3'")
node3.succeed("etcdctl cluster-health") node3.succeed("etcdctl endpoint status")
with subtest("should survive member crash"): with subtest("should survive member crash"):
node3.crash() node3.crash()
node1.succeed("etcdctl cluster-health") node1.succeed("etcdctl endpoint status")
node1.succeed("etcdctl set /foo/bar 'Hello degraded world'") node1.succeed("etcdctl put /foo/bar 'Hello degraded world'")
node1.succeed("etcdctl get /foo/bar | grep 'Hello degraded world'") node1.succeed("etcdctl get /foo/bar | grep 'Hello degraded world'")
''; '';
}) })

View file

@ -19,7 +19,7 @@ import ./make-test-python.nix ({ pkgs, ... } : {
node.wait_for_unit("etcd.service") node.wait_for_unit("etcd.service")
with subtest("should write and read some values to etcd"): with subtest("should write and read some values to etcd"):
node.succeed("etcdctl set /foo/bar 'Hello world'") node.succeed("etcdctl put /foo/bar 'Hello world'")
node.succeed("etcdctl get /foo/bar | grep 'Hello world'") node.succeed("etcdctl get /foo/bar | grep 'Hello world'")
''; '';
}) })

View file

@ -9,18 +9,18 @@
buildGoModule rec { buildGoModule rec {
pname = "go-musicfox"; pname = "go-musicfox";
version = "4.0.6"; version = "4.1.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "go-musicfox"; owner = "go-musicfox";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
hash = "sha256-ZqB3NL/pLIY1lHl3qMIOciqsOW9jNwjVQAq1j/ydDWs="; hash = "sha256-A1+JDMT4mHUi10GE4/qV5IMuwNsm4EdBt9VC2ZvJzuU=";
}; };
deleteVendor = true; deleteVendor = true;
vendorHash = "sha256-rJlyrPQS9UKinxIwGGo3EHlmWrzTKIm1jM1UDqnmVyg="; vendorHash = "sha256-xzLUWqzDVT+Htw/BHygOJM16uQvWXopyxxHBZQKcOQ8=";
subPackages = [ "cmd/musicfox.go" ]; subPackages = [ "cmd/musicfox.go" ];

View file

@ -2,13 +2,13 @@
buildPythonApplication rec { buildPythonApplication rec {
pname = "gallery-dl"; pname = "gallery-dl";
version = "1.25.4"; version = "1.25.5";
format = "setuptools"; format = "setuptools";
src = fetchPypi { src = fetchPypi {
inherit version; inherit version;
pname = "gallery_dl"; pname = "gallery_dl";
sha256 = "sha256-4x0XjXriEAJWSmbGjBWxZ5WJW9ruGE9wVrdZYTe6wE4="; sha256 = "sha256-IFzKVHIuZZ2WLk23ZqyxvwxXF45f2O/VAqQ/j98x4ag=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View file

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, which, zstd, pbzip2 }: { lib, stdenv, fetchFromGitHub, which, zstd, pbzip2, installShellFiles }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "2.4.5"; version = "2.4.5";
@ -12,6 +12,8 @@ stdenv.mkDerivation rec {
sha256 = "sha256-15lUtErGsbXF2Gn0f0rvA18mMuVMmkKrGO2poeYZU9g="; sha256 = "sha256-15lUtErGsbXF2Gn0f0rvA18mMuVMmkKrGO2poeYZU9g=";
}; };
nativeBuildInputs = [ installShellFiles ];
postPatch = "patchShebangs test"; postPatch = "patchShebangs test";
# Issue #110149: our default /bin/sh apparently has 32-bit math only # Issue #110149: our default /bin/sh apparently has 32-bit math only
@ -22,11 +24,11 @@ stdenv.mkDerivation rec {
nativeCheckInputs = [ which zstd pbzip2 ]; nativeCheckInputs = [ which zstd pbzip2 ];
installPhase = '' installPhase = ''
mkdir -p $out/{bin,share/{${pname}-${version},man/man1}} runHook preInstall
cp makeself.lsm README.md $out/share/${pname}-${version} installManPage makeself.1
cp makeself.sh $out/bin/makeself install -Dm555 makeself.sh $out/bin/makeself
cp makeself.1 $out/share/man/man1/ install -Dm444 -t $out/share/${pname}/ makeself.lsm README.md makeself-header.sh
cp makeself-header.sh $out/share/${pname}-${version} runHook postInstall
''; '';
fixupPhase = '' fixupPhase = ''

View file

@ -6,13 +6,13 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "system76-keyboard-configurator"; pname = "system76-keyboard-configurator";
version = "1.3.2"; version = "1.3.3";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "pop-os"; owner = "pop-os";
repo = "keyboard-configurator"; repo = "keyboard-configurator";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-21cn43qyKg8jL6FF8D9H7dgcgSKggqaxb4cJVc0ljl0="; sha256 = "sha256-8Mb07OlmYl/dNxCdBrAq7mgXZvi0oqtt76UX8TMWUPY=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
@ -28,7 +28,7 @@ rustPlatform.buildRustPackage rec {
udev udev
]; ];
cargoHash = "sha256-9VjrDE/1VAgNrRmSYxCYKPrnilPQF+OXAYpFkF2lpAE="; cargoHash = "sha256-3IAljoL4cabZ9rpgqPrgG7ofwETHS/9OlBKjxTwCDTU=";
meta = with lib; { meta = with lib; {
description = "Keyboard configuration application for System76 keyboards and laptops"; description = "Keyboard configuration application for System76 keyboards and laptops";

View file

@ -4,23 +4,9 @@
, fetchFromGitHub , fetchFromGitHub
}: }:
let python3.pkgs.buildPythonApplication rec {
python = python3.override {
packageOverrides = self: super: {
sqlalchemy = super.sqlalchemy.overridePythonAttrs (old: rec {
version = "1.4.48";
src = fetchPypi {
pname = "SQLAlchemy";
inherit version;
hash = "sha256-tHvChwltmJoIOM6W99jpZpFKJNqHftQadTHUS1XNuN8=";
};
});
};
};
in
python.pkgs.buildPythonApplication rec {
pname = "flexget"; pname = "flexget";
version = "3.7.0"; version = "3.7.2";
format = "pyproject"; format = "pyproject";
# Fetch from GitHub in order to use `requirements.in` # Fetch from GitHub in order to use `requirements.in`
@ -28,22 +14,18 @@ python.pkgs.buildPythonApplication rec {
owner = "Flexget"; owner = "Flexget";
repo = "Flexget"; repo = "Flexget";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-H+R2NPHJbpQToKI1Op+DqPt82+w2xHxHC9NPpiF3aF0="; hash = "sha256-K71nawQhFYLPRg79rcZKJ+US+3M5JAU0eg+ZiFwB6n8=";
}; };
postPatch = '' postPatch = ''
# remove dependency constraints but keep environment constraints # remove dependency constraints but keep environment constraints
sed 's/[~<>=][^;]*//' -i requirements.txt sed 's/[~<>=][^;]*//' -i requirements.txt
# "zxcvbn-python" was renamed to "zxcvbn", and we don't have the former in
# nixpkgs. See: https://github.com/NixOS/nixpkgs/issues/62110
substituteInPlace requirements.txt --replace "zxcvbn-python" "zxcvbn"
''; '';
# ~400 failures # ~400 failures
doCheck = false; doCheck = false;
propagatedBuildInputs = with python.pkgs; [ propagatedBuildInputs = with python3.pkgs; [
# See https://github.com/Flexget/Flexget/blob/master/requirements.txt # See https://github.com/Flexget/Flexget/blob/master/requirements.txt
apscheduler apscheduler
beautifulsoup4 beautifulsoup4

View file

@ -20,7 +20,6 @@
, libyuv , libyuv
, libopus , libopus
, libsciter , libsciter
, llvmPackages
, wrapGAppsHook , wrapGAppsHook
, writeText , writeText
}: }:
@ -41,8 +40,6 @@ rustPlatform.buildRustPackage rec {
./fix-for-rust-1.65.diff ./fix-for-rust-1.65.diff
]; ];
LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib";
cargoLock = { cargoLock = {
lockFile = ./Cargo.lock; lockFile = ./Cargo.lock;
outputHashes = { outputHashes = {
@ -98,7 +95,7 @@ rustPlatform.buildRustPackage rec {
ln -s ${libyuv.out}/lib/* $VCPKG_ROOT/installed/${vcpkg_target}/lib/ ln -s ${libyuv.out}/lib/* $VCPKG_ROOT/installed/${vcpkg_target}/lib/
''; '';
nativeBuildInputs = [ pkg-config cmake makeWrapper copyDesktopItems yasm nasm clang wrapGAppsHook ]; nativeBuildInputs = [ pkg-config cmake makeWrapper copyDesktopItems yasm nasm clang wrapGAppsHook rustPlatform.bindgenHook ];
buildInputs = [ alsa-lib pulseaudio libXfixes libxcb xdotool gtk3 libvpx libopus libXtst libyuv ]; buildInputs = [ alsa-lib pulseaudio libXfixes libxcb xdotool gtk3 libvpx libopus libXtst libyuv ];
# Checks require an active X display. # Checks require an active X display.

View file

@ -1,4 +1,11 @@
{ lib, stdenv, fetchFromGitHub, fetchzip, cmake, gmp, mpfr }: { lib
, stdenv
, fetchFromGitHub
, fetchzip
, cmake
, gmp
, mpfr
}:
let let
satlib-bmc = fetchzip { satlib-bmc = fetchzip {
@ -7,6 +14,14 @@ let
sha256 = "sha256-F1Jfrj4iMMf/3LFCShIDMs4JfLkJ51Z4wkL1FDT9b/A="; sha256 = "sha256-F1Jfrj4iMMf/3LFCShIDMs4JfLkJ51Z4wkL1FDT9b/A=";
}; };
# needed for mpfr 4.2.0+ support
mpreal = fetchFromGitHub {
owner = "advanpix";
repo = "mpreal";
rev = "mpfrc++-3.6.9";
sha256 = "sha256-l61SKEx4pBocADrEGPVacQ6F2ep9IuvNZ8W08dKeZKg=";
};
in stdenv.mkDerivation rec { in stdenv.mkDerivation rec {
pname = "sharpsat-td"; pname = "sharpsat-td";
version = "unstable-2021-09-05"; version = "unstable-2021-09-05";
@ -27,6 +42,10 @@ in stdenv.mkDerivation rec {
--replace '"../../../flow-cutter-pace17/flow_cutter_pace17"' '"'"$out"'/bin/flow_cutter_pace17"' --replace '"../../../flow-cutter-pace17/flow_cutter_pace17"' '"'"$out"'/bin/flow_cutter_pace17"'
substituteInPlace src/preprocessor/treewidth.cpp \ substituteInPlace src/preprocessor/treewidth.cpp \
--replace '"./flow_cutter_pace17"' '"'"$out"'/bin/flow_cutter_pace17"' --replace '"./flow_cutter_pace17"' '"'"$out"'/bin/flow_cutter_pace17"'
# replace bundled version of mpreal/mpfrc++
rm -r src/mpfr
cp -r ${mpreal} src/mpfr
''; '';
nativeBuildInputs = [ cmake ]; nativeBuildInputs = [ cmake ];

View file

@ -54,7 +54,8 @@ assert (args' ? vendorHash && args' ? vendorSha256) -> throw "both `vendorHash`
let let
args = removeAttrs args' [ "overrideModAttrs" "vendorSha256" "vendorHash" ]; args = removeAttrs args' [ "overrideModAttrs" "vendorSha256" "vendorHash" ];
go-modules = if (vendorHash != null) then stdenv.mkDerivation (let modArgs = { go-modules = if (vendorHash == null) then "" else
(stdenv.mkDerivation {
name = "${name}-go-modules"; name = "${name}-go-modules";
@ -138,13 +139,11 @@ let
''; '';
dontFixup = true; dontFixup = true;
}; in modArgs // (
{ outputHashMode = "recursive";
outputHashMode = "recursive"; outputHash = vendorHash;
outputHash = vendorHash; outputHashAlgo = if args' ? vendorSha256 || vendorHash == "" then "sha256" else null;
outputHashAlgo = if args' ? vendorSha256 || vendorHash == "" then "sha256" else null; }).overrideAttrs overrideModAttrs;
}
) // overrideModAttrs modArgs) else "";
package = stdenv.mkDerivation (args // { package = stdenv.mkDerivation (args // {
nativeBuildInputs = [ go ] ++ nativeBuildInputs; nativeBuildInputs = [ go ] ++ nativeBuildInputs;

View file

@ -0,0 +1,25 @@
{ lib
, stdenv
, fetchurl
}:
stdenv.mkDerivation (finalAttrs: {
pname = "fleng";
version = "14";
src = fetchurl {
url = "http://www.call-with-current-continuation.org/fleng/fleng-${finalAttrs.version}.tgz";
hash = "sha256-Js9bllX/399t9oeiRrqJNUFyYJwJVb/xSzwrcMrdi08=";
};
doCheck = true;
meta = {
homepage = "http://www.call-with-current-continuation.org/fleng/fleng.html";
description = "A low level concurrent logic programming language descended from Prolog";
license = lib.licenses.publicDomain;
maintainers = with lib.maintainers; [ AndersonTorres ];
platforms = lib.platforms.unix;
};
})
# TODO: bootstrap

View file

@ -2,17 +2,17 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "wasmtime"; pname = "wasmtime";
version = "9.0.1"; version = "9.0.2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "bytecodealliance"; owner = "bytecodealliance";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
hash = "sha256-6pZZawygFxE5rWkdJUaJLxTd5pZiC0o1Rvc5Zl6YJpw="; hash = "sha256-Fnc3iepxHr7WjorFoabHE6ZM/zK1T5W/gkxL+AEcVgU=";
fetchSubmodules = true; fetchSubmodules = true;
}; };
cargoHash = "sha256-GUYd5/1pekOHG1e0WBxjOe3/foZ5YdU2ovF0btZ6+ec="; cargoHash = "sha256-7Q5aJU0sYzRLgjiSNLIrydYRJ3ozABjDo4VtmexS3po=";
cargoBuildFlags = [ "--package" "wasmtime-cli" "--package" "wasmtime-c-api" ]; cargoBuildFlags = [ "--package" "wasmtime-cli" "--package" "wasmtime-c-api" ];

View file

@ -41,7 +41,7 @@ stdenv.mkDerivation rec {
libgudev libgudev
]; ];
doCheck = stdenv.hostPlatform == stdenv.buildPlatform; doCheck = stdenv.hostPlatform == stdenv.buildPlatform && lib.meta.availableOn stdenv.hostPlatform valgrind;
mesonFlags = [ mesonFlags = [
"-Dtests=${if doCheck then "enabled" else "disabled"}" "-Dtests=${if doCheck then "enabled" else "disabled"}"

View file

@ -0,0 +1,36 @@
{ lib
, buildGoModule
, fetchFromGitHub
, android-tools
}:
buildGoModule rec {
pname = "fdroidcl";
version = "0.7.0";
src = fetchFromGitHub {
owner = "mvdan";
repo = "fdroidcl";
rev = "v${version}";
hash = "sha256-tqhs3b/DHfnGOm9qcM56NSzt1GJflJfbemkp7+nXbug=";
};
patches = [ ./go_mod_version_update.patch ];
vendorHash = "sha256-BWbwhHjfmMjiRurrZfW/YgIzJUH/hn+7qonD0BcTLxs=";
postPatch = ''
substituteInPlace adb/{server,device}.go \
--replace 'exec.Command("adb"' 'exec.Command("${android-tools}/bin/adb"'
'';
# TestScript/search attempts to connect to fdroid
doCheck = false;
meta = with lib; {
description = "F-Droid command line interface written in Go";
homepage = "https://github.com/mvdan/fdroidcl";
license = licenses.bsd3;
maintainers = with maintainers; [ aleksana ];
};
}

View file

@ -0,0 +1,47 @@
diff --git a/go.mod b/go.mod
index a482585..5c836dd 100644
--- a/go.mod
+++ b/go.mod
@@ -1,10 +1,19 @@
module mvdan.cc/fdroidcl
-go 1.16
+go 1.18
require (
github.com/kr/pretty v0.3.0
github.com/rogpeppe/go-internal v1.9.0
github.com/schollz/progressbar/v3 v3.13.0
- gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 // indirect
+)
+
+require (
+ github.com/kr/text v0.2.0 // indirect
+ github.com/mattn/go-runewidth v0.0.14 // indirect
+ github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db // indirect
+ github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e // indirect
+ github.com/rivo/uniseg v0.4.3 // indirect
+ golang.org/x/sys v0.4.0 // indirect
+ golang.org/x/term v0.4.0 // indirect
)
diff --git a/go.sum b/go.sum
index 7befc16..d8523cb 100644
--- a/go.sum
+++ b/go.sum
@@ -23,8 +23,6 @@ github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJ
github.com/rivo/uniseg v0.4.3 h1:utMvzDsuh3suAEnhH0RdHmoPbU648o6CvXxTx4SBMOw=
github.com/rivo/uniseg v0.4.3/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88=
github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc=
-github.com/rogpeppe/go-internal v1.8.1 h1:geMPLpDpQOgVyCg5z5GoRwLHepNdb71NXb67XFkP+Eg=
-github.com/rogpeppe/go-internal v1.8.1/go.mod h1:JeRgkft04UBgHMgCIwADu4Pn6Mtm5d4nPKWu0nJ5d+o=
github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8=
github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs=
github.com/schollz/progressbar/v3 v3.13.0 h1:9TeeWRcjW2qd05I8Kf9knPkW4vLM/hYoa6z9ABvxje8=
@@ -38,7 +36,4 @@ golang.org/x/sys v0.4.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/term v0.4.0 h1:O7UWfv5+A2qiuulQk30kVinPoMtoIPeVaKLEgLpVkvg=
golang.org/x/term v0.4.0/go.mod h1:9P2UbLfCdcvo3p/nzKvsmas4TnlujnuoV9hGgYzW1lQ=
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
-gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 h1:YR8cESwS4TdDjEe65xsg0ogRM/Nc3DYOhEAlW+xobZo=
-gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
-gopkg.in/errgo.v2 v2.1.0 h1:0vLT13EuvQ0hNvakwLuFZ/jYrLp5F3kcWHXdRggjCE8=
gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI=

View file

@ -7,14 +7,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "dominate"; pname = "dominate";
version = "2.7.0"; version = "2.8.0";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-UgEBNgiS6/nQVT9n0341n/kkA9ih4zgUAwUDCIoF2kk="; hash = "sha256-TJDDvvr4jmErcfSzmve8vviXes+oVc7JVyJaj79QQAc=";
}; };
nativeCheckInputs = [ nativeCheckInputs = [

View file

@ -22,7 +22,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "textual"; pname = "textual";
version = "0.24.1"; version = "0.26.0";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -31,7 +31,7 @@ buildPythonPackage rec {
owner = "Textualize"; owner = "Textualize";
repo = pname; repo = pname;
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-nFio45LxoVQK/IzVo2ZHGYzG6bHHr3yvA7P3kMZOUso="; hash = "sha256-l4zSSROeI55hFnf0C64bbAB+1cATUkS59Uybf7ZmSfs=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View file

@ -1,19 +1,16 @@
{ lib, rustPlatform, fetchFromGitHub }: { lib, rustPlatform, fetchCrate }:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "rust-code-analysis"; pname = "rust-code-analysis";
version = "0.0.23"; version = "0.0.25";
src = fetchFromGitHub { src = fetchCrate {
owner = "mozilla"; pname = "rust-code-analysis-cli";
repo = pname; inherit version;
rev = "v${version}"; hash = "sha256-/Irmtsy1PdRWQ7dTAHLZJ9M0J7oi2IiJyW6HeTIDOCs=";
sha256 = "1l9qr5rvbj542fx6g6h9p38z31kvwli39vipbmd3pvic2mpi6mzx";
}; };
cargoSha256 = "sha256-++d/czDJVGzY8GvBpBKpP0Rum4J4RpT95S81IRUWY2M="; cargoHash = "sha256-axrtFZQOm1/UUBq1CDFkaZCks1mWoLWmfajDfsqSBmY=";
cargoBuildFlags = [ "--workspace" ];
meta = with lib; { meta = with lib; {
description = "Analyze and collect metrics on source code"; description = "Analyze and collect metrics on source code";

View file

@ -9,16 +9,16 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "cargo-asm"; pname = "cargo-asm";
version = "0.2.0"; version = "0.2.18";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "pacak"; owner = "pacak";
repo = "cargo-show-asm"; repo = "cargo-show-asm";
rev = version; rev = version;
hash = "sha256-qsr28zuvu+i7P/MpwhDKQFFXTyFFo+vWrjBrpD1V8PY="; hash = "sha256-K7hWXRS6bb9XZxIgZQeu22Gtt3WmXI63Xd97Unm6mHs=";
}; };
cargoHash = "sha256-IL+BB08uZr5fm05ITxpm66jTb+pYYlLKOwQ8uf5rKSs="; cargoHash = "sha256-PJ5v8uuRZZV2jcVS+a8/CAABekdsB+nvSJWI4cUHq0A=";
nativeBuildInputs = [ nativeBuildInputs = [
installShellFiles installShellFiles
@ -43,5 +43,6 @@ rustPlatform.buildRustPackage rec {
homepage = "https://github.com/pacak/cargo-show-asm"; homepage = "https://github.com/pacak/cargo-show-asm";
license = with licenses; [ asl20 mit ]; license = with licenses; [ asl20 mit ];
maintainers = with maintainers; [ figsoda oxalica ]; maintainers = with maintainers; [ figsoda oxalica ];
mainProgram = "cargo-asm";
}; };
} }

View file

@ -1,7 +1,6 @@
{ lib { lib
, rustPlatform , rustPlatform
, fetchFromGitHub , fetchFromGitHub
, libclang
, stdenv , stdenv
, Security , Security
}: }:
@ -19,9 +18,9 @@ rustPlatform.buildRustPackage rec {
cargoSha256 = "sha256-hYCDpSKi7HlqwdnMnfnKw46VpO+bhsV11kIu/4yMaBw="; cargoSha256 = "sha256-hYCDpSKi7HlqwdnMnfnKw46VpO+bhsV11kIu/4yMaBw=";
buildInputs = lib.optional stdenv.isDarwin Security; nativeBuildInputs = [ rustPlatform.bindgenHook ];
LIBCLANG_PATH = "${libclang.lib}/lib"; buildInputs = lib.optional stdenv.isDarwin Security;
preCheck = "HOME=$(mktemp -d)"; preCheck = "HOME=$(mktemp -d)";

View file

@ -2,16 +2,16 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "cargo-zigbuild"; pname = "cargo-zigbuild";
version = "0.16.9"; version = "0.16.10";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "messense"; owner = "messense";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-AimdMEdqNbcNE47mHb4KOYQBtZqtpxFDHCnMbheynFU="; sha256 = "sha256-d7RA6sOM5zHAhM51pBc0ahblVaT/+fzLUPtbGcxIqfA=";
}; };
cargoSha256 = "sha256-k403T+31dwjEkdXEvAiwrguSUBksXGZz+pCu2BiJbsQ="; cargoSha256 = "sha256-Frs4BvD562RUSwyjlmJIihqFTtPjYTdpUlDGXKkg/9U=";
nativeBuildInputs = [ makeWrapper ]; nativeBuildInputs = [ makeWrapper ];

View file

@ -11,18 +11,18 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "maturin"; pname = "maturin";
version = "0.14.17"; version = "1.0.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "PyO3"; owner = "PyO3";
repo = "maturin"; repo = "maturin";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-Qvk9Pde1xmQ/lqU6KCda+F6UV7b414TDswP5Cwrh4jc="; hash = "sha256-Y/eqkA23gzoCmsFeYqZsK52e6s8ElIdKavL4ay9Q0Zs=";
}; };
cargoHash = "sha256-mPpM8jVDA9TbdNR1AdAzVP6sd2glUpDKhyVaaCcQzKE="; cargoHash = "sha256-fr7HuMfuErYyPhAdwvj+HluW/K4mSHW/kKcdnWOW1i4=";
nativeBuildInputs = [ pkg-config ]; nativeBuildInputs = lib.optionals stdenv.isLinux [ pkg-config ];
buildInputs = lib.optionals stdenv.isLinux [ dbus ] buildInputs = lib.optionals stdenv.isLinux [ dbus ]
++ lib.optionals stdenv.isDarwin [ Security libiconv ]; ++ lib.optionals stdenv.isDarwin [ Security libiconv ];
@ -43,7 +43,8 @@ rustPlatform.buildRustPackage rec {
Python and can upload them to PyPI. Python and can upload them to PyPI.
''; '';
homepage = "https://github.com/PyO3/maturin"; homepage = "https://github.com/PyO3/maturin";
license = licenses.asl20; changelog = "https://github.com/PyO3/maturin/blob/v${version}/Changelog.md";
license = with licenses; [ asl20 /* or */ mit ];
maintainers = [ ]; maintainers = [ ];
}; };
} }

View file

@ -1,43 +0,0 @@
{ lib
, rustPlatform
, fetchCrate
, makeWrapper
, ktlint
, yapf
, rubocop
, rustfmt
, nix-update-script
}:
rustPlatform.buildRustPackage rec {
pname = "uniffi-bindgen";
version = "0.22.0";
src = fetchCrate {
inherit pname version;
sha256 = "sha256-cUJsfAlzdoGMeFcdXwdPU0JcruneY60pssJPkJtb5gs=";
};
cargoSha256 = "sha256-k5uIR5rO4T1Xsu50vdLxCgSsVkNcxXHT4MitnMZkY6g=";
nativeBuildInputs = [ makeWrapper ];
checkFlags = [
# this test assumes it is run from the repository
"--skip=test::test_guessing_of_crate_root_directory_from_udl_file"
];
postFixup = ''
wrapProgram "$out/bin/uniffi-bindgen" \
--suffix PATH : ${lib.strings.makeBinPath [ ktlint yapf rubocop rustfmt ] }
'';
passthru.updateScript = nix-update-script { };
meta = with lib; {
description = "Toolkit for building cross-platform software components in Rust";
homepage = "https://mozilla.github.io/uniffi-rs/";
license = licenses.mpl20;
maintainers = with maintainers; [ figsoda vtuan10 ];
};
}

View file

@ -1,4 +1,4 @@
{ lib, buildGoPackage, fetchFromGitHub, nixosTests, stdenv }: { lib, buildGoPackage, fetchFromGitHub, stdenv }:
buildGoPackage rec { buildGoPackage rec {
pname = "etcd"; pname = "etcd";
@ -24,13 +24,12 @@ buildGoPackage rec {
install -Dm755 bin/* bin/functional/cmd/* -t $out/bin install -Dm755 bin/* bin/functional/cmd/* -t $out/bin
''; '';
passthru.tests = { inherit (nixosTests) etcd etcd-cluster; };
meta = with lib; { meta = with lib; {
description = "Distributed reliable key-value store for the most critical data of a distributed system"; description = "Distributed reliable key-value store for the most critical data of a distributed system";
license = licenses.asl20; license = licenses.asl20;
homepage = "https://etcd.io/"; homepage = "https://etcd.io/";
maintainers = with maintainers; [ offline zowoq ]; maintainers = with maintainers; [ offline zowoq ];
broken = stdenv.isDarwin; # outdated golang.org/x/sys broken = stdenv.isDarwin; # outdated golang.org/x/sys
knownVulnerabilities = [ "CVE-2023-32082" ];
}; };
} }

View file

@ -1,4 +1,4 @@
{ lib, buildGoModule, fetchFromGitHub, symlinkJoin }: { lib, buildGoModule, fetchFromGitHub, symlinkJoin, nixosTests }:
let let
version = "3.5.9"; version = "3.5.9";
@ -65,7 +65,10 @@ symlinkJoin {
inherit meta version; inherit meta version;
passthru = { inherit etcdserver etcdutl etcdctl; }; passthru = {
inherit etcdserver etcdutl etcdctl;
tests = { inherit (nixosTests) etcd etcd-cluster; };
};
paths = [ paths = [
etcdserver etcdserver

View file

@ -6,16 +6,16 @@
buildGoModule rec { buildGoModule rec {
pname = "nats-server"; pname = "nats-server";
version = "2.9.16"; version = "2.9.17";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "nats-io"; owner = "nats-io";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
hash = "sha256-tkOhPa163hiuk2sbfhHL6JTD7do3rrDZTkLYvwuue+o="; hash = "sha256-tWCZq6OwcjVaeaL4CrxSPwGaCKNZ2eN5s3vOoU9oT1I=";
}; };
vendorHash = "sha256-OixJhKaPZ58L+eN/cZnsXUPuGhYhFxfMKtqiV/mWLak="; vendorHash = "sha256-Qn1FkZLo3EC7KX7ZsQLDu26fbMFiwvy7cjlsFlgMtmo=";
doCheck = false; doCheck = false;

View file

@ -1,4 +1,4 @@
{ lib, buildGoModule, fetchFromGitHub, stdenv, pkg-config, rustPlatform, llvmPackages, libiconv, fetchpatch, nixosTests }: { lib, buildGoModule, fetchFromGitHub, stdenv, pkg-config, rustPlatform, libiconv, fetchpatch, nixosTests }:
let let
libflux_version = "0.170.1"; libflux_version = "0.170.1";
@ -25,9 +25,8 @@ let
]; ];
sourceRoot = "source/libflux"; sourceRoot = "source/libflux";
cargoSha256 = "sha256-kYiZ5ZRiFHRf1RQeeUGjIhnEkTvhNSZ0t4tidpRIDyk="; cargoSha256 = "sha256-kYiZ5ZRiFHRf1RQeeUGjIhnEkTvhNSZ0t4tidpRIDyk=";
nativeBuildInputs = [ llvmPackages.libclang ]; nativeBuildInputs = [ rustPlatform.bindgenHook ];
buildInputs = lib.optional stdenv.isDarwin libiconv; buildInputs = lib.optional stdenv.isDarwin libiconv;
LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib";
pkgcfg = '' pkgcfg = ''
Name: flux Name: flux
Version: ${libflux_version} Version: ${libflux_version}

View file

@ -1,10 +1,8 @@
{ buildGoModule { buildGoModule
, fetchFromGitHub , fetchFromGitHub
, fetchurl , fetchurl
, fetchpatch
, go-bindata , go-bindata
, lib , lib
, llvmPackages
, perl , perl
, pkg-config , pkg-config
, rustPlatform , rustPlatform
@ -43,9 +41,8 @@ let
}; };
sourceRoot = "source/libflux"; sourceRoot = "source/libflux";
cargoSha256 = "sha256-9rPW0lgi3lXJARa1KXgSY8LVJsoFjppok5ODGlqYeYw="; cargoSha256 = "sha256-9rPW0lgi3lXJARa1KXgSY8LVJsoFjppok5ODGlqYeYw=";
nativeBuildInputs = [ llvmPackages.libclang ]; nativeBuildInputs = [ rustPlatform.bindgenHook ];
buildInputs = lib.optional stdenv.isDarwin libiconv; buildInputs = lib.optional stdenv.isDarwin libiconv;
LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib";
pkgcfg = '' pkgcfg = ''
Name: flux Name: flux
Version: ${libflux_version} Version: ${libflux_version}

View file

@ -2,13 +2,13 @@
stdenvNoCC.mkDerivation rec { stdenvNoCC.mkDerivation rec {
pname = "zsh-autocomplete"; pname = "zsh-autocomplete";
version = "23.05.02"; version = "23.05.24";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "marlonrichert"; owner = "marlonrichert";
repo = "zsh-autocomplete"; repo = "zsh-autocomplete";
rev = version; rev = version;
sha256 = "sha256-HVt7JGkNxg9Kb29x95mxq/vtQ1dBbNeQlb9lK2qTBSI="; sha256 = "sha256-/6V6IHwB5p0GT1u5SAiUa20LjFDSrMo731jFBq/bnpw=";
}; };
strictDeps = true; strictDeps = true;

View file

@ -28,18 +28,19 @@
, bash , bash
, installShellFiles , installShellFiles
, nixosTests , nixosTests
, gitUpdater
}: }:
buildGoModule rec { buildGoModule rec {
pname = "lxd"; pname = "lxd";
version = "5.13"; version = "5.14";
src = fetchurl { src = fetchurl {
urls = [ urls = [
"https://linuxcontainers.org/downloads/lxd/lxd-${version}.tar.gz" "https://linuxcontainers.org/downloads/lxd/lxd-${version}.tar.gz"
"https://github.com/lxc/lxd/releases/download/lxd-${version}/lxd-${version}.tar.gz" "https://github.com/lxc/lxd/releases/download/lxd-${version}/lxd-${version}.tar.gz"
]; ];
hash = "sha256-kys8zfqhkpJqq4ICg6dOsoJEoxJ209GwdjGRrfrZ7j0="; hash = "sha256-EtVZ0g9LD6dWA70/E1Ad/RWJjbvrAzU2hF3n6CdTMBE=";
}; };
vendorHash = null; vendorHash = null;
@ -98,6 +99,10 @@ buildGoModule rec {
passthru.tests.lxd = nixosTests.lxd; passthru.tests.lxd = nixosTests.lxd;
passthru.tests.lxd-nftables = nixosTests.lxd-nftables; passthru.tests.lxd-nftables = nixosTests.lxd-nftables;
passthru.updateScript = gitUpdater {
url = "https://github.com/lxc/lxd.git";
rev-prefix = "lxd-";
};
meta = with lib; { meta = with lib; {
description = "Daemon based on liblxc offering a REST API to manage containers"; description = "Daemon based on liblxc offering a REST API to manage containers";

View file

@ -13,9 +13,8 @@ rustPlatform.buildRustPackage rec {
cargoHash = "sha256-B+LpUErsvtLYn+Xvq4KNBpLR9WYe38yMWHUNsd9jIs8="; cargoHash = "sha256-B+LpUErsvtLYn+Xvq4KNBpLR9WYe38yMWHUNsd9jIs8=";
nativeBuildInputs = [ installShellFiles ]; nativeBuildInputs = [ installShellFiles ]
++ lib.optionals stdenv.isDarwin [ rustPlatform.bindgenHook ];
LIBCLANG_PATH = lib.optionals stdenv.isDarwin "${stdenv.cc.cc.lib}/lib/";
postInstall = '' postInstall = ''
for shell in bash fish zsh; do for shell in bash fish zsh; do

View file

@ -2,16 +2,16 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "resvg"; pname = "resvg";
version = "0.33.0"; version = "0.34.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "RazrFalcon"; owner = "RazrFalcon";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
hash = "sha256-x2lsEYPv6FtARdRd5r+vvV+/S4uZkRXPhsoXmplgIAM="; hash = "sha256-S0HhaZ8zHcuMmo9mSJwmUXnDExMBsv176lrM9YmSEg8=";
}; };
cargoHash = "sha256-toUS1JAbJ8gbOsi87SXiqoaW0X7enAh4Iha3VeCa3WY="; cargoHash = "sha256-SFQ2w/Um1hgpy+cz+OZoaLjvJPcOa5Wc29v66pt+k3g=";
cargoBuildFlags = [ cargoBuildFlags = [
"--package=resvg" "--package=resvg"

View file

@ -5,14 +5,14 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "grass"; pname = "grass";
version = "0.12.3"; version = "0.12.4";
src = fetchCrate { src = fetchCrate {
inherit pname version; inherit pname version;
hash = "sha256-qx63icK4g/5LqKUsJpXs2Jpv30RuvIeLF6JNrTTkcLs="; hash = "sha256-tp3L8TDIG/92RupRAyRWSiALqE1XBK8jespKcSdSzsM=";
}; };
cargoHash = "sha256-v2ikP+zujj6GWN1ZwPIKK0jtF8Na5PaR1ZNelGdLzMM="; cargoHash = "sha256-hxVcHD5k1YwXCOq1UdiivPLwtY2egGvf/T3NrZTAB/k=";
# tests require rust nightly # tests require rust nightly
doCheck = false; doCheck = false;

View file

@ -2,14 +2,14 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "pipe-rename"; pname = "pipe-rename";
version = "1.6.3"; version = "1.6.4";
src = fetchCrate { src = fetchCrate {
inherit pname version; inherit pname version;
hash = "sha256-vpSzyDswIIKVFEHwTvFvPq3SRoBePHSv4A31rlj4ymU="; hash = "sha256-LSkUZ90lS2QGF6f8sFvunuYpw8Cmx8s6JCCOJYo2j7g=";
}; };
cargoHash = "sha256-tlG2Vk1YJBZs2mX1/QqIyFqOsnaK9oa+PsYcmKISC4E="; cargoHash = "sha256-wvs1uYqm9kb4hp4tgOR3UZzW1rButEWQYpv0Ca9CXe0=";
nativeCheckInputs = [ python3 ]; nativeCheckInputs = [ python3 ];

View file

@ -1,14 +1,14 @@
{ lib, stdenv, fetchurl }: { lib, stdenv, fetchurl }:
let let
version = "1.2023.7"; version = "1.2023.8";
in in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "plantuml-server"; pname = "plantuml-server";
inherit version; inherit version;
src = fetchurl { src = fetchurl {
url = "https://github.com/plantuml/plantuml-server/releases/download/v${version}/plantuml-v${version}.war"; url = "https://github.com/plantuml/plantuml-server/releases/download/v${version}/plantuml-v${version}.war";
sha256 = "sha256-JsMO2aef9DTo94uQNJN4jdiT5vnBTE8XDc4TtTTixVk="; sha256 = "sha256-2rvYoDna9zV+KAsSNYsThWLyu0BTtFm5GMBTXB7DRkA=";
}; };
dontUnpack = true; dontUnpack = true;

View file

@ -1,15 +1,17 @@
{ lib, rustPlatform, fetchCrate }: { lib, rustPlatform, fetchFromGitHub }:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "proximity-sort"; pname = "proximity-sort";
version = "1.2.0"; version = "1.3.0";
src = fetchCrate { src = fetchFromGitHub {
inherit pname version; owner = "jonhoo";
sha256 = "sha256-So3cvL2F7wfcPVPEBspMLH4f5KSbVQeUKLJve/BXLA4="; repo = "proximity-sort";
rev = "v${version}";
hash = "sha256-MRLQvspv6kjirljhAkk1KT+hPA4hdjA1b7RL9eEyglQ=";
}; };
cargoSha256 = "sha256-VGxU3CD5pj0Hrt6nUbNU7eNEpNrzHp/WaFHAKPUz8DA="; cargoHash = "sha256-0hP6qa8d5CaqtBHCWBJ8UjtVJc6Z0GmL8DvdTWDMM8g=";
meta = with lib; { meta = with lib; {
description = "Simple command-line utility for sorting inputs by proximity to a path argument"; description = "Simple command-line utility for sorting inputs by proximity to a path argument";

View file

@ -40,13 +40,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "rpm-ostree"; pname = "rpm-ostree";
version = "2023.3"; version = "2023.4";
outputs = [ "out" "dev" "man" "devdoc" ]; outputs = [ "out" "dev" "man" "devdoc" ];
src = fetchurl { src = fetchurl {
url = "https://github.com/coreos/${pname}/releases/download/v${version}/${pname}-${version}.tar.xz"; url = "https://github.com/coreos/${pname}/releases/download/v${version}/${pname}-${version}.tar.xz";
hash = "sha256-qIkGQqU+6EbSKmHwjZe+A1XsIZVnBQyM28DN9GFP/qE="; hash = "sha256-xk06T4A451o5C5rquCvQEpGKCw8AcBVf49Lg8VD0GdE=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View file

@ -1,10 +1,8 @@
{ stdenv { stdenv
, lib , lib
, fetchFromGitHub , fetchFromGitHub
, fetchpatch
, rustPlatform , rustPlatform
, pkg-config , pkg-config
, llvmPackages
, openssl , openssl
, protobuf , protobuf
, rdkafka , rdkafka
@ -58,7 +56,7 @@ rustPlatform.buildRustPackage {
"tracing-0.2.0" = "sha256-YAxeEofFA43PX2hafh3RY+C81a2v6n1fGzYz2FycC3M="; "tracing-0.2.0" = "sha256-YAxeEofFA43PX2hafh3RY+C81a2v6n1fGzYz2FycC3M=";
}; };
}; };
nativeBuildInputs = [ pkg-config cmake perl git ]; nativeBuildInputs = [ pkg-config cmake perl git rustPlatform.bindgenHook ];
buildInputs = [ oniguruma openssl protobuf rdkafka zstd ] buildInputs = [ oniguruma openssl protobuf rdkafka zstd ]
++ lib.optionals stdenv.isDarwin [ Security libiconv coreutils CoreServices ]; ++ lib.optionals stdenv.isDarwin [ Security libiconv coreutils CoreServices ];
@ -66,7 +64,6 @@ rustPlatform.buildRustPackage {
PROTOC = "${protobuf}/bin/protoc"; PROTOC = "${protobuf}/bin/protoc";
PROTOC_INCLUDE = "${protobuf}/include"; PROTOC_INCLUDE = "${protobuf}/include";
RUSTONIG_SYSTEM_LIBONIG = true; RUSTONIG_SYSTEM_LIBONIG = true;
LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib";
TZDIR = "${tzdata}/share/zoneinfo"; TZDIR = "${tzdata}/share/zoneinfo";

View file

@ -2,12 +2,12 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "grpc_cli"; pname = "grpc_cli";
version = "1.54.1"; version = "1.55.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "grpc"; owner = "grpc";
repo = "grpc"; repo = "grpc";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-svQxWHCoDHYZSvSrzUuwO0+6WMtgKsu+uVDV1mP/nL4="; hash = "sha256-xEfYNqtMKeJpztUm39PaUrE8OKa8TQhtLBny2/D99VM=";
fetchSubmodules = true; fetchSubmodules = true;
}; };
nativeBuildInputs = [ automake cmake autoconf ]; nativeBuildInputs = [ automake cmake autoconf ];

View file

@ -4,11 +4,11 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "lldpd"; pname = "lldpd";
version = "1.0.16"; version = "1.0.17";
src = fetchurl { src = fetchurl {
url = "https://media.luffy.cx/files/lldpd/${pname}-${version}.tar.gz"; url = "https://media.luffy.cx/files/lldpd/${pname}-${version}.tar.gz";
sha256 = "sha256-47ORZQx7pnzqL+hNZ/201/yKoexc+G64u5hHEd+EZak="; sha256 = "sha256-k0MXfxRdK8pm7wPVlSgHnT8WY8YkseK50IJo79xhJ84=";
}; };
configureFlags = [ configureFlags = [

View file

@ -5,14 +5,14 @@
python3.pkgs.buildPythonApplication rec { python3.pkgs.buildPythonApplication rec {
pname = "frogmouth"; pname = "frogmouth";
version = "0.5.0"; version = "0.6.0";
format = "pyproject"; format = "pyproject";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "Textualize"; owner = "Textualize";
repo = "frogmouth"; repo = "frogmouth";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-5MNQ78zwjtenHDjy2g1rjiq4HvFie7uUSlMwZu6RmXg="; hash = "sha256-BgJdcdIgYNZUJLWDgUWIDyiSSAkLdePYus3IYQo/QpY=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View file

@ -0,0 +1,56 @@
{ lib
, stdenv
, fetchFromGitHub
, rustPlatform
, installShellFiles
, pkg-config
, openssl
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "languagetool-rust";
version = "2.1.1";
src = fetchFromGitHub {
owner = "jeertmans";
repo = pname;
rev = "v${version}";
hash = "sha256-tgx1LcVAlBcgYAdtn4n5TiLzinmOImLoatGowUFHpUM=";
};
cargoHash = "sha256-8Q+Li4wLkS9/HlSdtfOFnojtUBojO3oUpNHkyOu5clA=";
buildFeatures = [ "full" ];
nativeBuildInputs = [ installShellFiles pkg-config ];
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ Security ];
checkFlags = [
# requires network access
"--skip=server::tests::test_server_check_data"
"--skip=server::tests::test_server_check_text"
"--skip=server::tests::test_server_languages"
"--skip=server::tests::test_server_ping"
"--skip=test_match_positions_1"
"--skip=test_match_positions_2"
"--skip=test_match_positions_3"
"--skip=test_match_positions_4"
"--skip=src/lib/lib.rs"
];
postInstall = ''
installShellCompletion --cmd ltrs \
--bash <($out/bin/ltrs completions bash) \
--fish <($out/bin/ltrs completions fish) \
--zsh <($out/bin/ltrs completions zsh)
'';
meta = with lib; {
description = "LanguageTool API in Rust";
homepage = "https://github.com/jeertmans/languagetool-rust";
license = licenses.mit;
maintainers = with maintainers; [ name-snrl ];
mainProgram = "ltrs";
};
}

View file

@ -1,18 +1,15 @@
{ lib, stdenv, fetchCrate, rustPlatform, openssl, CoreServices }: { lib, rustPlatform, fetchCrate, stdenv, CoreServices }:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "mdbook-katex"; pname = "mdbook-katex";
version = "0.4.2"; version = "0.5.1";
src = fetchCrate { src = fetchCrate {
inherit pname version; inherit pname version;
hash = "sha256-aEtmHihncs+Z+VRtUVsiRLK72bDWJQNjy/Q5xBvM1d0="; hash = "sha256-RDNZ6+d+UbiQ/Eb2+YbhPyGVcM8079UFsnNvch/1oAs=";
}; };
cargoHash = "sha256-L5bdR1khL3AHRNtFhy1GWRqMxdpNxrYGX3TELCUB4mQ="; cargoHash = "sha256-An2mQ4kWGF3qk2v9VeQh700n7n/+3ShPqMfCnZmiIuc=";
OPENSSL_DIR = "${lib.getDev openssl}";
OPENSSL_LIB_DIR = "${lib.getLib openssl}/lib";
buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ]; buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ];

View file

@ -1690,6 +1690,7 @@ mapAliases ({
ufraw = throw "ufraw is unmaintained and has been removed from nixpkgs. Its successor, nufraw, doesn't seem to be stable enough. Consider using Darktable for now"; # Added 2020-01-11 ufraw = throw "ufraw is unmaintained and has been removed from nixpkgs. Its successor, nufraw, doesn't seem to be stable enough. Consider using Darktable for now"; # Added 2020-01-11
ultrastardx-beta = throw "'ultrastardx-beta' has been renamed to/replaced by 'ultrastardx'"; # Converted to throw 2022-02-22 ultrastardx-beta = throw "'ultrastardx-beta' has been renamed to/replaced by 'ultrastardx'"; # Converted to throw 2022-02-22
unicorn-emu = unicorn; # Added 2020-10-29 unicorn-emu = unicorn; # Added 2020-10-29
uniffi-bindgen = throw "uniffi-bindgen has been removed since upstream no longer provides a standalone package for the CLI";
unifi-poller = unpoller; # Added 2022-11-24 unifi-poller = unpoller; # Added 2022-11-24
unifiStable = unifi6; # Added 2020-12-28 unifiStable = unifi6; # Added 2020-12-28
unity3d = throw "'unity3d' is unmaintained, has seen no updates in years and depends on deprecated GTK2"; # Added 2022-06-16 unity3d = throw "'unity3d' is unmaintained, has seen no updates in years and depends on deprecated GTK2"; # Added 2022-06-16

View file

@ -2290,6 +2290,8 @@ with pkgs;
flix = callPackage ../development/compilers/flix { }; flix = callPackage ../development/compilers/flix { };
fleng = callPackage ../development/compilers/fleng { };
fsrx = callPackage ../tools/misc/fsrx { }; fsrx = callPackage ../tools/misc/fsrx { };
fsuae = callPackage ../applications/emulators/fs-uae { }; fsuae = callPackage ../applications/emulators/fs-uae { };
@ -4861,6 +4863,8 @@ with pkgs;
fd = callPackage ../tools/misc/fd { }; fd = callPackage ../tools/misc/fd { };
fdroidcl = pkgs.callPackage ../development/mobile/fdroidcl { };
fdroidserver = python3Packages.callPackage ../development/tools/fdroidserver { }; fdroidserver = python3Packages.callPackage ../development/tools/fdroidserver { };
fetch-scm = callPackage ../tools/misc/fetch-scm { }; fetch-scm = callPackage ../tools/misc/fetch-scm { };
@ -5313,6 +5317,10 @@ with pkgs;
languagetool = callPackage ../tools/text/languagetool { }; languagetool = callPackage ../tools/text/languagetool { };
languagetool-rust = callPackage ../tools/text/languagetool-rust {
inherit (darwin.apple_sdk.frameworks) Security;
};
ldtk = callPackage ../applications/editors/ldtk { }; ldtk = callPackage ../applications/editors/ldtk { };
lepton = callPackage ../tools/graphics/lepton { }; lepton = callPackage ../tools/graphics/lepton { };
@ -6333,8 +6341,6 @@ with pkgs;
unifdef = callPackage ../development/tools/misc/unifdef { }; unifdef = callPackage ../development/tools/misc/unifdef { };
uniffi-bindgen = callPackage ../development/tools/uniffi-bindgen { };
unify = with python3Packages; toPythonApplication unify; unify = with python3Packages; toPythonApplication unify;
unionfs-fuse = callPackage ../tools/filesystems/unionfs-fuse { }; unionfs-fuse = callPackage ../tools/filesystems/unionfs-fuse { };
@ -25312,7 +25318,7 @@ with pkgs;
ergochat = callPackage ../servers/irc/ergochat { }; ergochat = callPackage ../servers/irc/ergochat { };
etcd = etcd_3_3; etcd = etcd_3_5;
etcd_3_3 = callPackage ../servers/etcd/3.3.nix { }; etcd_3_3 = callPackage ../servers/etcd/3.3.nix { };
etcd_3_4 = callPackage ../servers/etcd/3.4.nix { }; etcd_3_4 = callPackage ../servers/etcd/3.4.nix { };
etcd_3_5 = callPackage ../servers/etcd/3.5.nix { }; etcd_3_5 = callPackage ../servers/etcd/3.5.nix { };

View file

@ -12593,11 +12593,11 @@ with self; {
ImageExifTool = buildPerlPackage rec { ImageExifTool = buildPerlPackage rec {
pname = "Image-ExifTool"; pname = "Image-ExifTool";
version = "12.55"; version = "12.62";
src = fetchurl { src = fetchurl {
url = "https://exiftool.org/Image-ExifTool-${version}.tar.gz"; url = "https://exiftool.org/Image-ExifTool-${version}.tar.gz";
hash = "sha256-CFgb16GnYPIKG0PLbTiSfm7FRdWZBtroXH32c5Ru6gg="; hash = "sha256-SZCkbGm2VoiNfVcyuvQDnalkaI7d33ocLutRQEmZ7B0=";
}; };
nativeBuildInputs = lib.optional stdenv.isDarwin shortenPerlShebang; nativeBuildInputs = lib.optional stdenv.isDarwin shortenPerlShebang;