Merge remote-tracking branch 'origin/master' into staging-next

Conflicts:
	pkgs/development/python-modules/bambi/default.nix
	pkgs/development/python-modules/jaxopt/default.nix
This commit is contained in:
Alyssa Ross 2023-10-12 09:08:12 +00:00
commit 1bb67a90ba
No known key found for this signature in database
GPG Key ID: F9DBED4859B271C0
130 changed files with 1257 additions and 4562 deletions

View File

@ -6464,6 +6464,10 @@
githubId = 1447245; githubId = 1447245;
name = "Robin Gloster"; name = "Robin Gloster";
}; };
gm6k = {
email = "nix@quidecco.pl";
name = "Isidor Zeuner";
};
gmemstr = { gmemstr = {
email = "git@gmem.ca"; email = "git@gmem.ca";
github = "gmemstr"; github = "gmemstr";

View File

@ -45,8 +45,8 @@ services.xserver.displayManager.gdm.enable = true;
You can set the keyboard layout (and optionally the layout variant): You can set the keyboard layout (and optionally the layout variant):
```nix ```nix
services.xserver.layout = "de"; services.xserver.xkb.layout = "de";
services.xserver.xkbVariant = "neo"; services.xserver.xkb.variant = "neo";
``` ```
The X server is started automatically at boot time. If you don't want The X server is started automatically at boot time. If you don't want
@ -266,7 +266,7 @@ Once the configuration is applied, and you did a logout/login cycle, the
layout should be ready to use. You can try it by e.g. running layout should be ready to use. You can try it by e.g. running
`setxkbmap us-greek` and then type `<alt>+a` (it may not get applied in `setxkbmap us-greek` and then type `<alt>+a` (it may not get applied in
your terminal straight away). To change the default, the usual your terminal straight away). To change the default, the usual
`services.xserver.layout` option can still be used. `services.xserver.xkb.layout` option can still be used.
A layout can have several other components besides `xkb_symbols`, for A layout can have several other components besides `xkb_symbols`, for
example we will define new keycodes for some multimedia key and bind example we will define new keycodes for some multimedia key and bind

View File

@ -90,7 +90,7 @@ lib.mkOption {
``` ```
::: :::
### `mkPackageOption`, `mkPackageOptionMD` {#sec-option-declarations-util-mkPackageOption} ### `mkPackageOption` {#sec-option-declarations-util-mkPackageOption}
Usage: Usage:
@ -121,15 +121,13 @@ valid attribute path in pkgs (if name is a list).
If you wish to explicitly provide no default, pass `null` as `default`. If you wish to explicitly provide no default, pass `null` as `default`.
During the transition to CommonMark documentation `mkPackageOption` creates an option with a DocBook description attribute, once the transition is completed it will create a CommonMark description instead. `mkPackageOptionMD` always creates an option with a CommonMark description attribute and will be removed some time after the transition is completed.
[]{#ex-options-declarations-util-mkPackageOption} []{#ex-options-declarations-util-mkPackageOption}
Examples: Examples:
::: {#ex-options-declarations-util-mkPackageOption-hello .example} ::: {#ex-options-declarations-util-mkPackageOption-hello .example}
### Simple `mkPackageOption` usage ### Simple `mkPackageOption` usage
```nix ```nix
lib.mkPackageOptionMD pkgs "hello" { } lib.mkPackageOption pkgs "hello" { }
# is like # is like
lib.mkOption { lib.mkOption {
type = lib.types.package; type = lib.types.package;
@ -143,7 +141,7 @@ lib.mkOption {
::: {#ex-options-declarations-util-mkPackageOption-ghc .example} ::: {#ex-options-declarations-util-mkPackageOption-ghc .example}
### `mkPackageOption` with explicit default and example ### `mkPackageOption` with explicit default and example
```nix ```nix
lib.mkPackageOptionMD pkgs "GHC" { lib.mkPackageOption pkgs "GHC" {
default = [ "ghc" ]; default = [ "ghc" ];
example = "pkgs.haskell.packages.ghc92.ghc.withPackages (hkgs: [ hkgs.primes ])"; example = "pkgs.haskell.packages.ghc92.ghc.withPackages (hkgs: [ hkgs.primes ])";
} }

View File

@ -273,6 +273,8 @@
order, or relying on `mkBefore` and `mkAfter`, but may impact users calling order, or relying on `mkBefore` and `mkAfter`, but may impact users calling
`mkOrder n` with n  400. `mkOrder n` with n  400.
- X keyboard extension (XKB) options have been reorganized into a single attribute set, `services.xserver.xkb`. Specifically, `services.xserver.layout` is now `services.xserver.xkb.layout`, `services.xserver.xkbModel` is now `services.xserver.xkb.model`, `services.xserver.xkbOptions` is now `services.xserver.xkb.options`, `services.xserver.xkbVariant` is now `services.xserver.xkb.variant`, and `services.xserver.xkbDir` is now `services.xserver.xkb.dir`.
- `networking.networkmanager.firewallBackend` was removed as NixOS is now using iptables-nftables-compat even when using iptables, therefore Networkmanager now uses the nftables backend unconditionally. - `networking.networkmanager.firewallBackend` was removed as NixOS is now using iptables-nftables-compat even when using iptables, therefore Networkmanager now uses the nftables backend unconditionally.
- [`lib.lists.foldl'`](https://nixos.org/manual/nixpkgs/stable#function-library-lib.lists.foldl-prime) now always evaluates the initial accumulator argument first. - [`lib.lists.foldl'`](https://nixos.org/manual/nixpkgs/stable#function-library-lib.lists.foldl-prime) now always evaluates the initial accumulator argument first.
@ -448,4 +450,3 @@ The module update takes care of the new config syntax and the data itself (user
- The `electron` packages now places its application files in `$out/libexec/electron` instead of `$out/lib/electron`. Packages using electron-builder will fail to build and need to be adjusted by changing `lib` to `libexec`. - The `electron` packages now places its application files in `$out/libexec/electron` instead of `$out/lib/electron`. Packages using electron-builder will fail to build and need to be adjusted by changing `lib` to `libexec`.
- `teleport` has been upgraded from major version 12 to major version 14. Please see upstream [upgrade instructions](https://goteleport.com/docs/management/operations/upgrading/) and release notes for versions [13](https://goteleport.com/docs/changelog/#1300-050823) and [14](https://goteleport.com/docs/changelog/#1400-092023). Note that Teleport does not officially support upgrades across more than one major version at a time. If you're running Teleport server components, it is recommended to first upgrade to an intermediate 13.x version by setting `services.teleport.package = pkgs.teleport_13`. Afterwards, this option can be removed to upgrade to the default version (14). - `teleport` has been upgraded from major version 12 to major version 14. Please see upstream [upgrade instructions](https://goteleport.com/docs/management/operations/upgrading/) and release notes for versions [13](https://goteleport.com/docs/changelog/#1300-050823) and [14](https://goteleport.com/docs/changelog/#1400-092023). Note that Teleport does not officially support upgrades across more than one major version at a time. If you're running Teleport server components, it is recommended to first upgrade to an intermediate 13.x version by setting `services.teleport.package = pkgs.teleport_13`. Afterwards, this option can be removed to upgrade to the default version (14).

View File

@ -127,8 +127,8 @@ in
${optionalString (config.environment.sessionVariables ? XKB_CONFIG_ROOT) ${optionalString (config.environment.sessionVariables ? XKB_CONFIG_ROOT)
"-I${config.environment.sessionVariables.XKB_CONFIG_ROOT}" "-I${config.environment.sessionVariables.XKB_CONFIG_ROOT}"
} \ } \
-model '${xkbModel}' -layout '${layout}' \ -model '${xkb.model}' -layout '${xkb.layout}' \
-option '${xkbOptions}' -variant '${xkbVariant}' > "$out" -option '${xkb.options}' -variant '${xkb.variant}' > "$out"
''); '');
} }

View File

@ -1,43 +0,0 @@
{ config, lib, pkgs, ... }:
{
options = {
gnu = lib.mkOption {
type = lib.types.bool;
default = false;
description = lib.mdDoc ''
When enabled, GNU software is chosen by default whenever a there is
a choice between GNU and non-GNU software (e.g., GNU lsh
vs. OpenSSH).
'';
};
};
config = lib.mkIf config.gnu {
environment.systemPackages = with pkgs;
# TODO: Adjust `requiredPackages' from `system-path.nix'.
# TODO: Add Inetutils once it has the new `ifconfig'.
[ parted
#fdisk # XXX: GNU fdisk currently fails to build and it's redundant
# with the `parted' command.
nano zile
texinfo # for the stand-alone Info reader
]
++ lib.optional (!stdenv.isAarch32) grub2;
# GNU GRUB, where available.
boot.loader.grub.enable = !pkgs.stdenv.isAarch32;
# GNU lsh.
services.openssh.enable = false;
services.lshd.enable = true;
programs.ssh.startAgent = false;
services.xserver.startGnuPGAgent = true;
# TODO: GNU dico.
# TODO: GNU Inetutils' inetd.
# TODO: GNU Pies.
};
}

View File

@ -163,15 +163,15 @@ in
# console = { # console = {
# font = "Lat2-Terminus16"; # font = "Lat2-Terminus16";
# keyMap = "us"; # keyMap = "us";
# useXkbConfig = true; # use xkbOptions in tty. # useXkbConfig = true; # use xkb.options in tty.
# }; # };
$xserverConfig $xserverConfig
$desktopConfiguration $desktopConfiguration
# Configure keymap in X11 # Configure keymap in X11
# services.xserver.layout = "us"; # services.xserver.xkb.layout = "us";
# services.xserver.xkbOptions = "eurosign:e,caps:escape"; # services.xserver.xkb.options = "eurosign:e,caps:escape";
# Enable CUPS to print documents. # Enable CUPS to print documents.
# services.printing.enable = true; # services.printing.enable = true;

View File

@ -6,7 +6,6 @@
./config/fonts/fontdir.nix ./config/fonts/fontdir.nix
./config/fonts/ghostscript.nix ./config/fonts/ghostscript.nix
./config/fonts/packages.nix ./config/fonts/packages.nix
./config/gnu.nix
./config/gtk/gtk-icon-cache.nix ./config/gtk/gtk-icon-cache.nix
./config/i18n.nix ./config/i18n.nix
./config/iproute2.nix ./config/iproute2.nix

View File

@ -37,6 +37,7 @@ let
"fritzbox" "fritzbox"
"graphite" "graphite"
"idrac" "idrac"
"imap-mailstat"
"influxdb" "influxdb"
"ipmi" "ipmi"
"json" "json"

View File

@ -0,0 +1,71 @@
{ config, lib, pkgs, options }:
with lib;
let
cfg = config.services.prometheus.exporters.imap-mailstat;
valueToString = value:
if (builtins.typeOf value == "string") then "\"${value}\""
else (
if (builtins.typeOf value == "int") then "${toString value}"
else (
if (builtins.typeOf value == "bool") then (if value then "true" else "false")
else "XXX ${toString value}"
)
);
createConfigFile = accounts:
# unfortunately on toTOML yet
# https://github.com/NixOS/nix/issues/3929
pkgs.writeText "imap-mailstat-exporter.conf" ''
${concatStrings (attrValues (mapAttrs (name: config: "[[Accounts]]\nname = \"${name}\"\n${concatStrings (attrValues (mapAttrs (k: v: "${k} = ${valueToString v}\n") config))}") accounts))}
'';
mkOpt = type: description: mkOption {
type = types.nullOr type;
default = null;
description = lib.mdDoc description;
};
accountOptions.options = {
mailaddress = mkOpt types.str "Your email address (at the moment used as login name)";
username = mkOpt types.str "If empty string mailaddress value is used";
password = mkOpt types.str "";
serveraddress = mkOpt types.str "mailserver name or address";
serverport = mkOpt types.int "imap port number (at the moment only tls connection is supported)";
starttls = mkOpt types.bool "set to true for using STARTTLS to start a TLS connection";
};
in
{
port = 8081;
extraOpts = {
oldestUnseenDate = mkOption {
type = types.bool;
default = false;
description = lib.mdDoc ''
Enable metric with timestamp of oldest unseen mail
'';
};
accounts = mkOption {
type = types.attrsOf (types.submodule accountOptions);
default = {};
description = lib.mdDoc ''
Accounts to monitor
'';
};
configurationFile = mkOption {
type = types.path;
example = "/path/to/config-file";
description = lib.mdDoc ''
File containing the configuration
'';
};
};
serviceOpts = {
serviceConfig = {
ExecStart = ''
${pkgs.prometheus-imap-mailstat-exporter}/bin/imap-mailstat-exporter \
-config ${createConfigFile cfg.accounts} \
${optionalString cfg.oldestUnseenDate "-oldestunseendate"} \
${concatStringsSep " \\\n " cfg.extraFlags}
'';
};
};
}

View File

@ -90,7 +90,7 @@ in
}; };
}; };
environment.etc."X11/xkb".source = xcfg.xkbDir; environment.etc."X11/xkb".source = xcfg.xkb.dir;
fonts.packages = [ pkgs.dejavu_fonts pkgs.ubuntu_font_family ]; fonts.packages = [ pkgs.dejavu_fonts pkgs.ubuntu_font_family ];

View File

@ -309,7 +309,7 @@ in
"/share" "/share"
]; ];
environment.etc."X11/xkb".source = xcfg.xkbDir; environment.etc."X11/xkb".source = xcfg.xkb.dir;
environment.sessionVariables = { environment.sessionVariables = {
PLASMA_USE_QT_SCALING = mkIf cfg.useQtScaling "1"; PLASMA_USE_QT_SCALING = mkIf cfg.useQtScaling "1";

View File

@ -204,10 +204,10 @@ in
left-handed = xcfg.libinput.mouse.leftHanded; left-handed = xcfg.libinput.mouse.leftHanded;
}; };
keyboard = { keyboard = {
keymap_model = xcfg.xkbModel; keymap_model = xcfg.xkb.model;
keymap_layout = xcfg.layout; keymap_layout = xcfg.xkb.layout;
keymap_variant = xcfg.xkbVariant; keymap_variant = xcfg.xkb.variant;
keymap_options = xcfg.xkbOptions; keymap_options = xcfg.xkb.options;
}; };
}; in "${pkgs.weston}/bin/weston --shell=fullscreen-shell.so -c ${westonIni}"; }; in "${pkgs.weston}/bin/weston --shell=fullscreen-shell.so -c ${westonIni}";
description = lib.mdDoc "Command used to start the selected compositor"; description = lib.mdDoc "Command used to start the selected compositor";

View File

@ -121,11 +121,11 @@ in
environment.sessionVariables = { environment.sessionVariables = {
# runtime override supported by multiple libraries e. g. libxkbcommon # runtime override supported by multiple libraries e. g. libxkbcommon
# https://xkbcommon.org/doc/current/group__include-path.html # https://xkbcommon.org/doc/current/group__include-path.html
XKB_CONFIG_ROOT = config.services.xserver.xkbDir; XKB_CONFIG_ROOT = config.services.xserver.xkb.dir;
}; };
services.xserver = { services.xserver = {
xkbDir = "${xkb_patched}/etc/X11/xkb"; xkb.dir = "${xkb_patched}/etc/X11/xkb";
exportConfiguration = config.services.xserver.displayManager.startx.enable exportConfiguration = config.services.xserver.displayManager.startx.enable
|| config.services.xserver.displayManager.sx.enable; || config.services.xserver.displayManager.sx.enable;
}; };

View File

@ -175,6 +175,31 @@ in
"Use services.xserver.fontPath instead of useXFS") "Use services.xserver.fontPath instead of useXFS")
(mkRemovedOptionModule [ "services" "xserver" "useGlamor" ] (mkRemovedOptionModule [ "services" "xserver" "useGlamor" ]
"Option services.xserver.useGlamor was removed because it is unnecessary. Drivers that uses Glamor will use it automatically.") "Option services.xserver.useGlamor was removed because it is unnecessary. Drivers that uses Glamor will use it automatically.")
(lib.mkRenamedOptionModuleWith {
sinceRelease = 2311;
from = [ "services" "xserver" "layout" ];
to = [ "services" "xserver" "xkb" "layout" ];
})
(lib.mkRenamedOptionModuleWith {
sinceRelease = 2311;
from = [ "services" "xserver" "xkbModel" ];
to = [ "services" "xserver" "xkb" "model" ];
})
(lib.mkRenamedOptionModuleWith {
sinceRelease = 2311;
from = [ "services" "xserver" "xkbOptions" ];
to = [ "services" "xserver" "xkb" "options" ];
})
(lib.mkRenamedOptionModuleWith {
sinceRelease = 2311;
from = [ "services" "xserver" "xkbVariant" ];
to = [ "services" "xserver" "xkb" "variant" ];
})
(lib.mkRenamedOptionModuleWith {
sinceRelease = 2311;
from = [ "services" "xserver" "xkbDir" ];
to = [ "services" "xserver" "xkb" "dir" ];
})
]; ];
@ -339,48 +364,55 @@ in
''; '';
}; };
layout = mkOption { xkb = mkOption {
type = types.str; description = "X keyboard extension (XKB) configuration";
default = "us"; type = types.submodule {
description = lib.mdDoc '' options = {
Keyboard layout, or multiple keyboard layouts separated by commas. layout = mkOption {
''; type = types.str;
}; default = "us";
description = lib.mdDoc ''
Keyboard layout, or multiple keyboard layouts separated by commas.
'';
};
xkbModel = mkOption { model = mkOption {
type = types.str; type = types.str;
default = "pc104"; default = "pc104";
example = "presario"; example = "presario";
description = lib.mdDoc '' description = lib.mdDoc ''
Keyboard model. Keyboard model.
''; '';
}; };
xkbOptions = mkOption { options = mkOption {
type = types.commas; type = types.commas;
default = "terminate:ctrl_alt_bksp"; default = "terminate:ctrl_alt_bksp";
example = "grp:caps_toggle,grp_led:scroll"; example = "grp:caps_toggle,grp_led:scroll";
description = lib.mdDoc '' description = lib.mdDoc ''
X keyboard options; layout switching goes here. X keyboard options; layout switching goes here.
''; '';
}; };
xkbVariant = mkOption { variant = mkOption {
type = types.str; type = types.str;
default = ""; default = "";
example = "colemak"; example = "colemak";
description = lib.mdDoc '' description = lib.mdDoc ''
X keyboard variant. X keyboard variant.
''; '';
}; };
xkbDir = mkOption { dir = mkOption {
type = types.path; type = types.path;
default = "${pkgs.xkeyboard_config}/etc/X11/xkb"; default = "${pkgs.xkeyboard_config}/etc/X11/xkb";
defaultText = literalExpression ''"''${pkgs.xkeyboard_config}/etc/X11/xkb"''; defaultText = literalExpression ''"''${pkgs.xkeyboard_config}/etc/X11/xkb"'';
description = lib.mdDoc '' description = lib.mdDoc ''
Path used for -xkbdir xserver parameter. Path used for -xkbdir xserver parameter.
''; '';
};
};
};
}; };
config = mkOption { config = mkOption {
@ -667,7 +699,7 @@ in
{ {
"X11/xorg.conf".source = "${configFile}"; "X11/xorg.conf".source = "${configFile}";
# -xkbdir command line option does not seems to be passed to xkbcomp. # -xkbdir command line option does not seems to be passed to xkbcomp.
"X11/xkb".source = "${cfg.xkbDir}"; "X11/xkb".source = "${cfg.xkb.dir}";
}) })
# localectl looks into 00-keyboard.conf # localectl looks into 00-keyboard.conf
//{ //{
@ -675,10 +707,10 @@ in
Section "InputClass" Section "InputClass"
Identifier "Keyboard catchall" Identifier "Keyboard catchall"
MatchIsKeyboard "on" MatchIsKeyboard "on"
Option "XkbModel" "${cfg.xkbModel}" Option "XkbModel" "${cfg.xkb.model}"
Option "XkbLayout" "${cfg.layout}" Option "XkbLayout" "${cfg.xkb.layout}"
Option "XkbOptions" "${cfg.xkbOptions}" Option "XkbOptions" "${cfg.xkb.options}"
Option "XkbVariant" "${cfg.xkbVariant}" Option "XkbVariant" "${cfg.xkb.variant}"
EndSection EndSection
''; '';
} }
@ -759,7 +791,7 @@ in
services.xserver.displayManager.xserverArgs = services.xserver.displayManager.xserverArgs =
[ "-config ${configFile}" [ "-config ${configFile}"
"-xkbdir" "${cfg.xkbDir}" "-xkbdir" "${cfg.xkb.dir}"
] ++ optional (cfg.display != null) ":${toString cfg.display}" ] ++ optional (cfg.display != null) ":${toString cfg.display}"
++ optional (cfg.tty != null) "vt${toString cfg.tty}" ++ optional (cfg.tty != null) "vt${toString cfg.tty}"
++ optional (cfg.dpi != null) "-dpi ${toString cfg.dpi}" ++ optional (cfg.dpi != null) "-dpi ${toString cfg.dpi}"
@ -777,14 +809,14 @@ in
]; ];
system.checks = singleton (pkgs.runCommand "xkb-validated" { system.checks = singleton (pkgs.runCommand "xkb-validated" {
inherit (cfg) xkbModel layout xkbVariant xkbOptions; inherit (cfg.xkb) model layout variant options;
nativeBuildInputs = with pkgs.buildPackages; [ xkbvalidate ]; nativeBuildInputs = with pkgs.buildPackages; [ xkbvalidate ];
preferLocalBuild = true; preferLocalBuild = true;
} '' } ''
${optionalString (config.environment.sessionVariables ? XKB_CONFIG_ROOT) ${optionalString (config.environment.sessionVariables ? XKB_CONFIG_ROOT)
"export XKB_CONFIG_ROOT=${config.environment.sessionVariables.XKB_CONFIG_ROOT}" "export XKB_CONFIG_ROOT=${config.environment.sessionVariables.XKB_CONFIG_ROOT}"
} }
xkbvalidate "$xkbModel" "$layout" "$xkbVariant" "$xkbOptions" xkbvalidate "$model" "$layout" "$variant" "$options"
touch "$out" touch "$out"
''); '');

View File

@ -31,7 +31,7 @@ let
nodes.machine.console.keyMap = mkOverride 900 layout; nodes.machine.console.keyMap = mkOverride 900 layout;
nodes.machine.services.xserver.desktopManager.xterm.enable = false; nodes.machine.services.xserver.desktopManager.xterm.enable = false;
nodes.machine.services.xserver.layout = mkOverride 900 layout; nodes.machine.services.xserver.xkb.layout = mkOverride 900 layout;
nodes.machine.imports = [ ./common/x11.nix extraConfig ]; nodes.machine.imports = [ ./common/x11.nix extraConfig ];
testScript = '' testScript = ''
@ -116,7 +116,7 @@ in pkgs.lib.mapAttrs mkKeyboardTest {
}; };
extraConfig.console.keyMap = "fr"; extraConfig.console.keyMap = "fr";
extraConfig.services.xserver.layout = "fr"; extraConfig.services.xserver.xkb.layout = "fr";
}; };
bone = { bone = {
@ -130,8 +130,8 @@ in pkgs.lib.mapAttrs mkKeyboardTest {
}; };
extraConfig.console.keyMap = "bone"; extraConfig.console.keyMap = "bone";
extraConfig.services.xserver.layout = "de"; extraConfig.services.xserver.xkb.layout = "de";
extraConfig.services.xserver.xkbVariant = "bone"; extraConfig.services.xserver.xkb.variant = "bone";
}; };
colemak = { colemak = {
@ -141,8 +141,8 @@ in pkgs.lib.mapAttrs mkKeyboardTest {
}; };
extraConfig.console.keyMap = "colemak"; extraConfig.console.keyMap = "colemak";
extraConfig.services.xserver.layout = "us"; extraConfig.services.xserver.xkb.layout = "us";
extraConfig.services.xserver.xkbVariant = "colemak"; extraConfig.services.xserver.xkb.variant = "colemak";
}; };
dvorak = { dvorak = {
@ -154,8 +154,8 @@ in pkgs.lib.mapAttrs mkKeyboardTest {
}; };
extraConfig.console.keyMap = "dvorak"; extraConfig.console.keyMap = "dvorak";
extraConfig.services.xserver.layout = "us"; extraConfig.services.xserver.xkb.layout = "us";
extraConfig.services.xserver.xkbVariant = "dvorak"; extraConfig.services.xserver.xkb.variant = "dvorak";
}; };
dvorak-programmer = { dvorak-programmer = {
@ -170,8 +170,8 @@ in pkgs.lib.mapAttrs mkKeyboardTest {
}; };
extraConfig.console.keyMap = "dvorak-programmer"; extraConfig.console.keyMap = "dvorak-programmer";
extraConfig.services.xserver.layout = "us"; extraConfig.services.xserver.xkb.layout = "us";
extraConfig.services.xserver.xkbVariant = "dvp"; extraConfig.services.xserver.xkb.variant = "dvp";
}; };
neo = { neo = {
@ -185,8 +185,8 @@ in pkgs.lib.mapAttrs mkKeyboardTest {
}; };
extraConfig.console.keyMap = "neo"; extraConfig.console.keyMap = "neo";
extraConfig.services.xserver.layout = "de"; extraConfig.services.xserver.xkb.layout = "de";
extraConfig.services.xserver.xkbVariant = "neo"; extraConfig.services.xserver.xkb.variant = "neo";
}; };
qwertz = { qwertz = {
@ -199,7 +199,7 @@ in pkgs.lib.mapAttrs mkKeyboardTest {
}; };
extraConfig.console.keyMap = "de"; extraConfig.console.keyMap = "de";
extraConfig.services.xserver.layout = "de"; extraConfig.services.xserver.xkb.layout = "de";
}; };
custom = { custom = {
@ -212,7 +212,7 @@ in pkgs.lib.mapAttrs mkKeyboardTest {
}; };
extraConfig.console.useXkbConfig = true; extraConfig.console.useXkbConfig = true;
extraConfig.services.xserver.layout = "us-greek"; extraConfig.services.xserver.xkb.layout = "us-greek";
extraConfig.services.xserver.extraLayouts.us-greek = extraConfig.services.xserver.extraLayouts.us-greek =
{ description = "US layout with alt-gr greek"; { description = "US layout with alt-gr greek";
languages = [ "eng" ]; languages = [ "eng" ];

View File

@ -18,5 +18,8 @@ import ./make-test-python.nix ({ pkgs, lib, ... }: {
machine.wait_until_succeeds( machine.wait_until_succeeds(
"curl --fail -L http://localhost:8080/" "curl --fail -L http://localhost:8080/"
) )
_, out = machine.execute("grep SABCTools /var/lib/sabnzbd/logs/sabnzbd.log")
machine.log(out)
machine.fail("grep 'SABCTools disabled: no correct version found!' /var/lib/sabnzbd/logs/sabnzbd.log")
''; '';
}) })

View File

@ -5,13 +5,13 @@
}: }:
stdenv.mkDerivation (finalAttrs: { stdenv.mkDerivation (finalAttrs: {
version = "10.22"; version = "10.24";
pname = "monkeys-audio"; pname = "monkeys-audio";
src = fetchzip { src = fetchzip {
url = "https://monkeysaudio.com/files/MAC_${ url = "https://monkeysaudio.com/files/MAC_${
builtins.concatStringsSep "" (lib.strings.splitString "." finalAttrs.version)}_SDK.zip"; builtins.concatStringsSep "" (lib.strings.splitString "." finalAttrs.version)}_SDK.zip";
sha256 = "sha256-JmDH9IudtuJdu1kSDI1RNaYiIgmPgH4RT2Myz9ihQH4="; sha256 = "sha256-18rHv9sbxpuMfMrqoSSeEncDmQlWpdA/xNPoYJoIgJ0=";
stripRoot = false; stripRoot = false;
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View File

@ -16,13 +16,13 @@
stdenv.mkDerivation (finalAttrs: { stdenv.mkDerivation (finalAttrs: {
pname = "mympd"; pname = "mympd";
version = "12.0.2"; version = "12.0.4";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "jcorporation"; owner = "jcorporation";
repo = "myMPD"; repo = "myMPD";
rev = "v${finalAttrs.version}"; rev = "v${finalAttrs.version}";
sha256 = "sha256-7jE3erxrCPN2deI7EV0gDH1gy2XdwC1YdU2mo2xMI6Q="; sha256 = "sha256-pOs3VfgpDUD8KiBmJ37qpGLguxOXm5cr+jlTEeRZ4Bk=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View File

@ -32,11 +32,11 @@
stdenv.mkDerivation (finalAttrs: { stdenv.mkDerivation (finalAttrs: {
pname = "calibre"; pname = "calibre";
version = "6.26.0"; version = "6.28.1";
src = fetchurl { src = fetchurl {
url = "https://download.calibre-ebook.com/${finalAttrs.version}/calibre-${finalAttrs.version}.tar.xz"; url = "https://download.calibre-ebook.com/${finalAttrs.version}/calibre-${finalAttrs.version}.tar.xz";
hash = "sha256-7UUnDtTRf162xKMUuZoKh+y47oeUtrOsFHUTAvtOryM="; hash = "sha256-ZoJN8weAXUQkxalRtVtEaychc30+l2kfzG9Tm5jZh9g=";
}; };
patches = [ patches = [
@ -49,7 +49,7 @@ stdenv.mkDerivation (finalAttrs: {
(fetchpatch { (fetchpatch {
name = "0007-Hardening-Qt-code.patch"; name = "0007-Hardening-Qt-code.patch";
url = "https://raw.githubusercontent.com/debian-calibre/calibre/debian/${finalAttrs.version}+ds-1/debian/patches/hardening/0007-Hardening-Qt-code.patch"; url = "https://raw.githubusercontent.com/debian-calibre/calibre/debian/${finalAttrs.version}+ds-1/debian/patches/hardening/0007-Hardening-Qt-code.patch";
hash = "sha256-2V8H6ElvzS5yw1di+XZvMssuokUT5zP3aTzpDpMsMac="; hash = "sha256-eTzwo8aAIJnZTIZ/8DqCQi3ZbKxycEdiv+UxRuxo12g=";
}) })
] ]
++ lib.optional (!unrarSupport) ./dont_build_unrar_plugin.patch; ++ lib.optional (!unrarSupport) ./dont_build_unrar_plugin.patch;

View File

@ -1,12 +1,12 @@
diff --git a/src/calibre/ebooks/metadata/archive.py b/src/calibre/ebooks/metadata/archive.py diff --git a/src/calibre/ebooks/metadata/archive.py b/src/calibre/ebooks/metadata/archive.py
index 938ab24..1e095f8 100644 index 50b4750124..858e39eece 100644
--- a/src/calibre/ebooks/metadata/archive.py --- a/src/calibre/ebooks/metadata/archive.py
+++ b/src/calibre/ebooks/metadata/archive.py +++ b/src/calibre/ebooks/metadata/archive.py
@@ -44,7 +44,7 @@ @@ -99,7 +99,7 @@ class ArchiveExtract(FileTypePlugin):
description = _('Extract common e-book formats from archive files ' description = _('Extract common e-book formats from archive files '
'(ZIP/RAR). Also try to autodetect if they are actually ' '(ZIP/RAR/7z). Also try to autodetect if they are actually '
'CBZ/CBR files.') 'CBZ/CBR/CB7 files.')
- file_types = {'zip', 'rar'} - file_types = {'zip', 'rar', '7z'}
+ file_types = {'zip'} + file_types = {'zip', '7z'}
supported_platforms = ['windows', 'osx', 'linux'] supported_platforms = ['windows', 'osx', 'linux']
on_import = True on_import = True

View File

@ -1,74 +0,0 @@
{ lib
, stdenv
, fetchurl
, alsa-lib
, autoPatchelfHook
, dpkg
, gtk3
, makeWrapper
, mesa
, nss
, systemd
, xorg
}:
stdenv.mkDerivation rec {
pname = "join-desktop";
version = "1.1.2";
src = fetchurl {
url = "https://github.com/joaomgcd/JoinDesktop/releases/download/v${version}/com.joaomgcd.join_${version}_amd64.deb";
sha256 = "sha256-k1LX/HC3tfL4Raipo7wp/LnfrPa38x8NBeKRyHJ72CU=";
};
nativeBuildInputs = [
autoPatchelfHook
dpkg
makeWrapper
];
buildInputs = [
alsa-lib
gtk3
mesa
nss
xorg.libXScrnSaver
xorg.libXtst
];
unpackPhase = "dpkg-deb -x $src .";
runtimeDependencies = [
(lib.getLib systemd)
# TODO: check if they are required
# libnotify
# libappindicator
];
installPhase = ''
runHook preInstall
mkdir -p $out/bin $out/share/join-desktop
mv usr/share/* $out/share
mv opt/Join\ Desktop/* $out/share/join-desktop
ln -s $out/share/join-desktop/com.joaomgcd.join $out/bin/
substituteInPlace $out/share/applications/com.joaomgcd.join.desktop \
--replace "/opt/Join Desktop/com.joaomgcd.join" "com.joaomgcd.join"
runHook postInstall
'';
meta = with lib; {
homepage = "https://github.com/joaomgcd/JoinDesktop/";
description = "Desktop app for Join";
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
# on https://joaoapps.com/join/desktop/ "Join Desktop is an open source app" but no license
license = licenses.free;
platforms = [ "x86_64-linux" ];
maintainers = with maintainers; [ SuperSandro2000 ];
};
}

View File

@ -14,11 +14,11 @@ stdenv.mkDerivation (finalAttrs: let
in { in {
pname = "logseq"; pname = "logseq";
version = "0.9.18"; version = "0.9.19";
src = fetchurl { src = fetchurl {
url = "https://github.com/logseq/logseq/releases/download/${version}/logseq-linux-x64-${version}.AppImage"; url = "https://github.com/logseq/logseq/releases/download/${version}/logseq-linux-x64-${version}.AppImage";
hash = "sha256-+2BnVW0qWSJ/PIY3zl1c9qzcP9DZVp6E9B7AI6LqibE="; hash = "sha256-Y3AeeJc+PYJdckpOma5ZDbVtBbjBTfNNDqTip4l02/E=";
name = "${pname}-${version}.AppImage"; name = "${pname}-${version}.AppImage";
}; };

View File

@ -15,12 +15,12 @@ let
in in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "mkgmap"; pname = "mkgmap";
version = "4912"; version = "4914";
src = fetchsvn { src = fetchsvn {
url = "https://svn.mkgmap.org.uk/mkgmap/mkgmap/trunk"; url = "https://svn.mkgmap.org.uk/mkgmap/mkgmap/trunk";
rev = version; rev = version;
sha256 = "sha256-4A6N0bhRLKgpLXUSN1iAmIC4YX+BaiUow2YQqnxguRM="; sha256 = "sha256-aA5jGW6GTo2OvFZ/uPA4KpS+SjNB/tRGwgj1oM7zywU=";
}; };
patches = [ patches = [

File diff suppressed because it is too large Load Diff

View File

@ -23,13 +23,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "pot"; pname = "pot";
version = "2.4.2"; version = "2.6.2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "pot-app"; owner = "pot-app";
repo = "pot-desktop"; repo = "pot-desktop";
rev = version; rev = version;
hash = "sha256-n12uO5QbD/HgD5Rq5d+TQ8j8Gn5hl6wTi27TqFmunIM="; hash = "sha256-0NnZe1o8HsB1GR6wp8Da/CTLhcve/sGIumD2qb9DC3s=";
}; };
sourceRoot = "${src.name}/src-tauri"; sourceRoot = "${src.name}/src-tauri";
@ -66,15 +66,14 @@ stdenv.mkDerivation rec {
dontFixup = true; dontFixup = true;
outputHashMode = "recursive"; outputHashMode = "recursive";
outputHash = "sha256-/5bB4czTPS3ZM9f7NBIHbwd95BqY2dRwKaBOWVsef04="; outputHash = "sha256-m83cDKtFfwA3Xv8EqXNyF37ss+8qFDdFhu/1X1g7n/0=";
}; };
cargoDeps = rustPlatform.importCargoLock { cargoDeps = rustPlatform.importCargoLock {
lockFile = ./Cargo.lock; lockFile = ./Cargo.lock;
outputHashes = { outputHashes = {
# All other crates in the same workspace reuse this hash. # All other crates in the same workspace reuse this hash.
"tauri-plugin-autostart-0.0.0" = "sha256-7Qi07yRb+ww569+sEXFIwAtS8jbUNQx6LsrUnMl5YOo="; "tauri-plugin-autostart-0.0.0" = "sha256-hvR9tUp7yFhSP2bqE0mGwT8NHL7fGOYQ3Gz2wYi0bXI=";
"reqwest_dav-0.1.3" = "sha256-nWOH1SOoNA2o2lmGAIEJj3OLOlP39FjlXqK8LPZ95hI=";
}; };
}; };

View File

@ -2,13 +2,13 @@
buildGoModule rec { buildGoModule rec {
pname = "hubble"; pname = "hubble";
version = "0.12.0"; version = "0.12.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "cilium"; owner = "cilium";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-QtslAJC9qPR1jnyK4SLPVv8YTxOUvrzrSA1TzEwajS8="; sha256 = "sha256-YJrL4fLJnTkfzZQp4MzPZL8ZZOGhFbHUzOpvaA5JrOA=";
}; };
vendorHash = null; vendorHash = null;

View File

@ -6,13 +6,13 @@
buildGo121Module rec { buildGo121Module rec {
pname = "timoni"; pname = "timoni";
version = "0.14.1"; version = "0.14.2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "stefanprodan"; owner = "stefanprodan";
repo = "timoni"; repo = "timoni";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-DzJNNikvODP3v1jgQLbFcXEhcFfTeIYR6qHhUzEP/Ns="; hash = "sha256-45OIj57gb8njYoks7SgIlcMjz07ShEz2G/EECaTRTQg=";
}; };
vendorHash = "sha256-lRZFRnft8vEntVxiLOBcR00FP8AXexLyo3h2LCNWN00="; vendorHash = "sha256-lRZFRnft8vEntVxiLOBcR00FP8AXexLyo3h2LCNWN00=";

View File

@ -8,15 +8,16 @@
, gtk3 , gtk3
, xdg-user-dirs , xdg-user-dirs
, keybinder3 , keybinder3
, libnotify
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "appflowy"; pname = "appflowy";
version = "0.3.2"; version = "0.3.5";
src = fetchzip { src = fetchzip {
url = "https://github.com/AppFlowy-IO/appflowy/releases/download/${version}/AppFlowy_x86_64-unknown-linux-gnu_ubuntu-20.04.tar.gz"; url = "https://github.com/AppFlowy-IO/appflowy/releases/download/${version}/AppFlowy-${version}-linux-x86_64.tar.gz";
hash = "sha256-UmBXAfRIr9zOScqibKPHeKzr+UTx3gbGEm0tl7qn+oE="; hash = "sha256-NKoRsT8UQ1IHS95KATHNzbAYWCi6zwwmRZvR+U7MVhk=";
stripRoot = false; stripRoot = false;
}; };
@ -29,6 +30,7 @@ stdenv.mkDerivation rec {
buildInputs = [ buildInputs = [
gtk3 gtk3
keybinder3 keybinder3
libnotify
]; ];
dontBuild = true; dontBuild = true;

View File

@ -2,13 +2,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "multimon-ng"; pname = "multimon-ng";
version = "1.2.0"; version = "1.3.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "EliasOenal"; owner = "EliasOenal";
repo = "multimon-ng"; repo = "multimon-ng";
rev = version; rev = version;
sha256 = "sha256-Qk9zg3aSrEfC16wQqL/EMG6MPobX8dnJ1OLH8EMap0I="; sha256 = "sha256-IJnvOVajkcjaa0DDo8hbkkVvBnDqPKQUN8wJHlafo70=";
}; };
buildInputs = lib.optionals stdenv.isLinux [ libpulseaudio libX11 ]; buildInputs = lib.optionals stdenv.isLinux [ libpulseaudio libX11 ];

View File

@ -27,6 +27,10 @@ in stdenv.mkDerivation rec {
sha256 = "sha256-vOFIByfksruQBBO3XZmjJm81B4d9pPWy1JHfeY+fza4="; sha256 = "sha256-vOFIByfksruQBBO3XZmjJm81B4d9pPWy1JHfeY+fza4=";
}; };
patches = [ ./pkgconfig.patch ];
outputs = [ "out" "dev" "man" ];
nativeBuildInputs = [ cmake ]; nativeBuildInputs = [ cmake ];
buildInputs = [ buildInputs = [
@ -64,10 +68,8 @@ in stdenv.mkDerivation rec {
] ]
) ++ lib.optional enableCuda "-DGMX_GPU=CUDA"; ) ++ lib.optional enableCuda "-DGMX_GPU=CUDA";
postFixup = '' postInstall = ''
substituteInPlace "$out"/lib/pkgconfig/*.pc \ moveToOutput share/cmake $dev
--replace '=''${prefix}//' '=/' \
--replace "$out/$out/" "$out/"
''; '';
meta = with lib; { meta = with lib; {

View File

@ -0,0 +1,24 @@
diff --git a/src/external/muparser/muparser.pc.in b/src/external/muparser/muparser.pc.in
index 646787cb53..9b97ad57f7 100644
--- a/src/external/muparser/muparser.pc.in
+++ b/src/external/muparser/muparser.pc.in
@@ -1,7 +1,5 @@
-prefix=@CMAKE_INSTALL_PREFIX@
-exec_prefix=${prefix}
-libdir=${prefix}/@CMAKE_INSTALL_LIBDIR@
-includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@
+libdir=@CMAKE_INSTALL_FULL_LIBDIR@
+includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@
Name: @PACKAGE_NAME@
Description: Mathematical expressions parser library
diff --git a/src/gromacs/libgromacs.pc.cmakein b/src/gromacs/libgromacs.pc.cmakein
index ec1ed6684e..ca1105474a 100644
--- a/src/gromacs/libgromacs.pc.cmakein
+++ b/src/gromacs/libgromacs.pc.cmakein
@@ -1,4 +1,4 @@
-libdir=@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@
+libdir=@CMAKE_INSTALL_FULL_LIBDIR@
Name: libgromacs@GMX_LIBS_SUFFIX@
Description: Gromacs library

View File

@ -2,11 +2,11 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "gerrit"; pname = "gerrit";
version = "3.8.0"; version = "3.8.2";
src = fetchurl { src = fetchurl {
url = "https://gerrit-releases.storage.googleapis.com/gerrit-${version}.war"; url = "https://gerrit-releases.storage.googleapis.com/gerrit-${version}.war";
sha256 = "sha256-wial+K5eUZSJ+asFBLrFoJQOLWLHkl5ot4b4CIsg7Tc="; hash = "sha256-irzzG8qLJaBdRULGRyoYkn0tc4Yfcg/xe2SLriD8mtM=";
}; };
buildCommand = '' buildCommand = ''

View File

@ -10,7 +10,7 @@
}: }:
let let
version = "5.12.157"; version = "5.12.158";
in in
rustPlatform.buildRustPackage { rustPlatform.buildRustPackage {
pname = "git-mit"; pname = "git-mit";
@ -20,10 +20,10 @@ rustPlatform.buildRustPackage {
owner = "PurpleBooth"; owner = "PurpleBooth";
repo = "git-mit"; repo = "git-mit";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-Okb+HOCgtGLKSbhmhwA63BxS43ulZlSkHDOPsYzO2ZE="; hash = "sha256-vMrIkM8ShfaSrIEFiY6Jiwo8/6LMrjlqpD1B8DNtWcI=";
}; };
cargoHash = "sha256-I3sP6nhjMBXnANRrPT3+3HlY62TvfX6lFea7tHefOV8="; cargoHash = "sha256-kdXnj1O9AWFwFWQwZ6QPe5ePlxjr/F68vJEpAZgph6I=";
nativeBuildInputs = [ pkg-config ]; nativeBuildInputs = [ pkg-config ];

View File

@ -2,12 +2,6 @@
# It is not intended for manual editing. # It is not intended for manual editing.
version = 3 version = 3
[[package]]
name = "cfg-if"
version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
[[package]] [[package]]
name = "eyre" name = "eyre"
version = "0.6.8" version = "0.6.8"
@ -20,9 +14,9 @@ dependencies = [
[[package]] [[package]]
name = "goblin" name = "goblin"
version = "0.5.3" version = "0.5.4"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "91766b1121940d622933a13e20665857648681816089c9bc2075c4b75a6e4f6b" checksum = "a7666983ed0dd8d21a6f6576ee00053ca0926fb281a5522577a4dbd0f1b54143"
dependencies = [ dependencies = [
"log", "log",
"plain", "plain",
@ -37,12 +31,9 @@ checksum = "ce23b50ad8242c51a442f3ff322d56b02f08852c77e4c0b4d3fd684abc89c683"
[[package]] [[package]]
name = "log" name = "log"
version = "0.4.17" version = "0.4.20"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "abb12e687cfb44aa40f41fc3978ef76448f9b6038cad6aef4259d3c095a2382e" checksum = "b5e6163cb8c49088c2c36f57875e58ccd8c87c7427f7fbd50ea6710b2f3f2e8f"
dependencies = [
"cfg-if",
]
[[package]] [[package]]
name = "make-initrd-ng" name = "make-initrd-ng"
@ -54,9 +45,9 @@ dependencies = [
[[package]] [[package]]
name = "once_cell" name = "once_cell"
version = "1.17.1" version = "1.18.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b7e5500299e16ebb147ae15a00a942af264cf3688f47923b8fc2cd5858f23ad3" checksum = "dd8b5dd2ae5ed71462c540258bedcb51965123ad7e7ccf4b9a8cafaa4a63576d"
[[package]] [[package]]
name = "plain" name = "plain"
@ -66,18 +57,18 @@ checksum = "b4596b6d070b27117e987119b4dac604f3c58cfb0b191112e24771b2faeac1a6"
[[package]] [[package]]
name = "proc-macro2" name = "proc-macro2"
version = "1.0.42" version = "1.0.69"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c278e965f1d8cf32d6e0e96de3d3e79712178ae67986d9cf9151f51e95aac89b" checksum = "134c189feb4956b20f6f547d2cf727d4c0fe06722b20a0eec87ed445a97f92da"
dependencies = [ dependencies = [
"unicode-ident", "unicode-ident",
] ]
[[package]] [[package]]
name = "quote" name = "quote"
version = "1.0.20" version = "1.0.33"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3bcdf212e9776fbcb2d23ab029360416bb1706b1aea2d1a5ba002727cbcab804" checksum = "5267fca4496028628a95160fc423a33e8b2e6af8a5302579e322e4b520293cae"
dependencies = [ dependencies = [
"proc-macro2", "proc-macro2",
] ]
@ -93,9 +84,9 @@ dependencies = [
[[package]] [[package]]
name = "scroll_derive" name = "scroll_derive"
version = "0.11.0" version = "0.11.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bdbda6ac5cd1321e724fa9cee216f3a61885889b896f073b8f82322789c5250e" checksum = "1db149f81d46d2deba7cd3c50772474707729550221e69588478ebf9ada425ae"
dependencies = [ dependencies = [
"proc-macro2", "proc-macro2",
"quote", "quote",
@ -104,9 +95,9 @@ dependencies = [
[[package]] [[package]]
name = "syn" name = "syn"
version = "1.0.98" version = "2.0.38"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c50aef8a904de4c23c788f104b7dddc7d6f79c647c7c8ce4cc8f73eb0ca773dd" checksum = "e96b79aaa137db8f61e26363a0c9b47d8b4ec75da28b7d1d614c2303e232408b"
dependencies = [ dependencies = [
"proc-macro2", "proc-macro2",
"quote", "quote",
@ -115,6 +106,6 @@ dependencies = [
[[package]] [[package]]
name = "unicode-ident" name = "unicode-ident"
version = "1.0.2" version = "1.0.12"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "15c61ba63f9235225a22310255a29b806b907c9b8c964bcbd0a2c70f3f2deea7" checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b"

View File

@ -4,27 +4,27 @@
, fetchFromGitHub , fetchFromGitHub
, pkg-config , pkg-config
, less , less
, Security
, libiconv , libiconv
, installShellFiles , installShellFiles
, makeWrapper , makeWrapper
, darwin
}: }:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "bat"; pname = "bat";
version = "0.23.0"; version = "0.24.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "sharkdp"; owner = "sharkdp";
repo = "bat"; repo = "bat";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-cGHxB3Wp8yEcJBMtSOec6l7iBsMLhUtJ7nh5fijnWZs="; hash = "sha256-1RjlJEmY/jMf0IYQbrWrT1CHFyiqgarOl72u9xjjQiQ=";
}; };
cargoHash = "sha256-wZNdYGCLKD80gV1QUTgKsFSNYkbDubknPB3e6dsyEgs="; cargoHash = "sha256-b7wNWdKQ4QLeCf7bNZRfzT9hD/D/oDglU7Xyb65IrGY=";
nativeBuildInputs = [ pkg-config installShellFiles makeWrapper ]; nativeBuildInputs = [ pkg-config installShellFiles makeWrapper ];
buildInputs = lib.optionals stdenv.isDarwin [ Security libiconv ]; buildInputs = lib.optionals stdenv.isDarwin [ libiconv darwin.apple_sdk.frameworks.Security ];
postInstall = '' postInstall = ''
installManPage $releaseDir/build/bat-*/out/assets/manual/bat.1 installManPage $releaseDir/build/bat-*/out/assets/manual/bat.1
@ -38,7 +38,21 @@ rustPlatform.buildRustPackage rec {
--prefix PATH : "${lib.makeBinPath [ less ]}" --prefix PATH : "${lib.makeBinPath [ less ]}"
''; '';
checkFlags = [ "--skip=pager_more" "--skip=pager_most" ]; # Skip test cases which depends on `more`
checkFlags = [
"--skip=alias_pager_disable_long_overrides_short"
"--skip=config_read_arguments_from_file"
"--skip=env_var_bat_paging"
"--skip=pager_arg_override_env_noconfig"
"--skip=pager_arg_override_env_withconfig"
"--skip=pager_basic"
"--skip=pager_basic_arg"
"--skip=pager_env_bat_pager_override_config"
"--skip=pager_env_pager_nooverride_config"
"--skip=pager_more"
"--skip=pager_most"
"--skip=pager_overwrite"
];
doInstallCheck = true; doInstallCheck = true;
installCheckPhase = '' installCheckPhase = ''

View File

@ -32,7 +32,8 @@ stdenv.mkDerivation (finalAttrs: {
postInstall = '' postInstall = ''
for f in $out/bin/*; do for f in $out/bin/*; do
wrapProgram $f \ wrapProgram $f \
--prefix GUILE_LOAD_PATH : "${gash}/${guile.siteDir}" --prefix GUILE_LOAD_PATH : "$out/${guile.siteDir}:$GUILE_LOAD_PATH" \
--prefix GUILE_LOAD_COMPILED_PATH : "$out/${guile.siteCcacheDir}:$GUILE_LOAD_COMPILED_PATH"
done done
''; '';

View File

@ -1,29 +1,35 @@
{ lib, stdenv { lib
, stdenv
, fetchFromGitHub , fetchFromGitHub
, autoreconfHook
, pkg-config
, appstream-glib , appstream-glib
, autoreconfHook
, dbus , dbus
, pango , pango
, pcre2 , pcre2
, pkg-config
, tmux , tmux
, vte , vte
, wrapGAppsHook , wrapGAppsHook
, nixosTests , nixosTests
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "germinal"; pname = "germinal";
version = "26"; version = "26";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "Keruspe"; owner = "Keruspe";
repo = "Germinal"; repo = "Germinal";
rev = "v${version}"; rev = "v${finalAttrs.version}";
sha256 = "sha256-HUi+skF4bJj5CY2cNTOC4tl7jhvpXYKqBx2rqKzjlo0="; hash = "sha256-HUi+skF4bJj5CY2cNTOC4tl7jhvpXYKqBx2rqKzjlo0=";
}; };
nativeBuildInputs = [ autoreconfHook pkg-config wrapGAppsHook ]; nativeBuildInputs = [
autoreconfHook
pkg-config
wrapGAppsHook
];
buildInputs = [ buildInputs = [
appstream-glib appstream-glib
dbus dbus
@ -48,11 +54,12 @@ stdenv.mkDerivation rec {
passthru.tests.test = nixosTests.terminal-emulators.germinal; passthru.tests.test = nixosTests.terminal-emulators.germinal;
meta = with lib; { meta = {
description = "A minimal terminal emulator"; description = "A minimal terminal emulator";
homepage = "https://github.com/Keruspe/Germinal"; homepage = "https://github.com/Keruspe/Germinal";
license = with licenses; gpl3Plus; license = lib.licenses.gpl3Plus;
platforms = with platforms; unix; mainProgram = "germinal";
maintainers = with maintainers; [ AndersonTorres ]; maintainers = with lib.maintainers; [ AndersonTorres ];
platforms = lib.platforms.unix;
}; };
} })

View File

@ -3,6 +3,7 @@
, fetchurl , fetchurl
, fetchpatch , fetchpatch
, autoreconfHook , autoreconfHook
, callPackage
, guile , guile
, guile-commonmark , guile-commonmark
, guile-reader , guile-reader
@ -10,12 +11,12 @@
, pkg-config , pkg-config
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "haunt"; pname = "haunt";
version = "0.2.6"; version = "0.2.6";
src = fetchurl { src = fetchurl {
url = "https://files.dthompson.us/${pname}/${pname}-${version}.tar.gz"; url = "https://files.dthompson.us/haunt/haunt-${finalAttrs.version}.tar.gz";
hash = "sha256-vPKLQ9hDJdimEAXwIBGgRRlefM8/77xFQoI+0J/lkNs="; hash = "sha256-vPKLQ9hDJdimEAXwIBGgRRlefM8/77xFQoI+0J/lkNs=";
}; };
@ -40,6 +41,7 @@ stdenv.mkDerivation rec {
makeWrapper makeWrapper
pkg-config pkg-config
]; ];
buildInputs = [ buildInputs = [
guile guile
guile-commonmark guile-commonmark
@ -55,14 +57,13 @@ stdenv.mkDerivation rec {
--prefix GUILE_LOAD_COMPILED_PATH : "$out/${guile.siteCcacheDir}:$GUILE_LOAD_COMPILED_PATH" --prefix GUILE_LOAD_COMPILED_PATH : "$out/${guile.siteCcacheDir}:$GUILE_LOAD_COMPILED_PATH"
''; '';
doInstallCheck = true; passthru = {
installCheckPhase = '' tests = {
runHook preInstallCheck expectVersion = callPackage ./tests/001-test-version.nix { };
$out/bin/haunt --version };
runHook postInstallCheck };
'';
meta = with lib; { meta = {
homepage = "https://dthompson.us/projects/haunt.html"; homepage = "https://dthompson.us/projects/haunt.html";
description = "Guile-based static site generator"; description = "Guile-based static site generator";
longDescription = '' longDescription = ''
@ -81,8 +82,8 @@ stdenv.mkDerivation rec {
feeds, authors should feel empowered to tweak, replace, or create builders feeds, authors should feel empowered to tweak, replace, or create builders
to do things that aren't provided out-of-the-box. to do things that aren't provided out-of-the-box.
''; '';
license = licenses.gpl3Plus; license = lib.licenses.gpl3Plus;
maintainers = with maintainers; [ AndersonTorres AluisioASG ]; maintainers = with lib.maintainers; [ AndersonTorres AluisioASG ];
platforms = guile.meta.platforms; inherit (guile.meta) platforms;
}; };
} })

View File

@ -0,0 +1,21 @@
{ lib
, stdenv
, haunt
}:
stdenv.mkDerivation {
pname = "haunt-test-version";
inherit (haunt) version;
nativeBuildInputs = [ haunt ];
dontInstall = true;
buildCommand = ''
haunt --version
touch $out
'';
meta.timeout = 10;
}

View File

@ -3,19 +3,19 @@
, fetchFromGitHub , fetchFromGitHub
, libxkbcommon , libxkbcommon
, pkg-config , pkg-config
, wayland
, wayland-protocols , wayland-protocols
, wayland-scanner , wayland-scanner
, wayland
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "havoc"; pname = "havoc";
version = "0.5.0"; version = "0.5.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "ii8"; owner = "ii8";
repo = pname; repo = "havoc";
rev = version; rev = finalAttrs.version;
hash = "sha256-jvGm2gFdMS61otETF7gOEpYn6IuLfqI95IpEVfIv+C4="; hash = "sha256-jvGm2gFdMS61otETF7gOEpYn6IuLfqI95IpEVfIv+C4=";
}; };
@ -38,19 +38,19 @@ stdenv.mkDerivation rec {
installFlags = [ "PREFIX=$$out" ]; installFlags = [ "PREFIX=$$out" ];
postInstall = '' postInstall = ''
install -D -m 644 havoc.cfg -t $out/etc/${pname}/ install -Dm 644 havoc.cfg -t $out/etc/havoc/
install -D -m 644 README.md -t $out/share/doc/${pname}-${version}/ install -Dm 644 README.md -t $out/share/doc/havoc-${finalAttrs.version}/
''; '';
enableParallelBuilding = true; enableParallelBuilding = true;
meta = with lib; { meta = {
homepage = "https://github.com/ii8/havoc"; homepage = "https://github.com/ii8/havoc";
description = "A minimal terminal emulator for Wayland"; description = "A minimal terminal emulator for Wayland";
license = with licenses; [ mit publicDomain ]; license = with lib.licenses; [ mit publicDomain ];
platforms = with platforms; unix; mainProgram = "havoc";
maintainers = with maintainers; [ AndersonTorres ]; maintainers = with lib.maintainers; [ AndersonTorres ];
# fatal error: 'sys/epoll.h' file not found inherit (wayland.meta) platforms;
broken = stdenv.isDarwin; broken = stdenv.isDarwin; # fatal error: 'sys/epoll.h' file not found
}; };
} })

View File

@ -15,11 +15,13 @@ stdenv.mkDerivation (finalAttrs: {
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "orhun"; owner = "orhun";
repo = finalAttrs.pname; repo = "kermit";
rev = finalAttrs.version; rev = finalAttrs.version;
hash = "sha256-XPHF33Nu+H8OcQFwsuUOhDBDWKm8sh5B36sfROeSWPg="; hash = "sha256-XPHF33Nu+H8OcQFwsuUOhDBDWKm8sh5B36sfROeSWPg=";
}; };
outputs = [ "out" "man" ];
nativeBuildInputs = [ nativeBuildInputs = [
cmake cmake
pkg-config pkg-config
@ -33,12 +35,13 @@ stdenv.mkDerivation (finalAttrs: {
passthru.tests.test = nixosTests.terminal-emulators.kermit; passthru.tests.test = nixosTests.terminal-emulators.kermit;
meta = with lib; { meta = {
homepage = "https://github.com/orhun/kermit"; homepage = "https://github.com/orhun/kermit";
description = "A VTE-based, simple and froggy terminal emulator"; description = "A VTE-based, simple and froggy terminal emulator";
changelog = "https://github.com/orhun/kermit/releases/tag/${finalAttrs.version}"; changelog = "https://github.com/orhun/kermit/releases/tag/${finalAttrs.version}";
license = licenses.gpl3Only; license = lib.licenses.gpl3Only;
maintainers = with maintainers; [ AndersonTorres ]; mainProgram = "kermit";
platforms = with platforms; unix; maintainers = with lib.maintainers; [ AndersonTorres ];
platforms = lib.platforms.unix;
}; };
}) })

View File

@ -0,0 +1,28 @@
{ buildGoModule
, fetchFromGitHub
, lib
}:
buildGoModule rec {
pname = "minetest-mapserver";
version = "4.7.0";
src = fetchFromGitHub {
owner = pname;
repo = "mapserver";
rev = "v${version}";
hash = "sha256-qThdNXb17mh3Ph57d3oUl/KhP64AKPZJOCVsvr2SDWk=";
};
vendorHash = "sha256-VSyzdiPNcHDH/ebM2A0pTAyiMblMaJGEIULsIzupmaw=";
meta = with lib; {
description = "Realtime mapserver for minetest";
mainProgram = "mapserver";
homepage = "https://github.com/${pname}/mapserver/blob/master/readme.md";
changelog = "https://github.com/${pname}/mapserver/releases/tag/v${version}";
license = with licenses; [ mit cc-by-sa-30 ];
platforms = platforms.all;
maintainers = with maintainers; [ gm6k ];
};
}

View File

@ -11,7 +11,7 @@ rustPlatform.buildRustPackage rec {
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "tweag"; owner = "tweag";
repo = pname; repo = "nickel";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-g7pRTwa2sniIOmgdYCxfYxGRtxnQP8zaVWuPjzEZTSg="; hash = "sha256-g7pRTwa2sniIOmgdYCxfYxGRtxnQP8zaVWuPjzEZTSg=";
}; };

View File

@ -10,18 +10,20 @@
, conf ? null , conf ? null
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "nsxiv"; pname = "nsxiv";
version = "31"; version = "32";
src = fetchFromGitea { src = fetchFromGitea {
domain = "codeberg.org"; domain = "codeberg.org";
owner = "nsxiv"; owner = "nsxiv";
repo = "nsxiv"; repo = "nsxiv";
rev = "v${version}"; rev = "v${finalAttrs.version}";
hash = "sha256-X1ZMr5OADs9GIe/kp/kEqKMMHZMymd58m9+f0SPzn7s="; hash = "sha256-UWaet7hVtgfuWTiNY4VcsMWTfS6L9r5w1fb/0dWz8SI=";
}; };
outputs = [ "out" "man" "doc" ];
buildInputs = [ buildInputs = [
giflib giflib
imlib2 imlib2
@ -30,11 +32,11 @@ stdenv.mkDerivation rec {
libwebp libwebp
] ++ lib.optional stdenv.isDarwin libinotify-kqueue; ] ++ lib.optional stdenv.isDarwin libinotify-kqueue;
preBuild = lib.optionalString (conf!=null) '' postPatch = lib.optionalString (conf != null) ''
cp ${(builtins.toFile "config.def.h" conf)} config.def.h cp ${(builtins.toFile "config.def.h" conf)} config.def.h
''; '';
NIX_LDFLAGS = lib.optionalString stdenv.isDarwin "-linotify"; env.NIX_LDFLAGS = lib.optionalString stdenv.isDarwin "-linotify";
makeFlags = [ "CC:=$(CC)" ]; makeFlags = [ "CC:=$(CC)" ];
@ -42,7 +44,7 @@ stdenv.mkDerivation rec {
installTargets = [ "install-all" ]; installTargets = [ "install-all" ];
meta = with lib; { meta = {
homepage = "https://nsxiv.codeberg.page/"; homepage = "https://nsxiv.codeberg.page/";
description = "New Suckless X Image Viewer"; description = "New Suckless X Image Viewer";
longDescription = '' longDescription = ''
@ -59,9 +61,9 @@ stdenv.mkDerivation rec {
- Display image information in status bar - Display image information in status bar
- Display image name/path in X title - Display image name/path in X title
''; '';
license = licenses.gpl2Plus; changelog = "https://codeberg.org/nsxiv/nsxiv/src/tag/${finalAttrs.src.rev}/etc/CHANGELOG.md";
maintainers = with maintainers; [ AndersonTorres sikmir ]; license = lib.licenses.gpl2Plus;
platforms = platforms.unix; maintainers = with lib.maintainers; [ AndersonTorres sikmir ];
changelog = "https://codeberg.org/nsxiv/nsxiv/src/tag/${src.rev}/etc/CHANGELOG.md"; platforms = lib.platforms.unix;
}; };
} })

View File

@ -4,15 +4,15 @@
, autoreconfHook , autoreconfHook
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "robodoc"; pname = "robodoc";
version = "4.99.44"; version = "4.99.44";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "gumpu"; owner = "gumpu";
repo = "ROBODoc"; repo = "ROBODoc";
rev = "v${version}"; rev = "v${finalAttrs.version}";
sha256 = "l3prSdaGhOvXmZfCPbsZJNocO7y20zJjLQpajRTJOqE="; hash = "sha256-l3prSdaGhOvXmZfCPbsZJNocO7y20zJjLQpajRTJOqE=";
}; };
postConfigure = lib.optionalString stdenv.isDarwin '' postConfigure = lib.optionalString stdenv.isDarwin ''
@ -48,6 +48,6 @@ stdenv.mkDerivation rec {
''; '';
license = with licenses; gpl3Plus; license = with licenses; gpl3Plus;
maintainers = with maintainers; [ AndersonTorres ]; maintainers = with maintainers; [ AndersonTorres ];
platforms = with platforms; all; platforms = platforms.all;
}; };
} })

View File

@ -4,12 +4,12 @@
, unzip , unzip
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "scimark"; pname = "scimark";
version = "4c"; version = "4c";
src = fetchurl { src = fetchurl {
url = "https://math.nist.gov/scimark2/${pname}${version}.zip"; url = "https://math.nist.gov/scimark2/scimark${finalAttrs.version}.zip";
hash = "sha256-kcg5vKYp0B7+bC/CmFMO/tMwxf9q6nvuFv0vRSy3MbE="; hash = "sha256-kcg5vKYp0B7+bC/CmFMO/tMwxf9q6nvuFv0vRSy3MbE=";
}; };
@ -20,17 +20,21 @@ stdenv.mkDerivation rec {
dontConfigure = true; dontConfigure = true;
installPhase = '' installPhase = ''
install -d $out/bin/ runHook preInstall
install scimark4 $out/bin/
install -Dm755 scimark4 -t $out/bin/
runHook postInstall
''; '';
meta = with lib; { meta = {
homepage = "https://math.nist.gov/scimark2/index.html"; homepage = "https://math.nist.gov/scimark2/index.html";
description = "Scientific and numerical computing benchmark (ANSI C version)"; description = "Scientific and numerical computing benchmark (ANSI C version)";
license = licenses.publicDomain; downloadPage = "https://math.nist.gov/scimark2/download_c.html";
maintainers = with maintainers; [ AndersonTorres ]; license = lib.licenses.publicDomain;
mainProgram = "scimark4"; mainProgram = "scimark4";
platforms = platforms.all; maintainers = with lib.maintainers; [ AndersonTorres ];
platforms = lib.platforms.all;
}; };
} })
# TODO [ AndersonTorres ]: Java version # TODO [ AndersonTorres ]: Java version

View File

@ -7,9 +7,9 @@
, darwin , darwin
}: }:
stdenv.mkDerivation { stdenv.mkDerivation (finalAttrs: {
pname = "sound-of-sorting"; pname = "sound-of-sorting";
version = "unstable-2022-10-12"; version = "0.6.5-unstable-2022-10-12";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "bingmann"; owner = "bingmann";
@ -26,13 +26,16 @@ stdenv.mkDerivation {
wxGTK32 wxGTK32
SDL2 SDL2
] ]
++ lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Cocoa ; ++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Cocoa
];
meta = { meta = {
description = "Audibilization and Visualization of Sorting Algorithms"; description = "Audibilization and Visualization of Sorting Algorithms";
homepage = "https://panthema.net/2013/sound-of-sorting/"; homepage = "https://panthema.net/2013/sound-of-sorting/";
license = lib.licenses.gpl3Plus; license = lib.licenses.gpl3Plus;
mainProgram = "sound-of-sorting";
maintainers = with lib.maintainers; [ AndersonTorres ]; maintainers = with lib.maintainers; [ AndersonTorres ];
platforms = lib.platforms.unix; inherit (SDL2.meta) platforms;
}; };
} })

View File

@ -1,40 +1,47 @@
{ lib, stdenv { lib
, stdenv
, fetchFromGitHub , fetchFromGitHub
, autoreconfHook , autoreconfHook
, pkg-config
, expat , expat
, gettext , gettext
, gtk , gtk3
, libconfuse , libconfuse
, pcre2
, vte
, makeWrapper , makeWrapper
, pcre2
, pkg-config
, vte
, nixosTests , nixosTests
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "tilda"; pname = "tilda";
version = "1.5.4"; version = "1.5.4";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "lanoxx"; owner = "lanoxx";
repo = "tilda"; repo = "tilda";
rev = "${pname}-${version}"; rev = "tilda-${finalAttrs.version}";
sha256 = "sha256-uDx28jmjNUyzJbgTJiHbjI9U5mYb9bnfl/9AjbxNUWA="; hash = "sha256-uDx28jmjNUyzJbgTJiHbjI9U5mYb9bnfl/9AjbxNUWA=";
}; };
nativeBuildInputs = [ autoreconfHook makeWrapper pkg-config ]; nativeBuildInputs = [
autoreconfHook
makeWrapper
pkg-config
];
buildInputs = [ buildInputs = [
gettext gettext
gtk gtk3
libconfuse libconfuse
pcre2 pcre2
vte vte
]; ];
LD_LIBRARY_PATH = "${expat.out}/lib"; # ugly hack for xgettext to work during build # ugly hack for xgettext to work during build
env.LD_LIBRARY_PATH = "${lib.getLib expat}/lib";
# The config locking scheme relies on the binary being called "tilda", # The config locking scheme relies on the binary being called "tilda"
# (`pgrep -C tilda`), so a simple `wrapProgram` won't suffice: # (`pgrep -C tilda`), so a simple `wrapProgram` won't suffice:
postInstall = '' postInstall = ''
mkdir $out/bin/wrapped mkdir $out/bin/wrapped
@ -45,12 +52,11 @@ stdenv.mkDerivation rec {
passthru.tests.test = nixosTests.terminal-emulators.tilda; passthru.tests.test = nixosTests.terminal-emulators.tilda;
meta = with lib; { meta = {
description = "A Gtk based drop down terminal for Linux and Unix";
homepage = "https://github.com/lanoxx/tilda/"; homepage = "https://github.com/lanoxx/tilda/";
license = licenses.gpl3Plus; description = "A Gtk based drop down terminal for Linux and Unix";
maintainers = [ maintainers.AndersonTorres ]; license = lib.licenses.gpl3Plus;
platforms = platforms.linux; maintainers = [ lib.maintainers.AndersonTorres ];
platforms = lib.platforms.linux;
}; };
} })

View File

@ -56,12 +56,12 @@ let
UCLIBC_HAS_FPU n UCLIBC_HAS_FPU n
''; '';
in in
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "uclibc-ng"; pname = "uclibc-ng";
version = "1.0.44"; version = "1.0.44";
src = fetchurl { src = fetchurl {
url = "https://downloads.uclibc-ng.org/releases/${version}/uClibc-ng-${version}.tar.xz"; url = "https://downloads.uclibc-ng.org/releases/${finalAttrs.version}/uClibc-ng-${finalAttrs.version}.tar.xz";
sha256 = "sha256-ffnZh5VYJzgvHCQA2lE0Vr7Ltvhovf03c3Jl8cvuyZQ="; sha256 = "sha256-ffnZh5VYJzgvHCQA2lE0Vr7Ltvhovf03c3Jl8cvuyZQ=";
}; };
@ -108,7 +108,13 @@ stdenv.mkDerivation rec {
runHook postInstall runHook postInstall
''; '';
meta = with lib; { passthru = {
# Derivations may check for the existance of this attribute, to know what to
# link to.
libiconv = libiconvReal;
};
meta = {
homepage = "https://uclibc-ng.org"; homepage = "https://uclibc-ng.org";
description = "Embedded C library"; description = "Embedded C library";
longDescription = '' longDescription = ''
@ -126,16 +132,9 @@ stdenv.mkDerivation rec {
processors. Alpha, FR-V, HPPA, IA64, LM32, NIOS2, Tile and Sparc64 are processors. Alpha, FR-V, HPPA, IA64, LM32, NIOS2, Tile and Sparc64 are
experimental and need more testing. experimental and need more testing.
''; '';
license = licenses.lgpl2Plus; license = lib.licenses.lgpl2Plus;
maintainers = with maintainers; [ rasendubi AndersonTorres ]; maintainers = with lib.maintainers; [ rasendubi AndersonTorres ];
platforms = platforms.linux; platforms = lib.platforms.linux;
badPlatforms = platforms.aarch64; badPlatforms = lib.platforms.aarch64;
}; };
})
passthru = {
# Derivations may check for the existance of this attribute, to know what to
# link to.
libiconv = libiconvReal;
};
}

View File

@ -9,16 +9,16 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "erg"; pname = "erg";
version = "0.6.21"; version = "0.6.22";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "erg-lang"; owner = "erg-lang";
repo = "erg"; repo = "erg";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-NS9LpnCAYmninAcliwdEXPSYqqQZ8impaaK2eceoi3k="; hash = "sha256-dUGwSNN6eAMXIaIn3/xQxZAcyH1tTOrj4oRMkkI1KXU=";
}; };
cargoHash = "sha256-JJPbArXb3Hmf7bDRlYM0ZOnaolYnDtc41EFazFtApWc="; cargoHash = "sha256-TLEFy4r+CA8XcPYw5cX7qCIRrj/8q9Z1YOnkAKpjwug=";
nativeBuildInputs = [ nativeBuildInputs = [
makeWrapper makeWrapper

View File

@ -23,13 +23,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "gvm-libs"; pname = "gvm-libs";
version = "22.7.1"; version = "22.7.2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "greenbone"; owner = "greenbone";
repo = pname; repo = pname;
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-TSi537RLZGwnyC1nL/Ge3lTlV2FmH1nmAzFSHmaTv04="; hash = "sha256-vcCugIohuZg+GhUA7ZgkyhMxN0KSvCFVO/HLOnrNxxA=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View File

@ -23,6 +23,8 @@ stdenv.mkDerivation rec {
sha256 = "sha256-7VOhdZOPBe1qh8OK8OTNKA5I4A5whl6aOubAzsUDSRw="; sha256 = "sha256-7VOhdZOPBe1qh8OK8OTNKA5I4A5whl6aOubAzsUDSRw=";
}; };
outputs = [ "out" "dev" "man" ];
nativeBuildInputs = [ pkg-config autoreconfHook ]; nativeBuildInputs = [ pkg-config autoreconfHook ];
buildInputs = lib.optionals enableOpx [ libuuid numactl ] ++ lib.optionals enablePsm2 [ libpsm2 ]; buildInputs = lib.optionals enableOpx [ libuuid numactl ] ++ lib.optionals enablePsm2 [ libpsm2 ];

View File

@ -9,13 +9,13 @@
stdenv.mkDerivation (finalAttrs: { stdenv.mkDerivation (finalAttrs: {
pname = "mongocxx"; pname = "mongocxx";
version = "3.8.0"; version = "3.8.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "mongodb"; owner = "mongodb";
repo = "mongo-cxx-driver"; repo = "mongo-cxx-driver";
rev = "refs/tags/r${finalAttrs.version}"; rev = "refs/tags/r${finalAttrs.version}";
hash = "sha256-7pMVBWMIGV6k04/0rKULwNcl0NMO4hqMnOzWv+0/DrA="; hash = "sha256-fBZg69jsvXzhllpcPBGXkjYyvUQImnGNkb2Ek5Oi0p4=";
}; };
postPatch = '' postPatch = ''

View File

@ -18,6 +18,8 @@ stdenv.mkDerivation rec {
sha256 = "sha256-NJLpitq2K1l+8NKS+yRZthI7yABwqKoKML5pYgdaEvA="; sha256 = "sha256-NJLpitq2K1l+8NKS+yRZthI7yABwqKoKML5pYgdaEvA=";
}; };
outputs = [ "out" "doc" "man" ];
configureFlags = [ configureFlags = [
"--enable-shared" "--enable-shared"
"--enable-sharedlib" "--enable-sharedlib"

View File

@ -21,6 +21,8 @@ stdenv.mkDerivation rec {
sha256 = "sha256-w5pEkvS+UN9hAHhXSLoolOI85FCpQSgYHVFtpXV3Ua4="; sha256 = "sha256-w5pEkvS+UN9hAHhXSLoolOI85FCpQSgYHVFtpXV3Ua4=";
}; };
outputs = [ "out" "doc" "man" ];
nativeBuildInputs = [ pkg-config bison makeWrapper gfortran ]; nativeBuildInputs = [ pkg-config bison makeWrapper gfortran ];
propagatedBuildInputs = [ numactl rdma-core zlib opensm ]; propagatedBuildInputs = [ numactl rdma-core zlib opensm ];
buildInputs = with lib; [ buildInputs = with lib; [

View File

@ -43,6 +43,8 @@ in stdenv.mkDerivation rec {
find -name "Makefile.in" -exec sed -i "s/\`date\`/$ts/" \{} \; find -name "Makefile.in" -exec sed -i "s/\`date\`/$ts/" \{} \;
''; '';
outputs = [ "out" "man" ];
buildInputs = [ zlib ] buildInputs = [ zlib ]
++ lib.optionals stdenv.isLinux [ libnl numactl pmix ucx ] ++ lib.optionals stdenv.isLinux [ libnl numactl pmix ucx ]
++ lib.optionals cudaSupport [ cudatoolkit ] ++ lib.optionals cudaSupport [ cudatoolkit ]
@ -56,8 +58,8 @@ in stdenv.mkDerivation rec {
configureFlags = lib.optional (!cudaSupport) "--disable-mca-dso" configureFlags = lib.optional (!cudaSupport) "--disable-mca-dso"
++ lib.optional (!fortranSupport) "--disable-mpi-fortran" ++ lib.optional (!fortranSupport) "--disable-mpi-fortran"
++ lib.optionals stdenv.isLinux [ ++ lib.optionals stdenv.isLinux [
"--with-libnl=${libnl.dev}" "--with-libnl=${lib.getDev libnl}"
"--with-pmix=${pmix}" "--with-pmix=${lib.getDev pmix}"
"--with-pmix-libdir=${pmix}/lib" "--with-pmix-libdir=${pmix}/lib"
"--enable-mpi-cxx" "--enable-mpi-cxx"
] ++ lib.optional enableSGE "--with-sge" ] ++ lib.optional enableSGE "--with-sge"
@ -66,13 +68,13 @@ in stdenv.mkDerivation rec {
# https://github.com/openucx/ucx # https://github.com/openucx/ucx
# https://www.open-mpi.org/faq/?category=buildcuda # https://www.open-mpi.org/faq/?category=buildcuda
++ lib.optionals cudaSupport [ "--with-cuda=${cudatoolkit_joined}" "--enable-dlopen" ] ++ lib.optionals cudaSupport [ "--with-cuda=${cudatoolkit_joined}" "--enable-dlopen" ]
++ lib.optionals fabricSupport [ "--with-psm2=${libpsm2}" "--with-libfabric=${libfabric}" ] ++ lib.optionals fabricSupport [ "--with-psm2=${lib.getDev libpsm2}" "--with-libfabric=${lib.getDev libfabric}" ]
; ;
enableParallelBuilding = true; enableParallelBuilding = true;
postInstall = '' postInstall = ''
rm -f $out/lib/*.la find $out/lib/ -name "*.la" -exec rm -f \{} \;
''; '';
postFixup = '' postFixup = ''

View File

@ -23,15 +23,19 @@ stdenv.mkDerivation rec {
buildInputs = [ libevent hwloc munge zlib ]; buildInputs = [ libevent hwloc munge zlib ];
configureFlags = [ configureFlags = [
"--with-libevent=${libevent.dev}" "--with-libevent=${lib.getDev libevent}"
"--with-munge=${munge}" "--with-munge=${munge}"
"--with-hwloc=${hwloc.dev}" "--with-hwloc=${lib.getDev hwloc}"
]; ];
preConfigure = '' preConfigure = ''
./autogen.pl ./autogen.pl
''; '';
postInstall = ''
find $out/lib/ -name "*.la" -exec rm -f \{} \;
'';
enableParallelBuilding = true; enableParallelBuilding = true;
meta = with lib; { meta = with lib; {

View File

@ -18,6 +18,8 @@ stdenv.mkDerivation rec {
sha256 = "sha256-7Mo9zU0sogGyDdWIfTgUPoR5Z8D722asC2y7sHnKbzs="; sha256 = "sha256-7Mo9zU0sogGyDdWIfTgUPoR5Z8D722asC2y7sHnKbzs=";
}; };
outputs = [ "out" "dev" ];
enableParallelBuilding = true; enableParallelBuilding = true;
postPatch = '' postPatch = ''
@ -42,6 +44,12 @@ stdenv.mkDerivation rec {
++ lib.optional enableAvx "--with-avx" ++ lib.optional enableAvx "--with-avx"
++ lib.optional enableCuda "--with-cuda=${cudatoolkit}"; ++ lib.optional enableCuda "--with-cuda=${cudatoolkit}";
postInstall = ''
find $out/lib/ -name "*.la" -exec rm -f \{} \;
moveToOutput bin/ucc_info $dev
'';
meta = with lib; { meta = with lib; {
description = "Collective communication operations API"; description = "Collective communication operations API";
license = licenses.bsd3; license = licenses.bsd3;

View File

@ -33,6 +33,8 @@ stdenv.mkDerivation rec {
sha256 = "sha256-VxIxrk9qKM6Ncfczl4p2EhXiLNgPaYTmjhqi6/w2ZNY="; sha256 = "sha256-VxIxrk9qKM6Ncfczl4p2EhXiLNgPaYTmjhqi6/w2ZNY=";
}; };
outputs = [ "out" "doc" "dev" ];
nativeBuildInputs = [ autoreconfHook doxygen pkg-config ]; nativeBuildInputs = [ autoreconfHook doxygen pkg-config ];
buildInputs = [ buildInputs = [
@ -54,6 +56,14 @@ stdenv.mkDerivation rec {
] ++ lib.optional enableCuda "--with-cuda=${cudatoolkit'}" ] ++ lib.optional enableCuda "--with-cuda=${cudatoolkit'}"
++ lib.optional enableRocm "--with-rocm=${rocm}"; ++ lib.optional enableRocm "--with-rocm=${rocm}";
postInstall = ''
find $out/lib/ -name "*.la" -exec rm -f \{} \;
moveToOutput bin/ucx_info $dev
moveToOutput share/ucx/examples $doc
'';
enableParallelBuilding = true; enableParallelBuilding = true;
meta = with lib; { meta = with lib; {

View File

@ -3,7 +3,6 @@
, aresponses , aresponses
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, fetchpatch
, poetry-core , poetry-core
, pytest-aiohttp , pytest-aiohttp
, pytest-asyncio , pytest-asyncio
@ -16,7 +15,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "aioambient"; pname = "aioambient";
version = "2023.08.0"; version = "2023.10.1";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.9"; disabled = pythonOlder "3.9";
@ -25,23 +24,9 @@ buildPythonPackage rec {
owner = "bachya"; owner = "bachya";
repo = pname; repo = pname;
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-Y8I4iPvxcK98Olb3JURNK37MKggdhcweKvNBa0ZtG6I="; hash = "sha256-Q7jb0tJsbVM2vEqKgjXOWJN2OwR9qLchU/4ShOUGPT4=";
}; };
patches = [
# This patch removes references to setuptools and wheel that are no longer
# necessary and changes poetry to poetry-core, so that we don't need to add
# unnecessary nativeBuildInputs.
#
# https://github.com/bachya/aioambient/pull/295
#
(fetchpatch {
name = "clean-up-build-dependencies.patch";
url = "https://github.com/bachya/aioambient/commit/fa21a2e82678a231a73c8a1153032980926f4c35.patch";
hash = "sha256-RLRbHmaR2A8MNc96WHx0L8ccyygoBUaOulAuRJkFuUM=";
})
];
postPatch = '' postPatch = ''
substituteInPlace pyproject.toml \ substituteInPlace pyproject.toml \
--replace 'websockets = ">=11.0.1"' 'websockets = "*"' --replace 'websockets = ">=11.0.1"' 'websockets = "*"'

View File

@ -10,7 +10,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "aioqsw"; pname = "aioqsw";
version = "0.3.4"; version = "0.3.5";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.11"; disabled = pythonOlder "3.11";
@ -19,7 +19,7 @@ buildPythonPackage rec {
owner = "Noltari"; owner = "Noltari";
repo = pname; repo = pname;
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-YGVQsw7UhRWXtfn2MQa3GHNlgXR4LJlFnaeLCGjmWfQ="; hash = "sha256-kSwTHwVSMGyXA0SF74f9gyBN82XhdjdN6DWrQV0PiaU=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View File

@ -7,14 +7,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "aliyun-python-sdk-sts"; pname = "aliyun-python-sdk-sts";
version = "3.1.1"; version = "3.1.2";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-1pCgIw2Glc5Fyp/eoJJXew80SJz7VDcg9vvUpeZpBYk="; hash = "sha256-GLzieAX0j/aEKeKj37PtBQJy3c2zWgy1no7/lXiYSU0=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View File

@ -18,13 +18,13 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "bambi"; pname = "bambi";
version = "0.12.0"; version = "0.12.0";
format = "pyproject"; pyproject = true;
disabled = pythonOlder "3.8"; disabled = pythonOlder "3.9";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "bambinos"; owner = "bambinos";
repo = pname; repo = "bambi";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-36D8u813v2vWQdNqBWfM8YVnAJuLGvn5vqdHs94odmU="; hash = "sha256-36D8u813v2vWQdNqBWfM8YVnAJuLGvn5vqdHs94odmU=";
}; };
@ -55,16 +55,18 @@ buildPythonPackage rec {
disabledTests = [ disabledTests = [
# Tests require network access # Tests require network access
"test_alias_equal_to_name"
"test_custom_prior" "test_custom_prior"
"test_data_is_copied" "test_data_is_copied"
"test_distributional_model" "test_distributional_model"
"test_extra_namespace"
"test_gamma_with_splines" "test_gamma_with_splines"
"test_non_distributional_model_with_categories"
"test_non_distributional_model" "test_non_distributional_model"
"test_normal_with_splines" "test_normal_with_splines"
"test_predict_offset" "test_predict_offset"
# Assertion issue "test_predict_new_groups"
"test_custom_likelihood_function" "test_predict_new_groups_fail"
"test_set_alias_warnings"
]; ];
pythonImportsCheck = [ pythonImportsCheck = [
@ -74,6 +76,7 @@ buildPythonPackage rec {
meta = with lib; { meta = with lib; {
homepage = "https://bambinos.github.io/bambi"; homepage = "https://bambinos.github.io/bambi";
description = "High-level Bayesian model-building interface"; description = "High-level Bayesian model-building interface";
changelog = "https://github.com/bambinos/bambi/releases/tag/${version}";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ bcdarwin ]; maintainers = with maintainers; [ bcdarwin ];
}; };

View File

@ -10,11 +10,12 @@
, py-sr25519-bindings , py-sr25519-bindings
, cbor2 , cbor2
, pycryptodome , pycryptodome
, pytestCheckHook
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "bip-utils"; pname = "bip-utils";
version = "2.7.0"; version = "2.7.1";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.6";
@ -23,7 +24,7 @@ buildPythonPackage rec {
owner = "ebellocchia"; owner = "ebellocchia";
repo = "bip_utils"; repo = "bip_utils";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-m7/CC5/T6qR2Ot4y5WQlzOAR0czz6XHCjJskES+2nns="; hash = "sha256-QrCkLiGBdZTQCnbWSTN0PeoAsQfg2CoSGdZcbhqTvOk=";
}; };
postPatch = '' postPatch = ''
@ -42,6 +43,10 @@ buildPythonPackage rec {
pycryptodome pycryptodome
]; ];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [ pythonImportsCheck = [
"bip_utils" "bip_utils"
]; ];

View File

@ -2,8 +2,8 @@
, buildPythonPackage , buildPythonPackage
, pythonOlder , pythonOlder
, fetchFromGitHub , fetchFromGitHub
, fetchpatch
, pytestCheckHook , pytestCheckHook
, setuptools-scm
, fastprogress , fastprogress
, jax , jax
, jaxlib , jaxlib
@ -14,24 +14,21 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "blackjax"; pname = "blackjax";
version = "0.9.6"; version = "1.0.0";
disabled = pythonOlder "3.7"; pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "blackjax-devs"; owner = "blackjax-devs";
repo = pname; repo = pname;
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-EieDu9SJxi2cp1bHlxX4vvFZeDGMGIm24GoR8nSyjvE="; hash = "sha256-hqOKSHyZ/BmOu6MJLeecD3H1BbLbZqywmlBzn3xjQRk=";
}; };
patches = [ nativeBuildInputs = [ setuptools-scm ];
# remove in next release
(fetchpatch { env.SETUPTOOLS_SCM_PRETEND_VERSION = version;
name = "fix-lbfgs-args";
url = "https://github.com/blackjax-devs/blackjax/commit/1aaa6f64bbcb0557b658604b2daba826e260cbc6.patch";
hash = "sha256-XyjorXPH5Ap35Tv1/lTeTWamjplJF29SsvOq59ypftE=";
})
];
propagatedBuildInputs = [ propagatedBuildInputs = [
fastprogress fastprogress
@ -56,6 +53,7 @@ buildPythonPackage rec {
meta = with lib; { meta = with lib; {
homepage = "https://blackjax-devs.github.io/blackjax"; homepage = "https://blackjax-devs.github.io/blackjax";
description = "Sampling library designed for ease of use, speed and modularity"; description = "Sampling library designed for ease of use, speed and modularity";
changelog = "https://github.com/blackjax-devs/blackjax/releases/tag/${version}";
license = licenses.asl20; license = licenses.asl20;
maintainers = with maintainers; [ bcdarwin ]; maintainers = with maintainers; [ bcdarwin ];
}; };

View File

@ -15,7 +15,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "chex"; pname = "chex";
version = "0.1.82"; version = "0.1.83";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.9"; disabled = pythonOlder "3.9";
@ -24,7 +24,7 @@ buildPythonPackage rec {
owner = "deepmind"; owner = "deepmind";
repo = pname; repo = pname;
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-xBq22AaR2Tp1NSPefEyvCDeUYqRZlAf5LVHWo0luiXk="; hash = "sha256-iEachJf5NjOnkMWdP0aVQHWNPgUUBkMnzHKq3GP7t4w=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -49,6 +49,7 @@ buildPythonPackage rec {
meta = with lib; { meta = with lib; {
description = "Chex is a library of utilities for helping to write reliable JAX code."; description = "Chex is a library of utilities for helping to write reliable JAX code.";
homepage = "https://github.com/deepmind/chex"; homepage = "https://github.com/deepmind/chex";
changelog = "https://github.com/google-deepmind/chex/releases/tag/v${version}";
license = licenses.asl20; license = licenses.asl20;
maintainers = with maintainers; [ ndl ]; maintainers = with maintainers; [ ndl ];
}; };

View File

@ -13,7 +13,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "in-n-out"; pname = "in-n-out";
version = "0.1.8"; version = "0.1.9";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.8"; disabled = pythonOlder "3.8";
@ -21,7 +21,7 @@ buildPythonPackage rec {
src = fetchPypi { src = fetchPypi {
pname = "in_n_out"; pname = "in_n_out";
inherit version; inherit version;
hash = "sha256-gWKvh4fmgutLNtBH+RQZnYDxEk46QUIM1T3mgOfQolQ="; hash = "sha256-if65ROQg+vQtPCVCFFaBtNVxRDVZMsK4WWlfzcT5oto=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View File

@ -16,16 +16,16 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "jaxopt"; pname = "jaxopt";
version = "0.8"; version = "0.8.1";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.8";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "google"; owner = "google";
repo = pname; repo = pname;
rev = "refs/tags/jaxopt-v${version}"; rev = "refs/tags/jaxopt-v${version}";
hash = "sha256-y3F2uXe1/TYy42WJl5Toj+CjY2FqYVK8D33apRdNvf4="; hash = "sha256-5+GfRFzXyc1Ukp86NeK0qstTq9fkx+eDb4iXvxzRoKs=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -60,6 +60,7 @@ buildPythonPackage rec {
meta = with lib; { meta = with lib; {
homepage = "https://jaxopt.github.io"; homepage = "https://jaxopt.github.io";
description = "Hardware accelerated, batchable and differentiable optimizers in JAX"; description = "Hardware accelerated, batchable and differentiable optimizers in JAX";
changelog = "https://github.com/google/jaxopt/releases/tag/jaxopt-v${version}";
license = licenses.asl20; license = licenses.asl20;
maintainers = with maintainers; [ bcdarwin ]; maintainers = with maintainers; [ bcdarwin ];
}; };

View File

@ -20,7 +20,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "meshtastic"; pname = "meshtastic";
version = "2.2.9"; version = "2.2.10";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -29,7 +29,7 @@ buildPythonPackage rec {
owner = "meshtastic"; owner = "meshtastic";
repo = "Meshtastic-python"; repo = "Meshtastic-python";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-VHL5wxq9Ckczur5jmmsYzOnQhLwCXftR8rmBGQ80gOo="; hash = "sha256-AaEAI61MQCi1bUEc0xVNmDaVjXCPMvDIstIR/FuQ8aU=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View File

@ -9,7 +9,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "zha-quirks"; pname = "zha-quirks";
version = "0.0.104"; version = "0.0.105";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -18,7 +18,7 @@ buildPythonPackage rec {
owner = "zigpy"; owner = "zigpy";
repo = "zha-device-handlers"; repo = "zha-device-handlers";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-oPg+eQ89GhNX5ADTK9JvgXuBhH7HZs3Ktuami2v2a38="; hash = "sha256-k4azIBjlS/J448ncu6cgB6oJtpS0Qb2Bnm11vq7RFEI=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View File

@ -147,10 +147,13 @@ in stdenv.mkDerivation (finalAttrs: {
}; };
impureTests = { impureTests = {
clr-icd = callPackage ./test.nix { rocm-smi = callPackage ./test-rocm-smi.nix {
inherit rocm-smi; inherit rocm-smi;
clr = finalAttrs.finalPackage; clr = finalAttrs.finalPackage;
}; };
opencl-example = callPackage ./test-opencl-example.nix {
clr = finalAttrs.finalPackage;
};
}; };
}; };

View File

@ -0,0 +1,75 @@
{ lib
, stdenv
, makeImpureTest
, fetchFromGitHub
, clr
, cmake
, pkg-config
, glew
, freeglut
, opencl-headers
, ocl-icd
}:
let
examples = stdenv.mkDerivation {
pname = "amd-app-samples";
version = "2018-06-10";
src = fetchFromGitHub {
owner = "OpenCL";
repo = "AMD_APP_samples";
rev = "54da6ca465634e78fc51fc25edf5840467ee2411";
hash = "sha256-qARQpUiYsamHbko/I1gPZE9pUGJ+3396Vk2n7ERSftA=";
};
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [ glew freeglut opencl-headers ocl-icd ];
installPhase = ''
runHook preInstall
mkdir -p $out/bin
# Example path is bin/x86_64/Release/cl/Reduction/Reduction
cp -r bin/*/*/*/*/* $out/bin/
runHook postInstall
'';
cmakeFlags = [ "-DBUILD_CPP_CL=OFF" ];
meta = with lib; {
description = "Samples from the AMD APP SDK (with OpenCRun support) ";
homepage = "https://github.com/OpenCL/AMD_APP_samples";
license = licenses.bsd2;
platforms = platforms.linux;
maintainers = lib.teams.rocm.members;
};
};
in
makeImpureTest {
name = "opencl-example";
testedPackage = "rocmPackages_5.clr";
sandboxPaths = [ "/sys" "/dev/dri" "/dev/kfd" ];
nativeBuildInputs = [ examples ];
OCL_ICD_VENDORS = "${clr.icd}/etc/OpenCL/vendors";
testScript = ''
# Examples load resources from current directory
cd ${examples}/bin
echo OCL_ICD_VENDORS=$OCL_ICD_VENDORS
pwd
HelloWorld | grep HelloWorld
'';
meta = with lib; {
maintainers = teams.rocm.members;
};
}

View File

@ -6,8 +6,8 @@
}: }:
makeImpureTest { makeImpureTest {
name = "clr-icd"; name = "rocm-smi";
testedPackage = "rocmPackages.clr"; testedPackage = "rocmPackages_5.clr";
nativeBuildInputs = [ clinfo rocm-smi ]; nativeBuildInputs = [ clinfo rocm-smi ];
OCL_ICD_VENDORS = "${clr.icd}/etc/OpenCL/vendors"; OCL_ICD_VENDORS = "${clr.icd}/etc/OpenCL/vendors";

View File

@ -22,14 +22,14 @@ with py.pkgs;
buildPythonApplication rec { buildPythonApplication rec {
pname = "checkov"; pname = "checkov";
version = "2.5.6"; version = "2.5.7";
format = "setuptools"; format = "setuptools";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "bridgecrewio"; owner = "bridgecrewio";
repo = pname; repo = pname;
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-X+JEhoFKT+nxgxABojC8jZiGp8bubJWi0qWNfU9kwDc="; hash = "sha256-w9clUN/g7pKxqQNw6RwG66UOoUCaNm2tCC6+/ofs8HM=";
}; };
patches = [ patches = [

File diff suppressed because it is too large Load Diff

View File

@ -2,7 +2,7 @@
buildGoModule rec { buildGoModule rec {
pname = "go-md2man"; pname = "go-md2man";
version = "2.0.2"; version = "2.0.3";
vendorHash = null; vendorHash = null;
@ -10,7 +10,7 @@ buildGoModule rec {
rev = "v${version}"; rev = "v${version}";
owner = "cpuguy83"; owner = "cpuguy83";
repo = "go-md2man"; repo = "go-md2man";
sha256 = "sha256-C+MaDtvfPYABSC2qoMfZVHe2xX/WtDjp6v/ayFCIGac="; sha256 = "sha256-bgAuN+pF9JekCQ/Eg4ph3WDv3RP8MB/10GDp1JMp9Kg=";
}; };
meta = with lib; { meta = with lib; {

View File

@ -9,11 +9,11 @@
stdenv.mkDerivation (finalAttrs: { stdenv.mkDerivation (finalAttrs: {
pname = "n98-magerun2"; pname = "n98-magerun2";
version = "7.1.0"; version = "7.2.0";
src = fetchurl { src = fetchurl {
url = "https://github.com/netz98/n98-magerun2/releases/download/${finalAttrs.version}/n98-magerun2.phar"; url = "https://github.com/netz98/n98-magerun2/releases/download/${finalAttrs.version}/n98-magerun2.phar";
hash = "sha256-DE5q1zoWZ4gJSs5JM5cr157oh5ufD1gaNt9X9vtuW/c="; hash = "sha256-w+58TTyoS44Ouaz6KFIJLhSl/UeF1I7cSznlZH6fLXw=";
}; };
dontUnpack = true; dontUnpack = true;

View File

@ -6,16 +6,16 @@
buildGoModule rec { buildGoModule rec {
pname = "oh-my-posh"; pname = "oh-my-posh";
version = "18.10.3"; version = "18.11.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "jandedobbeleer"; owner = "jandedobbeleer";
repo = pname; repo = pname;
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-gNSG4jGGkvLyitqO4o44tv/nRGzOcX5haLUFdj/PqBM="; hash = "sha256-sUP2xBrh7JpAaHhiMm6AilgEUNIfK1U2hbloUJYHn6c=";
}; };
vendorHash = "sha256-ia5uglahH4btHYqeG3yyStOoM1ALxm/lQ+pyc0oxIwE="; vendorHash = "sha256-i5K7f70MevNJcRsP2P9rsMZRpKPVWsTx9M4t2AoEJew=";
sourceRoot = "${src.name}/src"; sourceRoot = "${src.name}/src";

View File

@ -5,16 +5,16 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "cargo-expand"; pname = "cargo-expand";
version = "1.0.72"; version = "1.0.73";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "dtolnay"; owner = "dtolnay";
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "sha256-W9mrqF5zQWvCEsgm3fNPG0p/ZHgL1agTAfYW1t9tajo="; sha256 = "sha256-GCHZcNpy4V6WF8AchWIuqIiTY36AsgvA6QjJTCeZP1U=";
}; };
cargoHash = "sha256-4gV69Ld60hBErfVXgrKfoeI6QrnYrg6w5hHqRufUlG8="; cargoHash = "sha256-+itB3byWmzzNsoxc+pqSRGTyUkFk+KM2ImjeBwTEb/E=";
meta = with lib; { meta = with lib; {
description = "A utility and Cargo subcommand designed to let people expand macros in their Rust source code"; description = "A utility and Cargo subcommand designed to let people expand macros in their Rust source code";

View File

@ -5,16 +5,16 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "leptosfmt"; pname = "leptosfmt";
version = "0.1.16"; version = "0.1.17";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "bram209"; owner = "bram209";
repo = "leptosfmt"; repo = "leptosfmt";
rev = version; rev = version;
hash = "sha256-VzKwBqVoGa3bF6NK7mGOBEzUk9H+ZVQ/NdE/hhCEhUg="; hash = "sha256-LZOB0HF6Chs1BxRPqQnMQrjk2CbFR2UoVQl+W32R9yI=";
}; };
cargoHash = "sha256-OHAK1UX2mSBASUHT4qhGmWUdCrvP18RmXMCSnGSUBAA="; cargoHash = "sha256-9io8cSKwBONw8epPw5foa+/ur4VvvjQrOcj5Hse3oJ4=";
meta = with lib; { meta = with lib; {
description = "A formatter for the leptos view! macro"; description = "A formatter for the leptos view! macro";

View File

@ -21,13 +21,13 @@ let
in in
stdenv.mkDerivation (finalAttrs: { stdenv.mkDerivation (finalAttrs: {
pname = "sketchybar"; pname = "sketchybar";
version = "2.16.3"; version = "2.17.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "FelixKratz"; owner = "FelixKratz";
repo = "SketchyBar"; repo = "SketchyBar";
rev = "v${finalAttrs.version}"; rev = "v${finalAttrs.version}";
hash = "sha256-PCAGIcO7lvIAEFXlJn/e9zG5kxvDABshxFbu/bXWX7o="; hash = "sha256-FntWC180wpUyxP5iYdo/p2LbP0dbv1y6CXersfBT5b4=";
}; };
buildInputs = [ buildInputs = [

View File

@ -1,8 +1,6 @@
{ lib { lib
, callPackage
, gcc11Stdenv , gcc11Stdenv
, fetchFromGitHub , fetchFromGitHub
, addOpenGLRunpath
, catch2 , catch2
, cmake , cmake
, cudaPackages_10_2 , cudaPackages_10_2
@ -87,13 +85,13 @@ let
# C.f. https://github.com/NVIDIA/DCGM/blob/7e1012302679e4bb7496483b32dcffb56e528c92/dcgmbuild/build.sh#L22 # C.f. https://github.com/NVIDIA/DCGM/blob/7e1012302679e4bb7496483b32dcffb56e528c92/dcgmbuild/build.sh#L22
in gcc11Stdenv.mkDerivation rec { in gcc11Stdenv.mkDerivation rec {
pname = "dcgm"; pname = "dcgm";
version = "3.1.8"; version = "3.2.5"; # N.B: If you change this, be sure prometheus-dcgm-exporter supports this version.
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "NVIDIA"; owner = "NVIDIA";
repo = "DCGM"; repo = "DCGM";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-OXqXkP2ZUNPzafGIgJ0MKa39xB84keVFFYl+JsHgnks="; hash = "sha256-iMyYOr3dSpdRV2S/TlB/tEOAWYhK09373ZRbd5vzogQ=";
}; };
# Add our paths to the CUDA paths so FindCuda.cmake can find them. # Add our paths to the CUDA paths so FindCuda.cmake can find them.

View File

@ -65,11 +65,11 @@ rec {
# Vulkan developer beta driver # Vulkan developer beta driver
# See here for more information: https://developer.nvidia.com/vulkan-driver # See here for more information: https://developer.nvidia.com/vulkan-driver
vulkan_beta = generic rec { vulkan_beta = generic rec {
version = "535.43.11"; version = "535.43.13";
persistencedVersion = "535.98"; persistencedVersion = "535.98";
settingsVersion = "535.98"; settingsVersion = "535.98";
sha256_64bit = "sha256-cL/gnPNqjsj8ZYJP4WmybS2Fnh6EHsUbi4nGlt6Bt00="; sha256_64bit = "sha256-qrzoZWoUSTh4UQ8e/amOhwPrspZOI1kwdPHLn4ySc/Q=";
openSha256 = "sha256-QzNRwXk6c5iTJD0YGKAlW1swF/PBW/7LFnkllkBEhUU="; openSha256 = "sha256-aVUdHNoFaUY7MiwEFxwsj8XS1+onckT3V7RiVMEkQP8=";
settingsSha256 = "sha256-jCRfeB1w6/dA27gaz6t5/Qo7On0zbAPIi74LYLel34s="; settingsSha256 = "sha256-jCRfeB1w6/dA27gaz6t5/Qo7On0zbAPIi74LYLel34s=";
persistencedSha256 = "sha256-WviDU6B50YG8dO64CGvU3xK8WFUX8nvvVYm/fuGyroM="; persistencedSha256 = "sha256-WviDU6B50YG8dO64CGvU3xK8WFUX8nvvVYm/fuGyroM=";
url = "https://developer.nvidia.com/downloads/vulkan-beta-${lib.concatStrings (lib.splitString "." version)}-linux"; url = "https://developer.nvidia.com/downloads/vulkan-beta-${lib.concatStrings (lib.splitString "." version)}-linux";

Some files were not shown because too many files have changed in this diff Show More