Merge master into staging-next

This commit is contained in:
github-actions[bot] 2024-09-23 12:05:36 +00:00 committed by GitHub
commit ac34133fb9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
59 changed files with 1274 additions and 780 deletions

View File

@ -1,6 +1,9 @@
ajs124 <git@ajs124.de> <ajs124@users.noreply.github.com> ajs124 <git@ajs124.de> <ajs124@users.noreply.github.com>
Anderson Torres <torres.anderson.85@protonmail.com> Anderson Torres <torres.anderson.85@protonmail.com>
Atemu <git@atemu.net> <atemu.main@gmail.com> Atemu <git@atemu.net> <atemu.main@gmail.com>
Christina Sørensen <christina@cafkafk.com>
Christina Sørensen <christina@cafkafk.com> <christinaafk@gmail.com>
Christina Sørensen <christina@cafkafk.com> <89321978+cafkafk@users.noreply.github.com>
Daniel Løvbrøtte Olsen <me@dandellion.xyz> <daniel.olsen99@gmail.com> Daniel Løvbrøtte Olsen <me@dandellion.xyz> <daniel.olsen99@gmail.com>
Fabian Affolter <mail@fabian-affolter.ch> <fabian@affolter-engineering.ch> Fabian Affolter <mail@fabian-affolter.ch> <fabian@affolter-engineering.ch>
goatastronaut0212 <goatastronaut0212@outlook.com> <goatastronaut0212@proton.me> goatastronaut0212 <goatastronaut0212@outlook.com> <goatastronaut0212@proton.me>

View File

@ -23,12 +23,13 @@ The recommended way of defining a derivation for a Coq library, is to use the `c
* if it is a string of the form `owner:branch` then it tries to download the `branch` of owner `owner` for a project of the same name using the same vcs, and the `version` attribute of the resulting derivation is set to `"dev"`, additionally if the owner is not provided (i.e. if the `owner:` prefix is missing), it defaults to the original owner of the package (see below), * if it is a string of the form `owner:branch` then it tries to download the `branch` of owner `owner` for a project of the same name using the same vcs, and the `version` attribute of the resulting derivation is set to `"dev"`, additionally if the owner is not provided (i.e. if the `owner:` prefix is missing), it defaults to the original owner of the package (see below),
* if it is a string of the form `"#N"`, and the domain is github, then it tries to download the current head of the pull request `#N` from github, * if it is a string of the form `"#N"`, and the domain is github, then it tries to download the current head of the pull request `#N` from github,
* `defaultVersion` (optional). Coq libraries may be compatible with some specific versions of Coq only. The `defaultVersion` attribute is used when no `version` is provided (or if `version = null`) to select the version of the library to use by default, depending on the context. This selection will mainly depend on a `coq` version number but also possibly on other packages versions (e.g. `mathcomp`). If its value ends up to be `null`, the package is marked for removal in end-user `coqPackages` attribute set. * `defaultVersion` (optional). Coq libraries may be compatible with some specific versions of Coq only. The `defaultVersion` attribute is used when no `version` is provided (or if `version = null`) to select the version of the library to use by default, depending on the context. This selection will mainly depend on a `coq` version number but also possibly on other packages versions (e.g. `mathcomp`). If its value ends up to be `null`, the package is marked for removal in end-user `coqPackages` attribute set.
* `release` (optional, defaults to `{}`), lists all the known releases of the library and for each of them provides an attribute set with at least a `hash` attribute (you may put the empty string `""` in order to automatically insert a fake hash, this will trigger an error which will allow you to find the correct hash), each attribute set of the list of releases also takes optional overloading arguments for the fetcher as below (i.e.`domain`, `owner`, `repo`, `rev` assuming the default fetcher is used) and optional overrides for the result of the fetcher (i.e. `version` and `src`). * `release` (optional, defaults to `{}`), lists all the known releases of the library and for each of them provides an attribute set with at least a `hash` attribute (you may put the empty string `""` in order to automatically insert a fake hash, this will trigger an error which will allow you to find the correct hash), each attribute set of the list of releases also takes optional overloading arguments for the fetcher as below (i.e.`domain`, `owner`, `repo`, `rev`, `artifact` assuming the default fetcher is used) and optional overrides for the result of the fetcher (i.e. `version` and `src`).
* `fetcher` (optional, defaults to a generic fetching mechanism supporting github or gitlab based infrastructures), is a function that takes at least an `owner`, a `repo`, a `rev`, and a `hash` and returns an attribute set with a `version` and `src`. * `fetcher` (optional, defaults to a generic fetching mechanism supporting github or gitlab based infrastructures), is a function that takes at least an `owner`, a `repo`, a `rev`, and a `hash` and returns an attribute set with a `version` and `src`.
* `repo` (optional, defaults to the value of `pname`), * `repo` (optional, defaults to the value of `pname`),
* `owner` (optional, defaults to `"coq-community"`). * `owner` (optional, defaults to `"coq-community"`).
* `domain` (optional, defaults to `"github.com"`), domains including the strings `"github"` or `"gitlab"` in their names are automatically supported, otherwise, one must change the `fetcher` argument to support them (cf `pkgs/development/coq-modules/heq/default.nix` for an example), * `domain` (optional, defaults to `"github.com"`), domains including the strings `"github"` or `"gitlab"` in their names are automatically supported, otherwise, one must change the `fetcher` argument to support them (cf `pkgs/development/coq-modules/heq/default.nix` for an example),
* `releaseRev` (optional, defaults to `(v: v)`), provides a default mapping from release names to revision hashes/branch names/tags, * `releaseRev` (optional, defaults to `(v: v)`), provides a default mapping from release names to revision hashes/branch names/tags,
* `releaseArtifact` (optional, defaults to `(v: null)`), provides a default mapping from release names to artifact names (only works for github artifact for now),
* `displayVersion` (optional), provides a way to alter the computation of `name` from `pname`, by explaining how to display version numbers, * `displayVersion` (optional), provides a way to alter the computation of `name` from `pname`, by explaining how to display version numbers,
* `namePrefix` (optional, defaults to `[ "coq" ]`), provides a way to alter the computation of `name` from `pname`, by explaining which dependencies must occur in `name`, * `namePrefix` (optional, defaults to `[ "coq" ]`), provides a way to alter the computation of `name` from `pname`, by explaining which dependencies must occur in `name`,
* `nativeBuildInputs` (optional), is a list of executables that are required to build the current derivation, in addition to the default ones (namely `which`, `dune` and `ocaml` depending on whether `useDune`, `useDuneifVersion` and `mlPlugin` are set). * `nativeBuildInputs` (optional), is a list of executables that are required to build the current derivation, in addition to the default ones (namely `which`, `dune` and `ocaml` depending on whether `useDune`, `useDuneifVersion` and `mlPlugin` are set).

View File

@ -64,7 +64,7 @@
boot.loader.grub.enable = false; boot.loader.grub.enable = false;
fileSystems."/".device = "nodev"; fileSystems."/".device = "nodev";
# See https://search.nixos.org/options?show=system.stateVersion&query=stateversion # See https://search.nixos.org/options?show=system.stateVersion&query=stateversion
system.stateVersion = lib.versions.majorMinor lib.version; # DON'T do this in real configs! system.stateVersion = lib.trivial.release; # DON'T do this in real configs!
}) })
]; ];
}).config.system.build.toplevel; }).config.system.build.toplevel;

View File

@ -150,6 +150,15 @@ in
Whether to configure the sd image to expand it's partition on boot. Whether to configure the sd image to expand it's partition on boot.
''; '';
}; };
nixPathRegistrationFile = mkOption {
type = types.str;
default = "/nix-path-registration";
description = ''
Location of the file containing the input for nix-store --load-db once the machine has booted.
If overriding fileSystems."/" then you should to set this to the root mount + /nix-path-registration
'';
};
}; };
config = { config = {
@ -255,11 +264,8 @@ in
''; '';
}) {}; }) {};
boot.postBootCommands = lib.mkIf config.sdImage.expandOnBoot '' boot.postBootCommands = let
# On the first boot do some maintenance tasks expandOnBoot = lib.optionalString config.sdImage.expandOnBoot ''
if [ -f /nix-path-registration ]; then
set -euo pipefail
set -x
# Figure out device names for the boot device and root filesystem. # Figure out device names for the boot device and root filesystem.
rootPart=$(${pkgs.util-linux}/bin/findmnt -n -o SOURCE /) rootPart=$(${pkgs.util-linux}/bin/findmnt -n -o SOURCE /)
bootDevice=$(lsblk -npo PKNAME $rootPart) bootDevice=$(lsblk -npo PKNAME $rootPart)
@ -269,16 +275,25 @@ in
echo ",+," | sfdisk -N$partNum --no-reread $bootDevice echo ",+," | sfdisk -N$partNum --no-reread $bootDevice
${pkgs.parted}/bin/partprobe ${pkgs.parted}/bin/partprobe
${pkgs.e2fsprogs}/bin/resize2fs $rootPart ${pkgs.e2fsprogs}/bin/resize2fs $rootPart
'';
nixPathRegistrationFile = config.sdImage.nixPathRegistrationFile;
in ''
# On the first boot do some maintenance tasks
if [ -f ${nixPathRegistrationFile} ]; then
set -euo pipefail
set -x
${expandOnBoot}
# Register the contents of the initial Nix store # Register the contents of the initial Nix store
${config.nix.package.out}/bin/nix-store --load-db < /nix-path-registration ${config.nix.package.out}/bin/nix-store --load-db < ${nixPathRegistrationFile}
# nixos-rebuild also requires a "system" profile and an /etc/NIXOS tag. # nixos-rebuild also requires a "system" profile and an /etc/NIXOS tag.
touch /etc/NIXOS touch /etc/NIXOS
${config.nix.package.out}/bin/nix-env -p /nix/var/nix/profiles/system --set /run/current-system ${config.nix.package.out}/bin/nix-env -p /nix/var/nix/profiles/system --set /run/current-system
# Prevents this from running on later boots. # Prevents this from running on later boots.
rm -f /nix-path-registration rm -f ${nixPathRegistrationFile}
fi fi
''; '';
}; };

View File

@ -249,7 +249,7 @@ in
}; };
host = mkOption { host = mkOption {
type = with types; nullOr path; type = with types; nullOr str;
default = if cfg.settings.database.backend == "postgresql" then "/run/postgresql" else null; default = if cfg.settings.database.backend == "postgresql" then "/run/postgresql" else null;
defaultText = literalExpression '' defaultText = literalExpression ''
if config.services.pretix.settings..database.backend == "postgresql" then "/run/postgresql" if config.services.pretix.settings..database.backend == "postgresql" then "/run/postgresql"

View File

@ -49,7 +49,7 @@ let
system.nixos.revision = nixpkgs.rev or nixpkgs.shortRev; system.nixos.revision = nixpkgs.rev or nixpkgs.shortRev;
# At creation time we do not have state yet, so just default to latest. # At creation time we do not have state yet, so just default to latest.
system.stateVersion = config.system.nixos.version; system.stateVersion = config.system.nixos.release;
}; };
makeModules = module: rest: [ configuration versionModule module rest ]; makeModules = module: rest: [ configuration versionModule module rest ];

View File

@ -16,7 +16,7 @@ let
imports = [ ../modules/profiles/minimal.nix ]; imports = [ ../modules/profiles/minimal.nix ];
system.stateVersion = config.system.nixos.version; system.stateVersion = config.system.nixos.release;
}; };
containerSystem = (import ../lib/eval-config.nix { containerSystem = (import ../lib/eval-config.nix {

View File

@ -1,4 +1,13 @@
# run tests by building `neovim.tests` /*
run tests with `nix-build -A neovim.tests`
The attrset exposes both the wrapped neovim and the associated test for easier debugging
Here are some common neovim flags used in the tests:
-e runs neovim in `:h Ex-mode` which returns an exit code != 0 when hitting an error
-i NONE gets rid of shada warnings
*/
{ vimUtils, writeText, neovim, vimPlugins { vimUtils, writeText, neovim, vimPlugins
, neovimUtils, wrapNeovimUnstable , neovimUtils, wrapNeovimUnstable
, neovim-unwrapped , neovim-unwrapped
@ -43,7 +52,7 @@ let
''; '';
}; };
nvim-with-luasnip = wrapNeovim2 "-with-lua-packages" (makeNeovimConfig { nvim-with-luasnip = wrapNeovim2 "-with-luasnip" (makeNeovimConfig {
plugins = [ { plugins = [ {
plugin = vimPlugins.luasnip; plugin = vimPlugins.luasnip;
@ -65,15 +74,6 @@ let
sha256 = "1ykcvyx82nhdq167kbnpgwkgjib8ii7c92y3427v986n2s5lsskc"; sha256 = "1ykcvyx82nhdq167kbnpgwkgjib8ii7c92y3427v986n2s5lsskc";
}; };
# this plugin checks that it's ftplugin/vim.tex is loaded before $VIMRUNTIME/ftplugin/vim.tex
# $VIMRUNTIME/ftplugin/vim.tex sources $VIMRUNTIME/ftplugin/initex.vim which sets b:did_ftplugin
# we save b:did_ftplugin's value in a `plugin_was_loaded_too_late` file
texFtplugin = (pkgs.runCommandLocal "tex-ftplugin" {} ''
mkdir -p $out/ftplugin
echo 'call system("echo ". exists("b:did_ftplugin") . " > plugin_was_loaded_too_late")' >> $out/ftplugin/tex.vim
echo ':q!' >> $out/ftplugin/tex.vim
'') // { pname = "test-ftplugin"; };
# neovim-drv must be a wrapped neovim # neovim-drv must be a wrapped neovim
runTest = neovim-drv: buildCommand: runTest = neovim-drv: buildCommand:
runCommandLocal "test-${neovim-drv.name}" ({ runCommandLocal "test-${neovim-drv.name}" ({
@ -81,18 +81,21 @@ let
meta.platforms = neovim-drv.meta.platforms; meta.platforms = neovim-drv.meta.platforms;
}) ('' }) (''
source ${nmt}/bash-lib/assertions.sh source ${nmt}/bash-lib/assertions.sh
vimrc="${writeText "init.vim" neovim-drv.initRc}" vimrc="${writeText "test-${neovim-drv.name}-init.vim" neovim-drv.initRc}"
luarc="${writeText "init.lua" neovim-drv.luaRcContent}" luarc="${writeText "test-${neovim-drv.name}-init.lua" neovim-drv.luaRcContent}"
luarcGeneric="$out/patched.lua" luarcGeneric="$out/patched.lua"
vimrcGeneric="$out/patched.vim" vimrcGeneric="$out/patched.vim"
mkdir $out mkdir $out
export HOME=$TMPDIR
${pkgs.perl}/bin/perl -pe "s|\Q$NIX_STORE\E/[a-z0-9]{32}-|$NIX_STORE/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-|g" < "$vimrc" > "$vimrcGeneric" ${pkgs.perl}/bin/perl -pe "s|\Q$NIX_STORE\E/[a-z0-9]{32}-|$NIX_STORE/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-|g" < "$vimrc" > "$vimrcGeneric"
${pkgs.perl}/bin/perl -pe "s|\Q$NIX_STORE\E/[a-z0-9]{32}-|$NIX_STORE/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-|g" < "$luarc" > "$luarcGeneric" ${pkgs.perl}/bin/perl -pe "s|\Q$NIX_STORE\E/[a-z0-9]{32}-|$NIX_STORE/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-|g" < "$luarc" > "$luarcGeneric"
'' + buildCommand); '' + buildCommand);
in in
pkgs.recurseIntoAttrs ( pkgs.recurseIntoAttrs (rec {
rec {
inherit nmt;
vim_empty_config = vimUtils.vimrcFile { beforePlugins = ""; customRC = ""; }; vim_empty_config = vimUtils.vimrcFile { beforePlugins = ""; customRC = ""; };
### neovim tests ### neovim tests
@ -138,11 +141,21 @@ rec {
}; };
run_nvim_with_plug = runTest nvim_with_plug '' run_nvim_with_plug = runTest nvim_with_plug ''
export HOME=$TMPDIR ${nvim_with_plug}/bin/nvim -V3log.txt -i NONE -c 'color base16-tomorrow-night' +quit! -e
${nvim_with_plug}/bin/nvim -i NONE -c 'color base16-tomorrow-night' +quit! -e
''; '';
nvim_with_ftplugin = neovim.override { nvim_with_ftplugin = let
# this plugin checks that it's ftplugin/vim.tex is loaded before $VIMRUNTIME/ftplugin/vim.tex
# $VIMRUNTIME/ftplugin/vim.tex sources $VIMRUNTIME/ftplugin/initex.vim which sets b:did_ftplugin
# we save b:did_ftplugin's value in a `plugin_was_loaded_too_late` file
texFtplugin = (pkgs.runCommandLocal "tex-ftplugin" {} ''
mkdir -p $out/ftplugin
echo 'call system("echo ". exists("b:did_ftplugin") . " > plugin_was_loaded_too_late")' >> $out/ftplugin/tex.vim
echo ':q!' >> $out/ftplugin/tex.vim
'') // { pname = "test-ftplugin"; };
in
neovim.override {
extraName = "-with-ftplugin"; extraName = "-with-ftplugin";
configure.packages.plugins = { configure.packages.plugins = {
start = [ start = [
@ -154,13 +167,14 @@ rec {
# regression test that ftplugin files from plugins are loaded before the ftplugin # regression test that ftplugin files from plugins are loaded before the ftplugin
# files from $VIMRUNTIME # files from $VIMRUNTIME
run_nvim_with_ftplugin = runTest nvim_with_ftplugin '' run_nvim_with_ftplugin = runTest nvim_with_ftplugin ''
export HOME=$TMPDIR
echo '\documentclass{article}' > main.tex echo '\documentclass{article}' > main.tex
${nvim_with_ftplugin}/bin/nvim main.tex -c "set ft?" -c quit ${nvim_with_ftplugin}/bin/nvim -i NONE -V3log.txt main.tex -c "set ft?" -c quit
ls -l $TMPDIR ls -l $TMPDIR
# if the file exists, then our plugin has been loaded instead of neovim's # check the saved value b:did_ftplugin then our plugin has been loaded instead of neovim's
[ ! -f plugin_was_loaded_too_late ] result="$(cat plugin_was_loaded_too_late)"
echo $result
[ "$result" = 0 ]
''; '';
@ -191,8 +205,8 @@ rec {
]; ];
}; };
}; };
checkHelpLuaPackages = runTest nvim_with_gitsigns_plugin '' checkHelpLuaPackages = runTest nvim_with_gitsigns_plugin ''
export HOME=$TMPDIR
${nvim_with_gitsigns_plugin}/bin/nvim -i NONE -c 'help gitsigns' +quitall! -e ${nvim_with_gitsigns_plugin}/bin/nvim -i NONE -c 'help gitsigns' +quitall! -e
''; '';
@ -220,8 +234,8 @@ rec {
checkAliases = runTest nvim_with_aliases '' checkAliases = runTest nvim_with_aliases ''
folder=${nvim_with_aliases}/bin folder=${nvim_with_aliases}/bin
assertFileExists "$folder/vi" assertFileIsExecutable "$folder/vi"
assertFileExists "$folder/vim" assertFileIsExecutable "$folder/vim"
''; '';
# having no RC generated should autodisable init.vim wrapping # having no RC generated should autodisable init.vim wrapping
@ -247,8 +261,7 @@ rec {
}); });
nvim_with_lua_packages = runTest nvimWithLuaPackages '' nvim_with_lua_packages = runTest nvimWithLuaPackages ''
export HOME=$TMPDIR ${nvimWithLuaPackages}/bin/nvim -V3log.txt -i NONE --noplugin +quitall! -e
${nvimWithLuaPackages}/bin/nvim -i NONE --noplugin -es
''; '';
# nixpkgs should install optional packages in the opt folder # nixpkgs should install optional packages in the opt folder
@ -286,7 +299,6 @@ rec {
}; };
run_nvim_with_opt_plugin = runTest nvim_with_opt_plugin '' run_nvim_with_opt_plugin = runTest nvim_with_opt_plugin ''
export HOME=$TMPDIR
${nvim_with_opt_plugin}/bin/nvim -i NONE +quit! -e ${nvim_with_opt_plugin}/bin/nvim -i NONE +quit! -e
''; '';
@ -296,9 +308,8 @@ rec {
# for instance luasnip has a dependency on jsregexp # for instance luasnip has a dependency on jsregexp
can_require_transitive_deps = can_require_transitive_deps =
runTest nvim-with-luasnip '' runTest nvim-with-luasnip ''
export HOME=$TMPDIR
cat ${nvim-with-luasnip}/bin/nvim cat ${nvim-with-luasnip}/bin/nvim
${nvim-with-luasnip}/bin/nvim -i NONE --cmd "lua require'jsregexp'" -e ${nvim-with-luasnip}/bin/nvim -i NONE --cmd "lua require'jsregexp'" -e +quitall!
''; '';
}) })

View File

@ -21,7 +21,7 @@
let let
pname = "texmacs"; pname = "texmacs";
version = "2.1.2"; version = "2.1.4";
common = callPackage ./common.nix { common = callPackage ./common.nix {
inherit extraFonts chineseFonts japaneseFonts koreanFonts; inherit extraFonts chineseFonts japaneseFonts koreanFonts;
tex = texliveSmall; tex = texliveSmall;
@ -32,7 +32,7 @@ stdenv.mkDerivation {
src = fetchurl { src = fetchurl {
url = "https://www.texmacs.org/Download/ftp/tmftp/source/TeXmacs-${version}-src.tar.gz"; url = "https://www.texmacs.org/Download/ftp/tmftp/source/TeXmacs-${version}-src.tar.gz";
hash = "sha256-Ds9gxOwMYSttEWrawgxLHGxHyMBvt8WmyPIwBP2g/CM="; hash = "sha256-h6aSLuDdrAtVzOnNVPqMEWX9WLDHtkCjPy9JXWnBgYY=";
}; };
postPatch = common.postPatch + '' postPatch = common.postPatch + ''

View File

@ -4073,8 +4073,8 @@ let
mktplcRef = { mktplcRef = {
name = "wikitext"; name = "wikitext";
publisher = "RoweWilsonFrederiskHolme"; publisher = "RoweWilsonFrederiskHolme";
version = "3.8.1"; version = "3.8.2";
hash = "sha256-piwS3SPjx10nsjN5axC+EN0MEDf0r2lVFllqQzciOfc="; hash = "sha256-rWifSoJSN37xPIaCQgPyXRz9tCX2Akahl/3CuqzXq94=";
}; };
meta = { meta = {
description = "Extension that helps users view and write MediaWiki's Wikitext files"; description = "Extension that helps users view and write MediaWiki's Wikitext files";

View File

@ -121,10 +121,10 @@ python3.pkgs.buildPythonApplication rec {
hunspellDicts.en-us hunspellDicts.en-us
hunspellDicts.es-es hunspellDicts.es-es
hunspellDicts.it-it hunspellDicts.it-it
python3.pkgs.nose
]; ];
# Tests have never been enabled, and upstream uses nose as a test
# runner (though not as a library).
doCheck = false; doCheck = false;
preBuild = '' preBuild = ''

View File

@ -33,14 +33,14 @@ let
}.${system} or throwSystem; }.${system} or throwSystem;
hash = { hash = {
x86_64-linux = "sha256-25FFXrUE1NvIXlOFR9KZyjD3w8xuvPlpqz/KkUTt1TQ="; x86_64-linux = "sha256-l7uu101UcY5AGMh6BzMvXvPMw1tlaX6grus9eL9Kxf8=";
}.${system} or throwSystem; }.${system} or throwSystem;
displayname = "XPipe"; displayname = "XPipe";
in stdenvNoCC.mkDerivation rec { in stdenvNoCC.mkDerivation rec {
pname = "xpipe"; pname = "xpipe";
version = "11.2"; version = "11.3";
src = fetchzip { src = fetchzip {
url = "https://github.com/xpipe-io/xpipe/releases/download/${version}/xpipe-portable-linux-${arch}.tar.gz"; url = "https://github.com/xpipe-io/xpipe/releases/download/${version}/xpipe-portable-linux-${arch}.tar.gz";

View File

@ -5,7 +5,7 @@
# - The exact version can be specified through the `version` argument to # - The exact version can be specified through the `version` argument to
# the derivation; it defaults to the latest stable version. # the derivation; it defaults to the latest stable version.
{ lib, stdenv, fetchzip, writeText, pkg-config, gnumake42 { lib, stdenv, fetchzip, fetchurl, writeText, pkg-config, gnumake42
, customOCamlPackages ? null , customOCamlPackages ? null
, ocamlPackages_4_05, ocamlPackages_4_09, ocamlPackages_4_10, ocamlPackages_4_12 , ocamlPackages_4_05, ocamlPackages_4_09, ocamlPackages_4_10, ocamlPackages_4_12
, ocamlPackages_4_14 , ocamlPackages_4_14
@ -62,7 +62,7 @@ let
}; };
releaseRev = v: "V${v}"; releaseRev = v: "V${v}";
fetched = import ../../../../build-support/coq/meta-fetch/default.nix fetched = import ../../../../build-support/coq/meta-fetch/default.nix
{ inherit lib stdenv fetchzip; } { inherit lib stdenv fetchzip fetchurl; }
{ inherit release releaseRev; location = { owner = "coq"; repo = "coq";}; } { inherit release releaseRev; location = { owner = "coq"; repo = "coq";}; }
args.version; args.version;
version = fetched.version; version = fetched.version;

View File

@ -80,7 +80,7 @@ stdenv.mkDerivation rec {
# requirements.txt # requirements.txt
let pp = python.pkgs; in ([ let pp = python.pkgs; in ([
pp.numpy pp.scipy pp.scikit-image pp.h5py pp.numpy pp.scipy pp.scikit-image pp.h5py
pp.matplotlib pp.ipython pp.networkx pp.nose pp.matplotlib pp.ipython pp.networkx
pp.pandas pp.python-dateutil pp.protobuf pp.gflags pp.pandas pp.python-dateutil pp.protobuf pp.gflags
pp.pyyaml pp.pillow pp.six pp.pyyaml pp.pillow pp.six
] ++ lib.optional leveldbSupport pp.leveldb) ] ++ lib.optional leveldbSupport pp.leveldb)

View File

@ -2,13 +2,13 @@
buildGoModule rec { buildGoModule rec {
pname = "git-town"; pname = "git-town";
version = "16.1.1"; version = "16.2.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "git-town"; owner = "git-town";
repo = "git-town"; repo = "git-town";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-H4FtFSI/c7UxRLZB8kz873DIN6kLUwmRZtz3+4zaR7w="; hash = "sha256-/60n/JvT7XRfEVic6Jmi05WpsAy4mRsE/GAnetTMC1I=";
}; };
vendorHash = null; vendorHash = null;

View File

@ -1,4 +1,4 @@
{ lib, stdenv, coqPackages, coq, which, fetchzip }@args: { lib, stdenv, coqPackages, coq, which, fetchzip, fetchurl }@args:
let let
lib = import ./extra-lib.nix { lib = import ./extra-lib.nix {
@ -71,7 +71,7 @@ let
"extraInstallFlags" "setCOQBIN" "mlPlugin" "extraInstallFlags" "setCOQBIN" "mlPlugin"
"dropAttrs" "dropDerivationAttrs" "keepAttrs" ] ++ dropAttrs) keepAttrs; "dropAttrs" "dropDerivationAttrs" "keepAttrs" ] ++ dropAttrs) keepAttrs;
fetch = import ../coq/meta-fetch/default.nix fetch = import ../coq/meta-fetch/default.nix
{ inherit lib stdenv fetchzip; } ({ { inherit lib stdenv fetchzip fetchurl; } ({
inherit release releaseRev; inherit release releaseRev;
location = { inherit domain owner repo; }; location = { inherit domain owner repo; };
} // optionalAttrs (args?fetcher) {inherit fetcher;}); } // optionalAttrs (args?fetcher) {inherit fetcher;});

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchzip }@args: { lib, stdenv, fetchurl, fetchzip }@args:
let let
lib = import ../extra-lib.nix { lib = import ../extra-lib.nix {
@ -28,11 +28,16 @@ let
inherit (lib.strings) match split; inherit (lib.strings) match split;
default-fetcher = {domain ? "github.com", owner ? "", repo, rev, name ? "source", sha256 ? null, ...}@args: default-fetcher = {domain ? "github.com", owner ? "", repo, rev, name ? "source", sha256 ? null, artifact ? null, ...}@args:
let ext = if args?sha256 then "zip" else "tar.gz"; let kind = switch-if [
fmt = if args?sha256 then "zip" else "tarball"; { cond = artifact != null; out = {ext = "tbz"; fmt = "tbz"; fetchfun = fetchurl; }; }
{ cond = args?sha256 ; out = {ext = "zip"; fmt = "zip"; fetchfun = fetchzip; }; }
] {ext = "tar.gz"; fmt = "tarball"; fetchfun = builtins.fetchTarball; }; in
with kind; let
pr = match "^#(.*)$" rev; pr = match "^#(.*)$" rev;
url = switch-if [ url = switch-if [
{ cond = pr == null && (match "^github.*" domain) != null && artifact != null;
out = "https://github.com/${owner}/${repo}/releases/download/${rev}/${artifact}"; }
{ cond = pr == null && (match "^github.*" domain) != null; { cond = pr == null && (match "^github.*" domain) != null;
out = "https://${domain}/${owner}/${repo}/archive/${rev}.${ext}"; } out = "https://${domain}/${owner}/${repo}/archive/${rev}.${ext}"; }
{ cond = pr != null && (match "^github.*" domain) != null; { cond = pr != null && (match "^github.*" domain) != null;
@ -42,7 +47,7 @@ let
{ cond = (match "(www.)?mpi-sws.org" domain) != null; { cond = (match "(www.)?mpi-sws.org" domain) != null;
out = "https://www.mpi-sws.org/~${owner}/${repo}/download/${repo}-${rev}.${ext}";} out = "https://www.mpi-sws.org/~${owner}/${repo}/download/${repo}-${rev}.${ext}";}
] (throw "meta-fetch: no fetcher found for domain ${domain} on ${rev}"); ] (throw "meta-fetch: no fetcher found for domain ${domain} on ${rev}");
fetch = x: if args?sha256 then fetchzip (x // { inherit sha256; }) else builtins.fetchTarball x; fetch = x: fetchfun (if args?sha256 then (x // { inherit sha256; }) else x);
in fetch { inherit url ; }; in fetch { inherit url ; };
in in
{ {
@ -50,8 +55,10 @@ in
location, location,
release ? {}, release ? {},
releaseRev ? (v: v), releaseRev ? (v: v),
releaseArtifact ? (v: null)
}: }:
let isVersion = x: isString x && match "^/.*" x == null && release?${x}; let
isVersion = x: isString x && match "^/.*" x == null && release?${x};
shortVersion = x: if (isString x && match "^/.*" x == null) shortVersion = x: if (isString x && match "^/.*" x == null)
then findFirst (v: versions.majorMinor v == x) null then findFirst (v: versions.majorMinor v == x) null
(sort versionAtLeast (attrNames release)) (sort versionAtLeast (attrNames release))
@ -71,7 +78,7 @@ switch arg [
in in
{ {
version = rv.version or v; version = rv.version or v;
src = rv.src or fetcher (location // { rev = releaseRev v; } // rv); src = rv.src or fetcher (location // { rev = releaseRev v; artifact = releaseArtifact v; } // rv);
}; };
} }
{ case = isString; { case = isString;

View File

@ -94,12 +94,6 @@ let
or (if finalAttrs.composerRepository.composerLock == null then nix-update-script { } else null); or (if finalAttrs.composerRepository.composerLock == null then nix-update-script { } else null);
}; };
env = {
COMPOSER_CACHE_DIR = "/dev/null";
COMPOSER_DISABLE_NETWORK = "1";
COMPOSER_MIRROR_PATH_REPOS = "1";
};
meta = previousAttrs.meta or { } // { meta = previousAttrs.meta or { } // {
platforms = lib.platforms.all; platforms = lib.platforms.all;
}; };

View File

@ -102,13 +102,6 @@ let
runHook postInstallCheck runHook postInstallCheck
''; '';
env = {
COMPOSER_CACHE_DIR = "/dev/null";
COMPOSER_MIRROR_PATH_REPOS = "1";
COMPOSER_HTACCESS_PROTECT = "0";
COMPOSER_DISABLE_NETWORK = "0";
};
outputHashMode = "recursive"; outputHashMode = "recursive";
outputHashAlgo = outputHashAlgo =
if (finalAttrs ? vendorHash && finalAttrs.vendorHash != "") then null else "sha256"; if (finalAttrs ? vendorHash && finalAttrs.vendorHash != "") then null else "sha256";

View File

@ -149,12 +149,6 @@ let
or (if finalAttrs.vendor.composerLock == null then nix-update-script { } else null); or (if finalAttrs.vendor.composerLock == null then nix-update-script { } else null);
}; };
env = {
COMPOSER_CACHE_DIR = "/dev/null";
COMPOSER_DISABLE_NETWORK = "1";
COMPOSER_MIRROR_PATH_REPOS = "1";
};
meta = previousAttrs.meta or composer.meta; meta = previousAttrs.meta or composer.meta;
}; };
in in

View File

@ -24,7 +24,7 @@ composerInstallConfigureHook() {
fi fi
if [[ ! -f "composer.lock" ]]; then if [[ ! -f "composer.lock" ]]; then
setComposeRootVersion setComposerRootVersion
composer \ composer \
--no-install \ --no-install \
@ -79,7 +79,7 @@ composerInstallConfigureHook() {
composerInstallBuildHook() { composerInstallBuildHook() {
echo "Executing composerInstallBuildHook" echo "Executing composerInstallBuildHook"
setComposeRootVersion setComposerRootVersion
# Since this file cannot be generated in the composer-repository-hook.sh # Since this file cannot be generated in the composer-repository-hook.sh
# because the file contains hardcoded nix store paths, we generate it here. # because the file contains hardcoded nix store paths, we generate it here.
@ -99,7 +99,8 @@ composerInstallCheckHook() {
composerInstallInstallHook() { composerInstallInstallHook() {
echo "Executing composerInstallInstallHook" echo "Executing composerInstallInstallHook"
setComposeRootVersion setComposerRootVersion
setComposerEnvVariables
# Finally, run `composer install` to install the dependencies and generate # Finally, run `composer install` to install the dependencies and generate
# the autoloader. # the autoloader.

View File

@ -20,7 +20,7 @@ composerRepositoryConfigureHook() {
fi fi
if [[ ! -f "composer.lock" ]]; then if [[ ! -f "composer.lock" ]]; then
setComposeRootVersion setComposerRootVersion
composer \ composer \
--no-install \ --no-install \
@ -58,7 +58,7 @@ composerRepositoryBuildHook() {
mkdir -p repository mkdir -p repository
setComposeRootVersion setComposerRootVersion
# Build the local composer repository # Build the local composer repository
# The command 'build-local-repo' is provided by the Composer plugin # The command 'build-local-repo' is provided by the Composer plugin

View File

@ -28,7 +28,7 @@ composerWithPluginConfigureHook() {
cp -ar $src $out/src cp -ar $src $out/src
if [[ ! -f "$out/composer.lock" ]]; then if [[ ! -f "$out/composer.lock" ]]; then
setComposeRootVersion setComposerRootVersion
composer \ composer \
global \ global \

View File

@ -2,7 +2,7 @@ declare version
declare composerStrictValidation declare composerStrictValidation
declare composerGlobal declare composerGlobal
setComposeRootVersion() { setComposerRootVersion() {
set +e # Disable exit on error set +e # Disable exit on error
if [[ -v version ]]; then if [[ -v version ]]; then
@ -13,8 +13,15 @@ setComposeRootVersion() {
set -e set -e
} }
setComposerEnvVariables() {
echo -e "\e[32mSetting some required environment variables for Composer...\e[0m"
export COMPOSER_MIRROR_PATH_REPOS=1
export COMPOSER_CACHE_DIR=/dev/null
export COMPOSER_HTACCESS_PROTECT=0
}
checkComposerValidate() { checkComposerValidate() {
setComposeRootVersion setComposerRootVersion
if [ "1" == "${composerGlobal-}" ]; then if [ "1" == "${composerGlobal-}" ]; then
global="global"; global="global";

View File

@ -94,12 +94,6 @@ let
or (if finalAttrs.composerVendor.composerLock == null then nix-update-script { } else null); or (if finalAttrs.composerVendor.composerLock == null then nix-update-script { } else null);
}; };
env = {
COMPOSER_CACHE_DIR = "/dev/null";
COMPOSER_DISABLE_NETWORK = "1";
COMPOSER_MIRROR_PATH_REPOS = "1";
};
meta = previousAttrs.meta or { } // { meta = previousAttrs.meta or { } // {
platforms = lib.platforms.all; platforms = lib.platforms.all;
}; };

View File

@ -87,13 +87,6 @@ let
runHook postInstallCheck runHook postInstallCheck
''; '';
env = {
COMPOSER_CACHE_DIR = "/dev/null";
COMPOSER_MIRROR_PATH_REPOS = "1";
COMPOSER_HTACCESS_PROTECT = "0";
COMPOSER_DISABLE_NETWORK = "0";
};
outputHashMode = "recursive"; outputHashMode = "recursive";
outputHashAlgo = outputHashAlgo =
if (finalAttrs ? vendorHash && finalAttrs.vendorHash != "") then null else "sha256"; if (finalAttrs ? vendorHash && finalAttrs.vendorHash != "") then null else "sha256";

View File

@ -14,7 +14,7 @@ source @phpScriptUtils@
composerInstallConfigureHook() { composerInstallConfigureHook() {
echo "Executing composerInstallConfigureHook" echo "Executing composerInstallConfigureHook"
setComposeRootVersion setComposerRootVersion
if [[ ! -e "${composerVendor}" ]]; then if [[ ! -e "${composerVendor}" ]]; then
echo "No local composer vendor found." echo "No local composer vendor found."

View File

@ -15,7 +15,7 @@ source @phpScriptUtils@
composerVendorConfigureHook() { composerVendorConfigureHook() {
echo "Executing composerVendorConfigureHook" echo "Executing composerVendorConfigureHook"
setComposeRootVersion setComposerRootVersion
if [[ -e "$composerLock" ]]; then if [[ -e "$composerLock" ]]; then
echo -e "\e[32mUsing user provided \`composer.lock\` file from \`$composerLock\`\e[0m" echo -e "\e[32mUsing user provided \`composer.lock\` file from \`$composerLock\`\e[0m"
@ -59,11 +59,13 @@ composerVendorConfigureHook() {
composerVendorBuildHook() { composerVendorBuildHook() {
echo "Executing composerVendorBuildHook" echo "Executing composerVendorBuildHook"
setComposerEnvVariables
composer \ composer \
# The acpu-autoloader is not reproducible and has to be disabled. `# The acpu-autoloader is not reproducible and has to be disabled.` \
# Upstream PR: https://github.com/composer/composer/pull/12090 `# Upstream PR: https://github.com/composer/composer/pull/12090` \
# --apcu-autoloader \ `# --apcu-autoloader` \
# --apcu-autoloader-prefix="$(jq -r -c 'try ."content-hash"' < composer.lock)" \ `# --apcu-autoloader-prefix="$(jq -r -c 'try ."content-hash"' < composer.lock)"` \
--no-interaction \ --no-interaction \
--no-progress \ --no-progress \
--optimize-autoloader \ --optimize-autoloader \

View File

@ -2,7 +2,7 @@ declare version
declare composerStrictValidation declare composerStrictValidation
declare composerGlobal declare composerGlobal
setComposeRootVersion() { setComposerRootVersion() {
set +e # Disable exit on error set +e # Disable exit on error
if [[ -v version ]]; then if [[ -v version ]]; then
@ -13,6 +13,13 @@ setComposeRootVersion() {
set -e set -e
} }
setComposerEnvVariables() {
echo -e "\e[32mSetting some required environment variables for Composer...\e[0m"
export COMPOSER_MIRROR_PATH_REPOS=1
export COMPOSER_CACHE_DIR=/dev/null
export COMPOSER_HTACCESS_PROTECT=0
}
checkComposerValidate() { checkComposerValidate() {
if [ "1" == "${composerGlobal-}" ]; then if [ "1" == "${composerGlobal-}" ]; then
global="global"; global="global";

View File

@ -6,7 +6,7 @@
python3.pkgs.buildPythonApplication rec { python3.pkgs.buildPythonApplication rec {
pname = "autosuspend"; pname = "autosuspend";
version = "7.0.0"; version = "7.0.1";
disabled = python3.pythonOlder "3.10"; disabled = python3.pythonOlder "3.10";
@ -14,7 +14,7 @@ python3.pkgs.buildPythonApplication rec {
owner = "languitar"; owner = "languitar";
repo = pname; repo = pname;
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-AJ0ZWRxqhBJEics6XnIVWyf7pJI8MphQU4LRqSYYNSQ="; hash = "sha256-Zjo8H5PU6JezrBF0XBHvmePUTNeX74BX4NsHtPozcKs=";
}; };
dependencies = with python3.pkgs; [ dependencies = with python3.pkgs; [

File diff suppressed because it is too large Load Diff

View File

@ -13,25 +13,26 @@
vulkan-loader, vulkan-loader,
wayland, wayland,
xorg, xorg,
alsa-lib,
}: }:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "halloy"; pname = "halloy";
version = "2024.8"; version = "2024.11";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "squidowl"; owner = "squidowl";
repo = "halloy"; repo = "halloy";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-OxxXjenZjP+3KrkxyXYxOXRFmrYm3deeiCuGrhpnF2I="; hash = "sha256-kmdsC0SQoL5gppzBhnF0LfOFj14zeI3C6SdCBiVoKj0=";
}; };
cargoLock = { cargoLock = {
lockFile = ./Cargo.lock; lockFile = ./Cargo.lock;
outputHashes = { outputHashes = {
"dpi-0.1.1" = "sha256-25sOvEBhlIaekTeWvy3UhjPI1xrJbOQvw/OkTg12kQY="; "dpi-0.1.1" = "sha256-25sOvEBhlIaekTeWvy3UhjPI1xrJbOQvw/OkTg12kQY=";
"glyphon-0.5.0" = "sha256-+z2my51aUeK9txLZKVAyQcWJ6f2YDY1mjxfc8Xsqi8E="; "glyphon-0.5.0" = "sha256-OGXLqiMjaZ7gR5ANkuCgkfn/I7c/4h9SRE6MZZMW3m4=";
"iced-0.13.0-dev" = "sha256-eHlauEZibbuqK5mdkNP6gsy1z9qxqEDn/xfFw7W5TcY="; "iced-0.13.0-dev" = "sha256-XQUaI16lGEMGFxqK3UNd8jQfUiBzomxlT/I+yeZncFo=";
}; };
}; };
@ -43,6 +44,7 @@ rustPlatform.buildRustPackage rec {
buildInputs = buildInputs =
[ [
alsa-lib
libxkbcommon libxkbcommon
openssl openssl
vulkan-loader vulkan-loader

View File

@ -7,12 +7,12 @@
python3Packages.buildPythonApplication rec { python3Packages.buildPythonApplication rec {
pname = "latexminted"; pname = "latexminted";
version = "0.1.0b9"; version = "0.1.0b16";
pyproject = true; pyproject = true;
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-QUFfoX1jv5pVQDEBGaVd1madfqbTWTJyXPh4gw7P5UE="; hash = "sha256-9iUxoJIctp5IPEaEHqw0AwgcEkxlEyPTZhRkpXSjSIA=";
}; };
build-system = with python3Packages; [ build-system = with python3Packages; [
@ -22,6 +22,7 @@ python3Packages.buildPythonApplication rec {
dependencies = with python3Packages; [ dependencies = with python3Packages; [
pygments pygments
latex2pydata latex2pydata
latexrestricted
]; ];
passthru = { passthru = {

View File

@ -6,13 +6,13 @@
buildGoModule rec { buildGoModule rec {
pname = "misconfig-mapper"; pname = "misconfig-mapper";
version = "1.8.4"; version = "1.9.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "intigriti"; owner = "intigriti";
repo = "misconfig-mapper"; repo = "misconfig-mapper";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-zg7OBHrveBmsljUJUE0/kz3AkIbUtTHf64BQbROUXsQ="; hash = "sha256-mi3lM/BQ16dCVX/kVRNhIis4sh6M0TMuK05q/pXJiS8=";
}; };
vendorHash = "sha256-aABtsS39yxBBFMN98fjr4gy6QeF3dobrZqeZmmv2ywQ="; vendorHash = "sha256-aABtsS39yxBBFMN98fjr4gy6QeF3dobrZqeZmmv2ywQ=";

View File

@ -1,28 +1,31 @@
{ lib {
, clangStdenv lib,
, cargo clangStdenv,
, copyDesktopItems cargo,
, fetchFromGitHub copyDesktopItems,
, flutter316 fetchFromGitHub,
, ffmpeg flutter316,
, gst_all_1 ffmpeg,
, fuse3 gst_all_1,
, libXtst fuse3,
, libaom libXtst,
, libopus libaom,
, libpulseaudio libopus,
, libva libpulseaudio,
, libvdpau libva,
, libvpx libvdpau,
, libxkbcommon libvpx,
, libyuv libxkbcommon,
, pam libyuv,
, makeDesktopItem pam,
, rustPlatform makeDesktopItem,
, rustc rustPlatform,
, rustfmt libayatana-appindicator,
, xdotool rustc,
}: let rustfmt,
xdotool,
}:
let
flutterRustBridge = rustPlatform.buildRustPackage rec { flutterRustBridge = rustPlatform.buildRustPackage rec {
pname = "flutter_rust_bridge_codegen"; pname = "flutter_rust_bridge_codegen";
@ -36,13 +39,17 @@
}; };
cargoHash = "sha256-dDyiptG9TKes+fXx2atwx697SWH7Rltx6xVubtTn7FM="; cargoHash = "sha256-dDyiptG9TKes+fXx2atwx697SWH7Rltx6xVubtTn7FM=";
cargoBuildFlags = [ "--package" "flutter_rust_bridge_codegen" ]; cargoBuildFlags = [
"--package"
"flutter_rust_bridge_codegen"
];
doCheck = false; doCheck = false;
}; };
sharedLibraryExt = rustc.stdenv.hostPlatform.extensions.sharedLibrary; sharedLibraryExt = rustc.stdenv.hostPlatform.extensions.sharedLibrary;
in flutter316.buildFlutterApplication rec { in
flutter316.buildFlutterApplication rec {
pname = "rustdesk"; pname = "rustdesk";
version = "1.3.0"; version = "1.3.0";
src = fetchFromGitHub { src = fetchFromGitHub {
@ -76,34 +83,34 @@ in flutter316.buildFlutterApplication rec {
# and fixing the resulting errors by removing the other registry deps. # and fixing the resulting errors by removing the other registry deps.
lockFile = ./Cargo.lock; lockFile = ./Cargo.lock;
outputHashes = { outputHashes = {
"android-wakelock-0.1.0" = "sha256-09EH/U1BBs3l4galQOrTKmPUYBgryUjfc/rqPZhdYc4="; "android-wakelock-0.1.0" = "sha256-09EH/U1BBs3l4galQOrTKmPUYBgryUjfc/rqPZhdYc4=";
"arboard-3.4.0" = "sha256-lZIG5z115ExR6DcUut1rk9MrYFzSyCYH9kNGIikOPJM="; "arboard-3.4.0" = "sha256-lZIG5z115ExR6DcUut1rk9MrYFzSyCYH9kNGIikOPJM=";
"cacao-0.4.0-beta2" = "sha256-U5tCLeVxjmZCm7ti1u71+i116xmozPaR69pCsA4pxrM="; "cacao-0.4.0-beta2" = "sha256-U5tCLeVxjmZCm7ti1u71+i116xmozPaR69pCsA4pxrM=";
"clipboard-master-4.0.0-beta.6" = "sha256-GZyzGMQOZ0iwGNZa/ZzFp8gU2tQVWZBpAbim8yb6yZA="; "clipboard-master-4.0.0-beta.6" = "sha256-GZyzGMQOZ0iwGNZa/ZzFp8gU2tQVWZBpAbim8yb6yZA=";
"confy-0.4.0-2" = "sha256-V7BCKISrkJIxWC3WT5+B5Vav86YTQvdO9TO6A++47FU="; "confy-0.4.0-2" = "sha256-V7BCKISrkJIxWC3WT5+B5Vav86YTQvdO9TO6A++47FU=";
"core-foundation-0.9.3" = "sha256-iB4OVmWZhuWbs9RFWvNc+RNut6rip2/50o5ZM6c0c3g="; "core-foundation-0.9.3" = "sha256-iB4OVmWZhuWbs9RFWvNc+RNut6rip2/50o5ZM6c0c3g=";
"evdev-0.11.5" = "sha256-aoPmjGi/PftnH6ClEWXHvIj0X3oh15ZC1q7wPC1XPr0="; "evdev-0.11.5" = "sha256-aoPmjGi/PftnH6ClEWXHvIj0X3oh15ZC1q7wPC1XPr0=";
"hwcodec-0.7.0" = "sha256-pfzcaD7h/U5ou+P7qRLR56iXOkm043rF74y+Q0FsVLo="; "hwcodec-0.7.0" = "sha256-pfzcaD7h/U5ou+P7qRLR56iXOkm043rF74y+Q0FsVLo=";
"impersonate_system-0.1.0" = "sha256-pIV7s2qGoCIUrhaRovBDCJaGQ/pMdJacDXJmeBpkcyI="; "impersonate_system-0.1.0" = "sha256-pIV7s2qGoCIUrhaRovBDCJaGQ/pMdJacDXJmeBpkcyI=";
"keepawake-0.4.3" = "sha256-cqSpkq/PCz+5+ZUyPy5hF6rP3fBzuZDywyxMUQ50Rk4="; "keepawake-0.4.3" = "sha256-cqSpkq/PCz+5+ZUyPy5hF6rP3fBzuZDywyxMUQ50Rk4=";
"machine-uid-0.3.0" = "sha256-rEOyNThg6p5oqE9URnxSkPtzyW8D4zKzLi9pAnzTElE="; "machine-uid-0.3.0" = "sha256-rEOyNThg6p5oqE9URnxSkPtzyW8D4zKzLi9pAnzTElE=";
"magnum-opus-0.4.0" = "sha256-T4qaYOl8lCK1h9jWa9KqGvnVfDViT9Ob5R+YgnSw2tg="; "magnum-opus-0.4.0" = "sha256-T4qaYOl8lCK1h9jWa9KqGvnVfDViT9Ob5R+YgnSw2tg=";
"pam-0.7.0" = "sha256-o47tVoFlW9RiL7O8Lvuwz7rMYQHO+5TG27XxkAdHEOE="; "pam-0.7.0" = "sha256-o47tVoFlW9RiL7O8Lvuwz7rMYQHO+5TG27XxkAdHEOE=";
"pam-sys-1.0.0-alpha4" = "sha256-5HIErVWnanLo5054NgU+DEKC2wwyiJ8AHvbx0BGbyWo="; "pam-sys-1.0.0-alpha4" = "sha256-5HIErVWnanLo5054NgU+DEKC2wwyiJ8AHvbx0BGbyWo=";
"parity-tokio-ipc-0.7.3-4" = "sha256-PKw2Twd2ap+tRrQxqg8T1FvpoeKn0hvBqn1Z44F1LcY="; "parity-tokio-ipc-0.7.3-4" = "sha256-PKw2Twd2ap+tRrQxqg8T1FvpoeKn0hvBqn1Z44F1LcY=";
"rdev-0.5.0-2" = "sha256-KrzNa4sKyuVw3EV/Ec9VBNRyJy7QFR2Gu4c2WkltwUw="; "rdev-0.5.0-2" = "sha256-KrzNa4sKyuVw3EV/Ec9VBNRyJy7QFR2Gu4c2WkltwUw=";
"reqwest-0.11.23" = "sha256-kEUT+gs4ziknDiGdPMLnj5pmxC5SBpLopZ8jZ34GDWc="; "reqwest-0.11.23" = "sha256-kEUT+gs4ziknDiGdPMLnj5pmxC5SBpLopZ8jZ34GDWc=";
"rust-pulsectl-0.2.12" = "sha256-8jXTspWvjONFcvw9/Z8C43g4BuGZ3rsG32tvLMQbtbM="; "rust-pulsectl-0.2.12" = "sha256-8jXTspWvjONFcvw9/Z8C43g4BuGZ3rsG32tvLMQbtbM=";
"sciter-rs-0.5.57" = "sha256-5Nd9npdx8yQJEczHv7WmSmrE1lBfvp5z7BubTbYBg3E="; "sciter-rs-0.5.57" = "sha256-5Nd9npdx8yQJEczHv7WmSmrE1lBfvp5z7BubTbYBg3E=";
"sysinfo-0.29.10" = "sha256-/UsFAvlWs/F7X1xT+97Fx+pnpCguoPHU3hTynqYMEs4="; "sysinfo-0.29.10" = "sha256-/UsFAvlWs/F7X1xT+97Fx+pnpCguoPHU3hTynqYMEs4=";
"tao-0.25.0" = "sha256-kLmx1z9Ybn/hDt2OcszEjtZytQIE+NKTIn9zNr9oEQk="; "tao-0.25.0" = "sha256-kLmx1z9Ybn/hDt2OcszEjtZytQIE+NKTIn9zNr9oEQk=";
"tfc-0.7.0" = "sha256-4plK8ttbHsBPat3/rS+4RhGzirq2Ked2wrU8cQEU1zo="; "tfc-0.7.0" = "sha256-4plK8ttbHsBPat3/rS+4RhGzirq2Ked2wrU8cQEU1zo=";
"tokio-socks-0.5.2-1" = "sha256-i1dfNatqN4dinMcyAdLhj9hJWVsT10OWpCXsxl7pifI="; "tokio-socks-0.5.2-1" = "sha256-i1dfNatqN4dinMcyAdLhj9hJWVsT10OWpCXsxl7pifI=";
"tray-icon-0.14.3" = "sha256-dSX7LucZaLplRrh6zLwmFzyZN4ZtwIXzAEdZzlu3gQg="; "tray-icon-0.14.3" = "sha256-dSX7LucZaLplRrh6zLwmFzyZN4ZtwIXzAEdZzlu3gQg=";
"wallpaper-3.2.0" = "sha256-p9NRmusdA0wvF6onp1UTL0/4t7XnEAc19sqyGDnfg/Q="; "wallpaper-3.2.0" = "sha256-p9NRmusdA0wvF6onp1UTL0/4t7XnEAc19sqyGDnfg/Q=";
"webm-1.1.0" = "sha256-p4BMej7yvb8c/dJynRWZmwo2hxAAY96Qx6Qx2DbT8hE="; "webm-1.1.0" = "sha256-p4BMej7yvb8c/dJynRWZmwo2hxAAY96Qx6Qx2DbT8hE=";
"x11-2.19.0" = "sha256-GDCeKzUtvaLeBDmPQdyr499EjEfT6y4diBMzZVEptzc="; "x11-2.19.0" = "sha256-GDCeKzUtvaLeBDmPQdyr499EjEfT6y4diBMzZVEptzc=";
"x11-clipboard-0.8.1" = "sha256-PtqmSD2MwkbLVWbfTSXZW3WEvEnUlo04qieUTjN2whE="; "x11-clipboard-0.8.1" = "sha256-PtqmSD2MwkbLVWbfTSXZW3WEvEnUlo04qieUTjN2whE=";
}; };
}; };
dontCargoBuild = true; dontCargoBuild = true;
@ -147,11 +154,17 @@ in flutter316.buildFlutterApplication rec {
prePatch = '' prePatch = ''
chmod -R +w .. chmod -R +w ..
''; '';
patchFlags = [ "-p1" "-d" ".." ]; patchFlags = [
"-p1"
"-d"
".."
];
patches = [ ./make-build-reproducible.patch ]; patches = [ ./make-build-reproducible.patch ];
postPatch = '' postPatch = ''
substituteInPlace $cargoDepsCopy/libappindicator-sys-*/src/lib.rs \
--replace-fail "libayatana-appindicator3.so.1" "${lib.getLib libayatana-appindicator}/lib/libayatana-appindicator3.so.1"
substituteInPlace ../Cargo.toml --replace-fail ", \"staticlib\", \"rlib\"" "" substituteInPlace ../Cargo.toml --replace-fail ", \"staticlib\", \"rlib\"" ""
# The supplied Cargo.lock doesn't work with our fetcher so copy over the fixed version # The supplied Cargo.lock doesn't work with our fetcher so copy over the fixed version
cp ${./Cargo.lock} ../Cargo.lock cp ${./Cargo.lock} ../Cargo.lock
@ -201,7 +214,11 @@ in flutter316.buildFlutterApplication rec {
terminal = false; terminal = false;
type = "Application"; type = "Application";
startupNotify = true; startupNotify = true;
categories = [ "Network" "RemoteAccess" "GTK" ]; categories = [
"Network"
"RemoteAccess"
"GTK"
];
keywords = [ "internet" ]; keywords = [ "internet" ];
actions.new-window = { actions.new-window = {
name = "Open a New Window"; name = "Open a New Window";

View File

@ -16,13 +16,13 @@
stdenv.mkDerivation (finalAttrs: { stdenv.mkDerivation (finalAttrs: {
pname = "saunafs"; pname = "saunafs";
version = "4.5.0"; version = "4.5.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "leil-io"; owner = "leil-io";
repo = "saunafs"; repo = "saunafs";
rev = "v${finalAttrs.version}"; rev = "v${finalAttrs.version}";
hash = "sha256-jimq+Dx3RoJmnUDcfCkgE6Hk7OvPH/fs1v/Nri8Xtz8="; hash = "sha256-oMFS5eNNzCpaineCLn0hh3bXGw3SNdj+Pdvk3pevIZg=";
}; };
patches = [ patches = [

View File

@ -6,7 +6,7 @@ let recent = lib.versions.isGe "8.7" coq.coq-version || coq.coq-version == "dev"
owner = "QuickChick"; owner = "QuickChick";
inherit version; inherit version;
defaultVersion = lib.switch [ coq.coq-version ssreflect.version ] [ defaultVersion = lib.switch [ coq.coq-version ssreflect.version ] [
{ cases = [ (lib.versions.range "8.15" "8.19") lib.pred.true ]; out = "2.0.2"; } { cases = [ (lib.versions.range "8.15" "8.20") lib.pred.true ]; out = "2.0.4"; }
{ cases = [ (lib.versions.range "8.13" "8.17") lib.pred.true ]; out = "1.6.5"; } { cases = [ (lib.versions.range "8.13" "8.17") lib.pred.true ]; out = "1.6.5"; }
{ cases = [ "8.13" lib.pred.true ]; out = "1.5.0"; } { cases = [ "8.13" lib.pred.true ]; out = "1.5.0"; }
{ cases = [ "8.12" lib.pred.true ]; out = "1.4.0"; } { cases = [ "8.12" lib.pred.true ]; out = "1.4.0"; }
@ -18,6 +18,7 @@ let recent = lib.versions.isGe "8.7" coq.coq-version || coq.coq-version == "dev"
{ cases = [ "8.6" lib.pred.true ]; out = "20171102"; } { cases = [ "8.6" lib.pred.true ]; out = "20171102"; }
{ cases = [ "8.5" lib.pred.true ]; out = "20170512"; } { cases = [ "8.5" lib.pred.true ]; out = "20170512"; }
] null; ] null;
release."2.0.4".sha256 = "sha256-WD8B+n8gyGctHMO+M8201Ca3Uw8zCWYsOatSNGCf0/s=";
release."2.0.2".sha256 = "sha256-xxKkwDRjB8nUiXNhein1Ppn0DP5FZ13J90xUPAnQBbs="; release."2.0.2".sha256 = "sha256-xxKkwDRjB8nUiXNhein1Ppn0DP5FZ13J90xUPAnQBbs=";
release."2.0.1".sha256 = "sha256-gJc+9Or6tbqE00920Il4pnEvokRoiADX6CxP/Q0QZaY="; release."2.0.1".sha256 = "sha256-gJc+9Or6tbqE00920Il4pnEvokRoiADX6CxP/Q0QZaY=";
release."1.6.5".sha256 = "sha256-rcFyRDH8UbB9KVk10P5qjtPkWs04p78VNHkCq4mXr3U="; release."1.6.5".sha256 = "sha256-rcFyRDH8UbB9KVk10P5qjtPkWs04p78VNHkCq4mXr3U=";

View File

@ -6,9 +6,11 @@
repo = "coq-simple-io"; repo = "coq-simple-io";
inherit version; inherit version;
defaultVersion = with lib.versions; lib.switch coq.coq-version [ defaultVersion = with lib.versions; lib.switch coq.coq-version [
{ case = range "8.17" "8.20"; out = "1.10.0"; }
{ case = range "8.11" "8.19"; out = "1.8.0"; } { case = range "8.11" "8.19"; out = "1.8.0"; }
{ case = range "8.7" "8.13"; out = "1.3.0"; } { case = range "8.7" "8.13"; out = "1.3.0"; }
] null; ] null;
release."1.10.0".sha256 = "sha256-67cBhLvRMWLWBL7NXK1zZTQC4PtSKu9qtesU4SqKkOw=";
release."1.8.0".sha256 = "sha256-3ADNeXrBIpYRlfUW+LkLHUWV1w1HFrVc/TZISMuwvRY="; release."1.8.0".sha256 = "sha256-3ADNeXrBIpYRlfUW+LkLHUWV1w1HFrVc/TZISMuwvRY=";
release."1.7.0".sha256 = "sha256:1a1q9x2abx71hqvjdai3n12jxzd49mhf3nqqh3ya2ssl2lj609ci"; release."1.7.0".sha256 = "sha256:1a1q9x2abx71hqvjdai3n12jxzd49mhf3nqqh3ya2ssl2lj609ci";
release."1.3.0".sha256 = "1yp7ca36jyl9kz35ghxig45x6cd0bny2bpmy058359p94wc617ax"; release."1.3.0".sha256 = "1yp7ca36jyl9kz35ghxig45x6cd0bny2bpmy058359p94wc617ax";
@ -20,9 +22,7 @@
doCheck = true; doCheck = true;
checkTarget = "test"; checkTarget = "test";
useDuneifVersion = v: useDuneifVersion = v: (lib.versionAtLeast v "1.10.0" || v == "dev");
(lib.versionAtLeast v "1.8.0" || v == "dev")
&& (lib.versionAtLeast coq.version "8.20" || coq.version == "dev");
passthru.tests.HelloWorld = callPackage ./test.nix {}; passthru.tests.HelloWorld = callPackage ./test.nix {};

View File

@ -9,39 +9,36 @@
, ppxlib_0_15, ppx_deriving_0_15 , ppxlib_0_15, ppx_deriving_0_15
, coqPackages , coqPackages
, version ? if lib.versionAtLeast ocaml.version "4.08" then "1.18.1" , version ? if lib.versionAtLeast ocaml.version "4.08" then "1.18.1"
else if lib.versionAtLeast ocaml.version "4.07" then "1.15.2" else "1.14.1" else "1.15.2"
}: }:
let p5 = camlp5; in let p5 = camlp5; in
let camlp5 = p5.override { legacy = true; }; in let camlp5 = p5.override { legacy = true; }; in
let fetched = coqPackages.metaFetch ({ let fetched = coqPackages.metaFetch ({
release."1.19.2".sha256 = "sha256-7VTUbsFVoNT6srLwcAn5WNSsWC7cVUdphKRWBHHiH5M="; release."1.19.2".sha256 = "sha256-dBj5Ek7PWq/8Btq/dggJUqa8cUtfvbi6EWo/lJEDOU4=";
release."1.18.1".sha256 = "sha256-zgBJefQDe3JyCGbC0wvMcx/9iMVbftBJ43NPogkNeHY="; release."1.18.1".sha256 = "sha256-rrIv/mVC0Ez3nU7fpnzwduIC3tI6l73DjgAbv1gd2v0=";
release."1.17.0".sha256 = "sha256-DTxE8CvYl0et20pxueydI+WzraI6UPHMNvxyp2gU/+w="; release."1.17.0".sha256 = "sha256-J8FJBeaB+2HtHjrkgNzOZJngZ2AcYU+npL9Y1HNPnzo=";
release."1.16.5".sha256 = "sha256-tKX5/cVPoBeHiUe+qn7c5FIRYCwY0AAukN7vSd/Nz9A="; release."1.15.2".sha256 = "sha256-+sQYQiN3n+dlzXzi5opOjhkJZqpkNwlHZcUjaUM6+xQ=";
release."1.15.2".sha256 = "sha256-XgopNP83POFbMNyl2D+gY1rmqGg03o++Ngv3zJfCn2s="; release."1.15.0".sha256 = "sha256-vpQzbkDqJPCmaBmXcBnzlWGS7djW9wWv8xslkIlXgP0=";
release."1.15.0".sha256 = "sha256:1ngdc41sgyzyz3i3lkzjhnj66gza5h912virkh077dyv17ysb6ar"; release."1.13.7".sha256 = "sha256-0QbOEnrRCYA2mXDGRKe+QYCXSESLJvLzRW0Iq+/3P9Y=";
release."1.14.1".sha256 = "sha256-BZPVL8ymjrE9kVGyf6bpc+GA2spS5JBpkUtZi04nPis="; release."1.12.0".sha256 = "sha256-w4JzLZB8jcxw7nA7AfgU9jTZTr6IYUxPU5E2vNIFC4Q=";
release."1.13.7".sha256 = "10fnwz30bsvj7ii1vg4l1li5pd7n0qqmwj18snkdr5j9gk0apc1r"; release."1.11.4".sha256 = "sha256-dyzEpzokgffsF9lt+FZgUlcZEuAb70vGuHfGUtjZYIM=";
release."1.13.5".sha256 = "02a6r23mximrdvs6kgv6rp0r2dgk7zynbs99nn7lphw2c4189kka";
release."1.13.1".sha256 = "12a9nbdvg9gybpw63lx3nw5wnxfznpraprb0wj3l68v1w43xq044";
release."1.13.0".sha256 = "0dmzy058m1mkndv90byjaik6lzzfk3aaac7v84mpmkv6my23bygr";
release."1.12.0".sha256 = "1agisdnaq9wrw3r73xz14yrq3wx742i6j8i5icjagqk0ypmly2is";
release."1.11.4".sha256 = "1m0jk9swcs3jcrw5yyw5343v8mgax238cjb03s8gc4wipw1fn9f5";
releaseRev = v: "v${v}"; releaseRev = v: "v${v}";
releaseArtifact = v: if lib.versionAtLeast v "1.13.8"
then "elpi-${v}.tbz"
else "elpi-v${v}.tbz";
location = { domain = "github.com"; owner = "LPCIC"; repo = "elpi"; }; location = { domain = "github.com"; owner = "LPCIC"; repo = "elpi"; };
}) version; }) version;
in in
buildDunePackage rec { buildDunePackage {
pname = "elpi"; pname = "elpi";
inherit (fetched) version src; inherit (fetched) version src;
patches = lib.optional (version == "1.16.5") patches = lib.optional (version == "1.16.5")
./atd_2_10.patch; ./atd_2_10.patch;
minimalOCamlVersion = "4.04"; minimalOCamlVersion = "4.07";
duneVersion = "3";
# atdgen is both a library and executable # atdgen is both a library and executable
nativeBuildInputs = [ perl ] nativeBuildInputs = [ perl ]
@ -68,6 +65,6 @@ buildDunePackage rec {
}; };
postPatch = '' postPatch = ''
substituteInPlace elpi_REPL.ml --replace "tput cols" "${ncurses}/bin/tput cols" substituteInPlace elpi_REPL.ml --replace-warn "tput cols" "${ncurses}/bin/tput cols"
''; '';
} }

View File

@ -16,7 +16,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "aioautomower"; pname = "aioautomower";
version = "2024.9.0"; version = "2024.9.1";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.11"; disabled = pythonOlder "3.11";
@ -25,7 +25,7 @@ buildPythonPackage rec {
owner = "Thomas55555"; owner = "Thomas55555";
repo = "aioautomower"; repo = "aioautomower";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-M+RiO5XTiJ1Cpmf3wbQYzcjH/VAZUlLV9ZdWJCkF6HA="; hash = "sha256-MdsK+QP8YdMceTiNwhuf84KARIHCyn7/g6WKrDB6yCc=";
}; };
postPatch = '' postPatch = ''

View File

@ -1,59 +0,0 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
ipython-genutils,
jupyter-contrib-core,
jupyter-highlight-selected-word,
jupyter-nbextensions-configurator,
lxml,
nose,
pytestCheckHook,
notebook,
}:
buildPythonPackage rec {
pname = "jupyter-contrib-nbextensions";
version = "0.7.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "ipython-contrib";
repo = "jupyter_contrib_nbextensions";
rev = "refs/tags/${version}";
hash = "sha256-1o8tBfRw6jNcKfNE7xXrQaEhx+KOv7mLOruvuMDtJ1Q=";
};
propagatedBuildInputs = [
ipython-genutils
jupyter-contrib-core
jupyter-highlight-selected-word
jupyter-nbextensions-configurator
lxml
];
nativeCheckInputs = [
nose
pytestCheckHook
];
disabledTestPaths = [
# Thoses tests fail upstream because of nbconvert being too recent
# https://github.com/ipython-contrib/jupyter_contrib_nbextensions/issues/1606
"tests/test_exporters.py"
# Requires to run jupyter which is not feasible here
"tests/test_application.py"
];
pythonImportsCheck = [ "jupyter_contrib_nbextensions" ];
meta = with lib; {
description = "Collection of various notebook extensions for Jupyter";
homepage = "https://github.com/ipython-contrib/jupyter_contrib_nbextensions";
license = licenses.bsd3;
maintainers = with maintainers; [ GaetanLepage ];
# https://github.com/ipython-contrib/jupyter_contrib_nbextensions/issues/1647
broken = versionAtLeast notebook.version "7";
};
}

View File

@ -0,0 +1,32 @@
{
lib,
fetchPypi,
buildPythonPackage,
setuptools,
}:
buildPythonPackage rec {
pname = "latexrestricted";
version = "0.4.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-AMfDTruJKejDdXW98VkeeEwELql5566bsL1SutLDpso=";
};
build-system = [ setuptools ];
pythonImportsCheck = [ "latexrestricted" ];
# upstream has no tests
doCheck = false;
meta = {
homepage = "https://github.com/gpoore/latexrestricted";
description = "Python library for creating executables compatible with LaTeX restricted shell escape";
changelog = "https://github.com/gpoore/latexrestricted/blob/v${version}/CHANGELOG.md";
license = lib.licenses.lppl13c;
maintainers = with lib.maintainers; [ romildo ];
};
}

View File

@ -23,7 +23,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "mmengine"; pname = "mmengine";
version = "0.10.4"; version = "0.10.5";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -77,6 +77,14 @@ buildPythonPackage rec {
"tests/test_runner/test_activation_checkpointing.py" "tests/test_runner/test_activation_checkpointing.py"
# missing dependencies # missing dependencies
"tests/test_visualizer/test_vis_backend.py" "tests/test_visualizer/test_vis_backend.py"
# Tests are outdated (runTest instead of run_test)
"mmengine/testing/_internal"
"tests/test_dist/test_dist.py"
"tests/test_dist/test_utils.py"
"tests/test_hooks/test_sync_buffers_hook.py"
"tests/test_model/test_wrappers/test_model_wrapper.py"
"tests/test_optim/test_optimizer/test_optimizer.py"
"tests/test_optim/test_optimizer/test_optimizer_wrapper.py"
]; ];
disabledTests = [ disabledTests = [

View File

@ -11,14 +11,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "publicsuffixlist"; pname = "publicsuffixlist";
version = "1.0.2.20240918"; version = "1.0.2.20240920";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-6OBk3CwWX4Wlq8w4JQims5lTuIREpm2jCJmy/c1Z1rI="; hash = "sha256-LZDAepnKR2/BfU/grBE1Aw3wXwt9atAPu3dfh9KZ9tE=";
}; };
build-system = [ setuptools ]; build-system = [ setuptools ];

View File

@ -3,36 +3,43 @@
arrow, arrow,
buildPythonPackage, buildPythonPackage,
fetchFromGitHub, fetchFromGitHub,
pytest-cov-stub,
pytest-datafiles, pytest-datafiles,
pytest-vcr, pytest-vcr,
pytestCheckHook, pytestCheckHook,
python-box, python-box,
pythonOlder, pythonOlder,
responses,
requests, requests,
responses,
setuptools,
typing-extensions,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "restfly"; pname = "restfly";
version = "1.4.7"; version = "1.5.0";
format = "setuptools"; pyproject = true;
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "stevemcgrath"; owner = "stevemcgrath";
repo = pname; repo = "restfly";
rev = version; rev = "refs/tags/${version}";
hash = "sha256-PPXJHatJKve9fIjveVYRnTSIDHFmnSDWTnkgO91twJs="; hash = "sha256-Zdn/hUvAZ9TaAWyDpNiEiA9mYDbWmiXBUa+IV/g8n2M=";
}; };
propagatedBuildInputs = [ build-system = [ setuptools ];
requests
dependencies = [
arrow arrow
python-box python-box
requests
typing-extensions
]; ];
nativeCheckInputs = [ nativeCheckInputs = [
pytest-cov-stub
pytest-datafiles pytest-datafiles
pytest-vcr pytest-vcr
pytestCheckHook pytestCheckHook
@ -49,7 +56,8 @@ buildPythonPackage rec {
meta = with lib; { meta = with lib; {
description = "Python RESTfly API Library Framework"; description = "Python RESTfly API Library Framework";
homepage = "https://github.com/stevemcgrath/restfly"; homepage = "https://github.com/stevemcgrath/restfly";
license = with licenses; [ mit ]; changelog = "https://github.com/librestfly/restfly/blob/${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ fab ]; maintainers = with maintainers; [ fab ];
}; };
} }

View File

@ -21,7 +21,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "slack-sdk"; pname = "slack-sdk";
version = "3.33.0"; version = "3.33.1";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.6";
@ -30,7 +30,7 @@ buildPythonPackage rec {
owner = "slackapi"; owner = "slackapi";
repo = "python-slack-sdk"; repo = "python-slack-sdk";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-S41OyTyFjEfKvTlKwxHq7P/uzWreMIHimI6pECItTzo="; hash = "sha256-OcGzpYwa8Ouf1ojQS9KnqlL37EYCZo5yjNeXXrkd0B4=";
}; };
postPatch = '' postPatch = ''

View File

@ -8,22 +8,25 @@
numpy, numpy,
pytestCheckHook, pytestCheckHook,
pythonOlder, pythonOlder,
setuptools,
zarr, zarr,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "tifffile"; pname = "tifffile";
version = "2024.6.18"; version = "2024.9.20";
format = "setuptools"; pyproject = true;
disabled = pythonOlder "3.9"; disabled = pythonOlder "3.9";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-V+DSoDS8tih+oxVdhxZQjfrIZEOiV/ZQK1fuf4ozs7Y="; hash = "sha256-P7874vmVpwUaiuBaS+cMlvwHifIu1vHEEEyXPPaKZAs=";
}; };
propagatedBuildInputs = [ numpy ]; build-system = [ setuptools ];
dependencies = [ numpy ];
nativeCheckInputs = [ nativeCheckInputs = [
dask dask

View File

@ -19,7 +19,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "ufmt"; pname = "ufmt";
version = "2.7.2"; version = "2.7.3";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.8"; disabled = pythonOlder "3.8";
@ -28,7 +28,7 @@ buildPythonPackage rec {
owner = "omnilib"; owner = "omnilib";
repo = "ufmt"; repo = "ufmt";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-nWdGaW/RlU6kV2ORKpVuJ634QoemhZR2zdcOOO1W9Wk="; hash = "sha256-hXCOsetw5o3V9NCR0TOfYSFyfBnuOOZDMiUd/6ER9WU=";
}; };
build-system = [ flit-core ]; build-system = [ flit-core ];

View File

@ -57,7 +57,7 @@
grpcio, grpcio,
}: }:
let let
version = "0.15.10"; version = "0.15.13";
optional-dependencies = { optional-dependencies = {
huggingflace = [ huggingflace = [
langdetect langdetect
@ -100,7 +100,7 @@ buildPythonPackage {
owner = "Unstructured-IO"; owner = "Unstructured-IO";
repo = "unstructured"; repo = "unstructured";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-Wgv7IcyYuOICYZDmj/jdkpSHx53ZXCR06952GmVEGOY="; hash = "sha256-DbOuNh+p+4vsEO6AQUeMq25RTLm5Zn9FyzcTKJedbTM=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View File

@ -12,7 +12,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "weheat"; pname = "weheat";
version = "2024.09.10"; version = "2024.09.23";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -21,7 +21,7 @@ buildPythonPackage rec {
owner = "wefabricate"; owner = "wefabricate";
repo = "wh-python"; repo = "wh-python";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-D9m9IR5RTRphIgDX25izkbAHeLml9AYL6xdH46ryqaI="; hash = "sha256-egxc4gJaFIjbdvDVmenN61Rsg1NmlJSqxdG/7con9mU=";
}; };
pythonRelaxDeps = [ pythonRelaxDeps = [

View File

@ -1,11 +1,12 @@
{ lib {
, python3 lib,
, fetchFromGitHub python3,
, git fetchFromGitHub,
, testers git,
, aws-sam-cli testers,
, nix-update-script aws-sam-cli,
, enableTelemetry ? false nix-update-script,
enableTelemetry ? false,
}: }:
python3.pkgs.buildPythonApplication rec { python3.pkgs.buildPythonApplication rec {
@ -13,8 +14,6 @@ python3.pkgs.buildPythonApplication rec {
version = "1.120.0"; version = "1.120.0";
pyproject = true; pyproject = true;
disabled = python3.pythonOlder "3.8";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "aws"; owner = "aws";
repo = "aws-sam-cli"; repo = "aws-sam-cli";
@ -22,9 +21,7 @@ python3.pkgs.buildPythonApplication rec {
hash = "sha256-XFVh7e9ooIBhWRkVovPdrSuyosBMQ84PDRjV2o0x9ns="; hash = "sha256-XFVh7e9ooIBhWRkVovPdrSuyosBMQ84PDRjV2o0x9ns=";
}; };
build-system = with python3.pkgs; [ build-system = with python3.pkgs; [ setuptools ];
setuptools
];
pythonRelaxDeps = [ pythonRelaxDeps = [
"aws-lambda-builders" "aws-lambda-builders"
@ -43,44 +40,47 @@ python3.pkgs.buildPythonApplication rec {
"watchdog" "watchdog"
]; ];
dependencies = with python3.pkgs; [ dependencies =
aws-lambda-builders with python3.pkgs;
aws-sam-translator [
boto3 aws-lambda-builders
boto3-stubs aws-sam-translator
cfn-lint boto3
chevron boto3-stubs
click cfn-lint
cookiecutter chevron
dateparser click
docker cookiecutter
flask dateparser
jsonschema docker
pyopenssl flask
pyyaml jsonschema
requests pyopenssl
rich pyyaml
ruamel-yaml requests
tomlkit rich
typing-extensions ruamel-yaml
tzlocal tomlkit
watchdog typing-extensions
] ++ (with python3.pkgs.boto3-stubs.optional-dependencies; [ tzlocal
apigateway watchdog
cloudformation ]
ecr ++ (with python3.pkgs.boto3-stubs.optional-dependencies; [
iam apigateway
kinesis cloudformation
lambda ecr
s3 iam
schemas kinesis
secretsmanager lambda
signer s3
sqs schemas
stepfunctions secretsmanager
sts signer
xray sqs
]); stepfunctions
sts
xray
]);
postFixup = '' postFixup = ''
# Disable telemetry: https://github.com/aws/aws-sam-cli/issues/1272 # Disable telemetry: https://github.com/aws/aws-sam-cli/issues/1272
@ -92,6 +92,7 @@ python3.pkgs.buildPythonApplication rec {
nativeCheckInputs = with python3.pkgs; [ nativeCheckInputs = with python3.pkgs; [
filelock filelock
flaky flaky
jaraco-text
parameterized parameterized
psutil psutil
pytest-timeout pytest-timeout
@ -133,9 +134,7 @@ python3.pkgs.buildPythonApplication rec {
"test_import_should_succeed_for_a_defined_hidden_package_540_pkg_resources_py2_warn" "test_import_should_succeed_for_a_defined_hidden_package_540_pkg_resources_py2_warn"
]; ];
pythonImportsCheck = [ pythonImportsCheck = [ "samcli" ];
"samcli"
];
passthru = { passthru = {
tests.version = testers.testVersion { tests.version = testers.testVersion {
@ -143,7 +142,10 @@ python3.pkgs.buildPythonApplication rec {
command = "sam --version"; command = "sam --version";
}; };
updateScript = nix-update-script { updateScript = nix-update-script {
extraArgs = [ "--version-regex" "^v([0-9.]+)$" ]; extraArgs = [
"--version-regex"
"^v([0-9.]+)$"
];
}; };
}; };
@ -155,6 +157,9 @@ python3.pkgs.buildPythonApplication rec {
changelog = "https://github.com/aws/aws-sam-cli/releases/tag/v${version}"; changelog = "https://github.com/aws/aws-sam-cli/releases/tag/v${version}";
license = licenses.asl20; license = licenses.asl20;
mainProgram = "sam"; mainProgram = "sam";
maintainers = with maintainers; [ lo1tuma anthonyroussel ]; maintainers = with maintainers; [
lo1tuma
anthonyroussel
];
}; };
} }

View File

@ -19,16 +19,16 @@ let
}; };
in buildNpmPackage' rec { in buildNpmPackage' rec {
pname = "balena-cli"; pname = "balena-cli";
version = "19.0.3"; version = "19.0.12";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "balena-io"; owner = "balena-io";
repo = "balena-cli"; repo = "balena-cli";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-6odzj7/twhSJFxX2kbKbEOjzyZHjrg6Dd8d3LDtSzNU="; hash = "sha256-/C83s66vTq60FLfKPb27RBGfBC295qs5WWej9Yz4Cak=";
}; };
npmDepsHash = "sha256-IWd3E6bjy5cQ4VsDV/zHyehxxINUsDEy3pKVfSWVpKU="; npmDepsHash = "sha256-CdbJqMbBYzy9TfhlXVMJgGr3pLVMX4naRs/rGz96bYo=";
postPatch = '' postPatch = ''
ln -s npm-shrinkwrap.json package-lock.json ln -s npm-shrinkwrap.json package-lock.json

View File

@ -8,13 +8,13 @@
, buildNpmPackage , buildNpmPackage
}: }:
let let
version = "unstable-2023-11-23"; version = "0.2.4";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "ekzhang"; owner = "ekzhang";
repo = "sshx"; repo = "sshx";
rev = "2677f7e1fa3b369132cc7f27f6028a04b92ba5cf"; rev = "refs/tags/v${version}";
hash = "sha256-9fo8hNUzJr4gse0J2tw7j+alqE82+y8McADzTkxryWk="; hash = "sha256-RIQRX4sXlMl73Opi6hK2WD/erdAMNrm40IasHasikuw=";
}; };
mkSshxPackage = { pname, cargoHash, ... }@args: mkSshxPackage = { pname, cargoHash, ... }@args:
@ -26,14 +26,17 @@ let
cargoHash; cargoHash;
nativeBuildInputs = [ protobuf ]; nativeBuildInputs = [ protobuf ];
buildInputs = lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security; buildInputs = lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security;
cargoBuildFlags = [ "--package" pname ]; cargoBuildFlags = [ "--package" pname ];
cargoTestFlags = cargoBuildFlags; cargoTestFlags = cargoBuildFlags;
meta = { meta = {
description = "Fast, collaborative live terminal sharing over the web"; description = "Fast, collaborative live terminal sharing over the web";
homepage = "https://github.com/ekzhang/sshx"; homepage = "https://github.com/ekzhang/sshx";
changelog = "https://github.com/ekzhang/sshx/releases/tag/v${version}";
license = lib.licenses.mit; license = lib.licenses.mit;
maintainers = with lib.maintainers; [ pinpox kranzes ]; maintainers = with lib.maintainers; [ pinpox kranzes ];
mainProgram = pname; mainProgram = pname;
@ -43,17 +46,17 @@ in
{ {
sshx = mkSshxPackage { sshx = mkSshxPackage {
pname = "sshx"; pname = "sshx";
cargoHash = "sha256-dA5Aen/qANW8si75pj/RsBknvOo3KDyU5UISAmmcfRE="; cargoHash = "sha256-PMSKhlHSjXKh/Jxvl2z+c1zDDyuVPzQapvdCdcuaFYc=";
}; };
sshx-server = mkSshxPackage rec { sshx-server = mkSshxPackage rec {
pname = "sshx-server"; pname = "sshx-server";
cargoHash = "sha256-1GRWCMXsOzqvORgtwfuywV4wLyX3r4nURhM3Dl5V9Ss="; cargoHash = "sha256-ySsTjNoI/nuz2qtZ4M2Fd9zy239+E61hUCq1r/ahgsA=";
postPatch = '' postPatch = ''
substituteInPlace crates/sshx-server/src/web.rs \ substituteInPlace crates/sshx-server/src/web.rs \
--replace 'ServeDir::new("build")' 'ServeDir::new("${passthru.web.outPath}")' \ --replace-fail 'ServeDir::new("build")' 'ServeDir::new("${passthru.web.outPath}")' \
--replace 'ServeFile::new("build/spa.html")' 'ServeFile::new("${passthru.web.outPath}/spa.html")' --replace-fail 'ServeFile::new("build/spa.html")' 'ServeFile::new("${passthru.web.outPath}/spa.html")'
''; '';
passthru.web = buildNpmPackage { passthru.web = buildNpmPackage {
@ -65,7 +68,7 @@ in
postPatch = '' postPatch = ''
substituteInPlace vite.config.ts \ substituteInPlace vite.config.ts \
--replace 'execSync("git rev-parse --short HEAD").toString().trim()' '"${src.rev}"' --replace-fail 'execSync("git rev-parse --short HEAD").toString().trim()' '"${src.rev}"'
''; '';
npmDepsHash = "sha256-bKePCxo6+n0EG+4tbbMimPedJ0Hu1O8yZsgspmhobOs="; npmDepsHash = "sha256-bKePCxo6+n0EG+4tbbMimPedJ0Hu1O8yZsgspmhobOs=";

View File

@ -2,13 +2,13 @@
buildGoModule rec { buildGoModule rec {
pname = "minio-client"; pname = "minio-client";
version = "2024-09-09T07-53-10Z"; version = "2024-09-16T17-43-14Z";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "minio"; owner = "minio";
repo = "mc"; repo = "mc";
rev = "RELEASE.${version}"; rev = "RELEASE.${version}";
sha256 = "sha256-K0FuG7c8sD4ingJH/al7TBoTCHKGad7I2RYheTjqAR0="; sha256 = "sha256-j9NEeTUP/pkEhywhNasQQzTwUBcUwq+KVEGGB1hzVw0=";
}; };
vendorHash = "sha256-KNnYxE3kt/eemnhsRf29SZX0Q+ECzdMFVgcmd7uCsyY="; vendorHash = "sha256-KNnYxE3kt/eemnhsRf29SZX0Q+ECzdMFVgcmd7uCsyY=";

View File

@ -6,14 +6,14 @@
python3.pkgs.buildPythonApplication rec { python3.pkgs.buildPythonApplication rec {
pname = "ldeep"; pname = "ldeep";
version = "1.0.65"; version = "1.0.66";
pyproject = true; pyproject = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "franc-pentest"; owner = "franc-pentest";
repo = "ldeep"; repo = "ldeep";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-SbsHc6gSHPmtDWHR+fJAcvWZMxae/Ufc4XB6cvoPTbE="; hash = "sha256-zXXTeuEgcGaMkJGWwWQ6DpKPEZp6fjy5i4jRr4AvApQ=";
}; };
pythonRelaxDeps = [ pythonRelaxDeps = [

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchzip { lib, stdenv, fetchurl, fetchzip
, callPackage, newScope, recurseIntoAttrs, ocamlPackages_4_05, ocamlPackages_4_09 , callPackage, newScope, recurseIntoAttrs, ocamlPackages_4_05, ocamlPackages_4_09
, ocamlPackages_4_10, ocamlPackages_4_12, ocamlPackages_4_14 , ocamlPackages_4_10, ocamlPackages_4_12, ocamlPackages_4_14
, fetchpatch, makeWrapper, coq2html , fetchpatch, makeWrapper, coq2html
@ -11,7 +11,7 @@ let
coqPackages = self // { __attrsFailEvaluation = true; recurseForDerivations = false; }; coqPackages = self // { __attrsFailEvaluation = true; recurseForDerivations = false; };
metaFetch = import ../build-support/coq/meta-fetch/default.nix metaFetch = import ../build-support/coq/meta-fetch/default.nix
{inherit lib stdenv fetchzip; }; {inherit lib stdenv fetchzip fetchurl; };
mkCoqDerivation = lib.makeOverridable (callPackage ../build-support/coq {}); mkCoqDerivation = lib.makeOverridable (callPackage ../build-support/coq {});
contribs = recurseIntoAttrs contribs = recurseIntoAttrs

View File

@ -12152,6 +12152,7 @@ with self; {
}; };
buildInputs = [ ModuleBuildTiny TestNeeds ]; buildInputs = [ ModuleBuildTiny TestNeeds ];
propagatedBuildInputs = [ HTTPMessage ]; propagatedBuildInputs = [ HTTPMessage ];
__darwinAllowLocalNetworking = true;
meta = { meta = {
description = "Simple http server class"; description = "Simple http server class";
homepage = "https://github.com/libwww-perl/HTTP-Daemon"; homepage = "https://github.com/libwww-perl/HTTP-Daemon";

View File

@ -281,6 +281,7 @@ mapAliases ({
jsonschema_3 = throw "jsonschema 3 is neither the latest version nor needed inside nixpkgs anymore"; # added 2023-06-28 jsonschema_3 = throw "jsonschema 3 is neither the latest version nor needed inside nixpkgs anymore"; # added 2023-06-28
jupyter_client = jupyter-client; # added 2021-10-15 jupyter_client = jupyter-client; # added 2021-10-15
jupyter_console = jupyter-console; # added 2023-07-31 jupyter_console = jupyter-console; # added 2023-07-31
jupyter-contrib-nbextensions = throw "jupyter-contrib-nbextensions has been removed, as it does not work with Jupyter Notebook 7"; # added 2024-09-22
jupyter_core = jupyter-core; # added 2023-01-05 jupyter_core = jupyter-core; # added 2023-01-05
jupyter_server = jupyter-server; # added 2023-01-05 jupyter_server = jupyter-server; # added 2023-01-05
jupyter-server-ydoc = jupyter-collaboration; # added 2023-07-18 jupyter-server-ydoc = jupyter-collaboration; # added 2023-07-18

View File

@ -6546,8 +6546,6 @@ self: super: with self; {
jupyter-contrib-core = callPackage ../development/python-modules/jupyter-contrib-core { }; jupyter-contrib-core = callPackage ../development/python-modules/jupyter-contrib-core { };
jupyter-contrib-nbextensions = callPackage ../development/python-modules/jupyter-contrib-nbextensions { };
jupyter-console = callPackage ../development/python-modules/jupyter-console { }; jupyter-console = callPackage ../development/python-modules/jupyter-console { };
jupyter-core = callPackage ../development/python-modules/jupyter-core { }; jupyter-core = callPackage ../development/python-modules/jupyter-core { };
@ -6880,6 +6878,8 @@ self: super: with self; {
latexify-py = callPackage ../development/python-modules/latexify-py { }; latexify-py = callPackage ../development/python-modules/latexify-py { };
latexrestricted = callPackage ../development/python-modules/latexrestricted { };
launchpadlib = callPackage ../development/python-modules/launchpadlib { }; launchpadlib = callPackage ../development/python-modules/launchpadlib { };
laundrify-aio = callPackage ../development/python-modules/laundrify-aio { }; laundrify-aio = callPackage ../development/python-modules/laundrify-aio { };