Merge master into staging-next
This commit is contained in:
@@ -931,7 +931,6 @@ with lib.maintainers; {
|
||||
wdz = {
|
||||
members = [
|
||||
n0emis
|
||||
netali
|
||||
vidister
|
||||
johannwagner
|
||||
yuka
|
||||
|
||||
@@ -351,6 +351,8 @@
|
||||
|
||||
- `mkDerivation` now rejects MD5 hashes.
|
||||
|
||||
- The `junicode` font package has been updated to [major version 2](https://github.com/psb1558/Junicode-font/releases/tag/v2.001), which is now a font family. In particular, plain `Junicode.ttf` no longer exists. In addition, TrueType font files are now placed in `font/truetype` instead of `font/junicode-ttf`; this change does not affect use via `fonts.packages` NixOS option.
|
||||
|
||||
## Other Notable Changes {#sec-release-23.11-notable-changes}
|
||||
|
||||
- The Cinnamon module now enables XDG desktop integration by default. If you are experiencing collisions related to xdg-desktop-portal-gtk you can safely remove `xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk ];` from your NixOS configuration.
|
||||
|
||||
@@ -289,6 +289,7 @@ in {
|
||||
firewall-nftables = handleTest ./firewall.nix { nftables = true; };
|
||||
fish = handleTest ./fish.nix {};
|
||||
flannel = handleTestOn ["x86_64-linux"] ./flannel.nix {};
|
||||
floorp = handleTest ./firefox.nix { firefoxPackage = pkgs.floorp; };
|
||||
fluentd = handleTest ./fluentd.nix {};
|
||||
fluidd = handleTest ./fluidd.nix {};
|
||||
fontconfig-default-fonts = handleTest ./fontconfig-default-fonts.nix {};
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
}:
|
||||
|
||||
mkDerivation rec {
|
||||
version = "0.9.11";
|
||||
version = "0.9.12";
|
||||
pname = "qjackctl";
|
||||
|
||||
# some dependencies such as killall have to be installed additionally
|
||||
@@ -14,7 +14,7 @@ mkDerivation rec {
|
||||
owner = "rncbc";
|
||||
repo = "qjackctl";
|
||||
rev = "${pname}_${lib.replaceStrings ["."] ["_"] version}";
|
||||
sha256 = "sha256-dZW9bZ17O/1DxBr5faYSE+YkSuz7NIJSc1vqxzOOxyg=";
|
||||
sha256 = "sha256-S8fEg8joFHgk6MKWeSxPyTM8O6Ffx5NG90OabPPDs7s=";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{ pname
|
||||
, version
|
||||
, packageVersion ? version
|
||||
, meta
|
||||
, updateScript ? null
|
||||
, binaryName ? "firefox"
|
||||
@@ -206,7 +207,7 @@ in
|
||||
|
||||
buildStdenv.mkDerivation {
|
||||
pname = "${pname}-unwrapped";
|
||||
inherit version;
|
||||
version = packageVersion;
|
||||
|
||||
inherit src unpackPhase meta;
|
||||
|
||||
@@ -557,7 +558,6 @@ buildStdenv.mkDerivation {
|
||||
passthru = {
|
||||
inherit application extraPatches;
|
||||
inherit updateScript;
|
||||
inherit version;
|
||||
inherit alsaSupport;
|
||||
inherit binaryName;
|
||||
inherit jackSupport;
|
||||
@@ -569,6 +569,7 @@ buildStdenv.mkDerivation {
|
||||
inherit tests;
|
||||
inherit gtk3;
|
||||
inherit wasiSysRoot;
|
||||
version = packageVersion;
|
||||
} // extraPassthru;
|
||||
|
||||
hardeningDisable = [ "format" ]; # -Werror=format-security
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
{ stdenv
|
||||
, lib
|
||||
, fetchFromGitHub
|
||||
, buildMozillaMach
|
||||
, nixosTests
|
||||
}:
|
||||
|
||||
((buildMozillaMach rec {
|
||||
pname = "floorp";
|
||||
packageVersion = "11.5.0";
|
||||
applicationName = "Floorp";
|
||||
binaryName = "floorp";
|
||||
version = "155.4.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Floorp-Projects";
|
||||
repo = "Floorp";
|
||||
fetchSubmodules = true;
|
||||
rev = "v${packageVersion}";
|
||||
hash = "sha256-adK3LAu3cDh6d+GvtnkWmSnxansnSZoIgtA9TAqIMyA=";
|
||||
};
|
||||
|
||||
extraConfigureFlags = [
|
||||
"--with-app-name=${pname}"
|
||||
"--with-app-basename=${applicationName}"
|
||||
"--with-branding=browser/branding/official"
|
||||
"--with-distribution-id=app.floorp.Floorp"
|
||||
"--with-unsigned-addon-scopes=app,system"
|
||||
"--allow-addon-sideload"
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "A fork of Firefox, focused on keeping the Open, Private and Sustainable Web alive, built in Japan";
|
||||
homepage = "https://floorp.app/";
|
||||
maintainers = with lib.maintainers; [ christoph-heiss ];
|
||||
platforms = lib.platforms.unix;
|
||||
badPlatforms = lib.platforms.darwin;
|
||||
broken = stdenv.buildPlatform.is32bit; # since Firefox 60, build on 32-bit platforms fails with "out of memory".
|
||||
# not in `badPlatforms` because cross-compilation on 64-bit machine might work.
|
||||
maxSilent = 14400; # 4h, double the default of 7200s (c.f. #129212, #129115)
|
||||
license = lib.licenses.mpl20;
|
||||
};
|
||||
tests = [ nixosTests.floorp ];
|
||||
}).override {
|
||||
privacySupport = true;
|
||||
enableOfficialBranding = false;
|
||||
}).overrideAttrs (prev: {
|
||||
MOZ_REQUIRE_SIGNING = "";
|
||||
})
|
||||
@@ -36,14 +36,14 @@ let
|
||||
in
|
||||
assert lib.all (p: p.enabled -> ! (builtins.elem null p.buildInputs)) plugins;
|
||||
stdenv.mkDerivation rec {
|
||||
version = "4.1.0";
|
||||
version = "4.1.1";
|
||||
pname = "weechat";
|
||||
|
||||
hardeningEnable = [ "pie" ];
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://weechat.org/files/src/weechat-${version}.tar.xz";
|
||||
hash = "sha256-AwSC5bjw9pxr/Upja2+m12tkqeweF58auqNbGrONHhA=";
|
||||
hash = "sha256-d0I4YU2OY+TT1ac6bLZA7Hb+BsyYK4eoySNlFXkndnU=";
|
||||
};
|
||||
|
||||
# Why is this needed? https://github.com/weechat/weechat/issues/2031
|
||||
@@ -90,10 +90,10 @@ let
|
||||
meta = {
|
||||
homepage = "https://weechat.org/";
|
||||
changelog = "https://weechat.org/files/doc/weechat/ChangeLog-${version}.html";
|
||||
description = "A fast, light and extensible chat client";
|
||||
description = "Fast, light and extensible chat client";
|
||||
longDescription = ''
|
||||
You can find more documentation as to how to customize this package
|
||||
(eg. adding python modules for scripts that would require them, etc.)
|
||||
(e.g. adding python modules for scripts that would require them, etc.)
|
||||
on https://nixos.org/nixpkgs/manual/#sec-weechat .
|
||||
'';
|
||||
license = lib.licenses.gpl3;
|
||||
|
||||
@@ -93,5 +93,13 @@ stdenv.mkDerivation rec {
|
||||
# "CPU not supported" errors on AArch64
|
||||
platforms = [ "i686-linux" "x86_64-linux" ];
|
||||
license = licenses.gpl2;
|
||||
# Downstream we experience:
|
||||
#
|
||||
# https://github.com/NixOS/nixpkgs/issues/239424
|
||||
#
|
||||
# Upstream doesn't have a contact page / Bug tracker, so it's not easy to
|
||||
# notify them about it. Using firejail might help, as some commented
|
||||
# downstream.
|
||||
broken = true;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
{ fetchFromSourcehut
|
||||
, just
|
||||
, lib
|
||||
, nix-update-script
|
||||
, rustPlatform
|
||||
, scdoc
|
||||
}:
|
||||
let
|
||||
version = "0.7.0";
|
||||
in
|
||||
rustPlatform.buildRustPackage {
|
||||
pname = "aba";
|
||||
inherit version;
|
||||
|
||||
src = fetchFromSourcehut {
|
||||
owner = "~onemoresuza";
|
||||
repo = "aba";
|
||||
rev = version;
|
||||
hash = "sha256-YPE5HYa90BcNy5jdYbzkT81KavJcbSeGrsWRILnIiEE=";
|
||||
domain = "sr.ht";
|
||||
};
|
||||
|
||||
cargoSha256 = "sha256-wzI+UMcVeFQNFlWDkyxk8tjpU7beNRKoPYbid8b15/Q=";
|
||||
|
||||
nativeBuildInputs = [
|
||||
just
|
||||
scdoc
|
||||
];
|
||||
|
||||
# There are no tests
|
||||
doCheck = false;
|
||||
|
||||
dontUseJustBuild = true;
|
||||
dontUseJustCheck = true;
|
||||
dontUseJustInstall = true;
|
||||
|
||||
postInstall = ''
|
||||
just --set PREFIX $out install-doc
|
||||
'';
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = {
|
||||
description = "An address book for aerc";
|
||||
homepage = "https://sr.ht/~onemoresuza/aba/";
|
||||
changelog = "https://git.sr.ht/~onemoresuza/aba/tree/main/item/CHANGELOG.md";
|
||||
downloadPage = "https://git.sr.ht/~onemoresuza/aba/refs/${version}";
|
||||
maintainers = with lib.maintainers; [ onemoresuza ];
|
||||
license = lib.licenses.isc;
|
||||
platforms = lib.platforms.unix;
|
||||
mainProgram = "aba";
|
||||
};
|
||||
}
|
||||
@@ -6,16 +6,16 @@
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "eksctl";
|
||||
version = "0.161.0";
|
||||
version = "0.163.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "weaveworks";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
hash = "sha256-hlHwzZ0U3G6IGJjeHZPlO2+thJ1UKxHhRb28EQ39pZk=";
|
||||
hash = "sha256-rpyLjoHMSgEHTILeEQpUKD7BOJHn/uT3GK6Fquirzdk=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-9rT2zkgwxDQlxTWF1zHpYOOI7uK5Q/GYFWIrKgP2GaQ=";
|
||||
vendorHash = "sha256-NOhssVWEkvoXpmnsCVVT7Li0ePGWDSGIlB2MyFtMnpI=";
|
||||
|
||||
doCheck = false;
|
||||
|
||||
|
||||
@@ -1,22 +1,24 @@
|
||||
{ lib, stdenvNoCC, fetchFromGitHub }:
|
||||
{ lib, stdenvNoCC, fetchzip }:
|
||||
|
||||
stdenvNoCC.mkDerivation {
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
pname = "junicode";
|
||||
version = "1.003";
|
||||
version = "2.200";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "psb1558";
|
||||
repo = "Junicode-font";
|
||||
rev = "55d816d91a5e19795d9b66edec478379ee2b9ddb";
|
||||
hash = "sha256-eTiMgI8prnpR4H6sqKRaB3Gcnt4C5QWZalRajWW49G4=";
|
||||
src = fetchzip {
|
||||
url = "https://github.com/psb1558/Junicode-font/releases/download/v${version}/Junicode_${version}.zip";
|
||||
hash = "sha256-2K+zPq6Bjg+hZQhQrWWm1bxHVfwwRdsV7EseRGBnpUw=";
|
||||
};
|
||||
|
||||
outputs = [ "out" "doc" ];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
local out_ttf=$out/share/fonts/junicode-ttf
|
||||
mkdir -p $out_ttf
|
||||
cp legacy/*.ttf $out_ttf
|
||||
install -Dm 444 -t $out/share/fonts/truetype TTF/*.ttf VAR/*.ttf
|
||||
install -Dm 444 -t $out/share/fonts/opentype OTF/*.otf
|
||||
install -Dm 444 -t $out/share/fonts/woff2 WOFF2/*.woff2
|
||||
|
||||
install -Dm 444 -t $doc/share/doc/${pname}-${version} docs/*.pdf
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
@@ -14,12 +14,12 @@ let
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "circt";
|
||||
version = "1.56.1";
|
||||
version = "1.58.0";
|
||||
src = fetchFromGitHub {
|
||||
owner = "llvm";
|
||||
repo = "circt";
|
||||
rev = "firtool-${version}";
|
||||
sha256 = "sha256-MOwjfSUd5Dvlvek763AMZWK29dUoc2fblb5qtByTqLA=";
|
||||
sha256 = "sha256-WX3eZl9/N8K4VzBOLHZrxwEI7V+AxOnSA0XYKFHlqcE=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
{ lib, stdenv, fetchurl, fetchpatch, writeText, sbclBootstrap, zstd
|
||||
, sbclBootstrapHost ? "${sbclBootstrap}/bin/sbcl --disable-debugger --no-userinit --no-sysinit"
|
||||
{ lib, stdenv, callPackage, clisp, fetchurl, fetchpatch, writeText, zstd
|
||||
, threadSupport ? (stdenv.hostPlatform.isx86 || "aarch64-linux" == stdenv.hostPlatform.system || "aarch64-darwin" == stdenv.hostPlatform.system)
|
||||
, linkableRuntime ? stdenv.hostPlatform.isx86
|
||||
, disableImmobileSpace ? false
|
||||
@@ -26,8 +25,48 @@ let
|
||||
sha256 = "sha256-fSiakSMgIgKL8BKJAMMr8A5MVDDDLyivBZTIpZKphlQ=";
|
||||
};
|
||||
};
|
||||
# Collection of pre-built SBCL binaries for platforms that need them for
|
||||
# bootstrapping. Ideally these are to be avoided. If CLISP (or any other
|
||||
# non-binary-distributed Lisp) can run on any of these systems, that entry
|
||||
# should be removed from this list.
|
||||
bootstrapBinaries = rec {
|
||||
# This build segfaults using CLISP.
|
||||
x86_64-darwin = {
|
||||
version = "2.2.9";
|
||||
system = "x86-64-darwin";
|
||||
sha256 = "sha256-b1BLkoLIOELAYBYA9eBmMgm1OxMxJewzNP96C9ADfKY=";
|
||||
};
|
||||
i686-linux = {
|
||||
version = "1.2.7";
|
||||
system = "x86-linux";
|
||||
sha256 = "07f3bz4br280qvn85i088vpzj9wcz8wmwrf665ypqx181pz2ai3j";
|
||||
};
|
||||
armv7l-linux = {
|
||||
version = "1.2.14";
|
||||
system = "armhf-linux";
|
||||
sha256 = "0sp5445rbvms6qvzhld0kwwvydw51vq5iaf4kdqsf2d9jvaz3yx5";
|
||||
};
|
||||
armv6l-linux = armv7l-linux;
|
||||
x86_64-freebsd = {
|
||||
version = "1.2.7";
|
||||
system = "x86-64-freebsd";
|
||||
sha256 = "14k42xiqd2rrim4pd5k5pjcrpkac09qnpynha8j1v4jngrvmw7y6";
|
||||
};
|
||||
x86_64-solaris = {
|
||||
version = "1.2.7";
|
||||
system = "x86-64-solaris";
|
||||
sha256 = "05c12fmac4ha72k1ckl6i780rckd7jh4g5s5hiic7fjxnf1kx8d0";
|
||||
};
|
||||
};
|
||||
sbclBootstrap = callPackage ./bootstrap.nix {
|
||||
cfg = bootstrapBinaries.${stdenv.hostPlatform.system};
|
||||
};
|
||||
bootstrapLisp =
|
||||
if (builtins.hasAttr stdenv.hostPlatform.system bootstrapBinaries)
|
||||
then "${sbclBootstrap}/bin/sbcl --disable-debugger --no-userinit --no-sysinit"
|
||||
else "${clisp}/bin/clisp -E UTF-8 --silent -norc";
|
||||
|
||||
in with versionMap.${version};
|
||||
in
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "sbcl";
|
||||
@@ -35,7 +74,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/project/sbcl/sbcl/${version}/${pname}-${version}-source.tar.bz2";
|
||||
inherit sha256;
|
||||
inherit (versionMap.${version}) sha256;
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ texinfo ];
|
||||
@@ -108,7 +147,7 @@ stdenv.mkDerivation rec {
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
|
||||
sh make.sh --prefix=$out --xc-host="${sbclBootstrapHost}" ${
|
||||
sh make.sh --prefix=$out --xc-host="${bootstrapLisp}" ${
|
||||
lib.concatStringsSep " "
|
||||
(builtins.map (x: "--with-${x}") enableFeatures ++
|
||||
builtins.map (x: "--without-${x}") disableFeatures)
|
||||
@@ -142,5 +181,17 @@ stdenv.mkDerivation rec {
|
||||
}
|
||||
'');
|
||||
|
||||
meta = sbclBootstrap.meta;
|
||||
meta = with lib; {
|
||||
description = "Lisp compiler";
|
||||
homepage = "https://sbcl.org";
|
||||
license = licenses.publicDomain; # and FreeBSD
|
||||
maintainers = lib.teams.lisp.members;
|
||||
platforms = attrNames bootstrapBinaries ++ [
|
||||
# These aren’t bootstrapped using the binary distribution but compiled
|
||||
# using a separate (lisp) host
|
||||
"x86_64-linux"
|
||||
"aarch64-darwin"
|
||||
"aarch64-linux"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,59 +1,12 @@
|
||||
{ lib, stdenv, fetchurl, makeWrapper }:
|
||||
{ lib, stdenv, fetchurl, makeWrapper, cfg }:
|
||||
|
||||
let
|
||||
options = rec {
|
||||
aarch64-darwin = {
|
||||
version = "2.1.2";
|
||||
system = "arm64-darwin";
|
||||
sha256 = "sha256-H0ALigXcWIypdA+fTf7jERscwbb7QIAfcoxCtGDh0RU=";
|
||||
};
|
||||
x86_64-darwin = {
|
||||
version = "2.2.9";
|
||||
system = "x86-64-darwin";
|
||||
sha256 = "sha256-b1BLkoLIOELAYBYA9eBmMgm1OxMxJewzNP96C9ADfKY=";
|
||||
};
|
||||
x86_64-linux = {
|
||||
version = "1.3.16";
|
||||
system = "x86-64-linux";
|
||||
sha256 = "0sq2dylwwyqfwkbdvcgqwz3vay9v895zpb0fyzsiwy31d1x9pr2s";
|
||||
};
|
||||
i686-linux = {
|
||||
version = "1.2.7";
|
||||
system = "x86-linux";
|
||||
sha256 = "07f3bz4br280qvn85i088vpzj9wcz8wmwrf665ypqx181pz2ai3j";
|
||||
};
|
||||
aarch64-linux = {
|
||||
version = "1.3.16";
|
||||
system = "arm64-linux";
|
||||
sha256 = "0q1brz9c49xgdljzfx8rpxxnlwhadxkcy5kg0mcd9wnxygind1cl";
|
||||
};
|
||||
armv7l-linux = {
|
||||
version = "1.2.14";
|
||||
system = "armhf-linux";
|
||||
sha256 = "0sp5445rbvms6qvzhld0kwwvydw51vq5iaf4kdqsf2d9jvaz3yx5";
|
||||
};
|
||||
armv6l-linux = armv7l-linux;
|
||||
x86_64-freebsd = {
|
||||
version = "1.2.7";
|
||||
system = "x86-64-freebsd";
|
||||
sha256 = "14k42xiqd2rrim4pd5k5pjcrpkac09qnpynha8j1v4jngrvmw7y6";
|
||||
};
|
||||
x86_64-solaris = {
|
||||
version = "1.2.7";
|
||||
system = "x86-64-solaris";
|
||||
sha256 = "05c12fmac4ha72k1ckl6i780rckd7jh4g5s5hiic7fjxnf1kx8d0";
|
||||
};
|
||||
};
|
||||
cfg = options.${stdenv.hostPlatform.system};
|
||||
in
|
||||
assert builtins.hasAttr stdenv.hostPlatform.system options;
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "sbcl-bootstrap";
|
||||
version = cfg.version;
|
||||
inherit (cfg) version;
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/project/sbcl/sbcl/${version}/sbcl-${version}-${cfg.system}-binary.tar.bz2";
|
||||
sha256 = cfg.sha256;
|
||||
inherit (cfg) sha256;
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
@@ -73,12 +26,4 @@ stdenv.mkDerivation rec {
|
||||
postFixup = lib.optionalString (!stdenv.isAarch32 && stdenv.isLinux) ''
|
||||
patchelf --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) $out/share/sbcl/sbcl
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Lisp compiler";
|
||||
homepage = "http://www.sbcl.org";
|
||||
license = licenses.publicDomain; # and FreeBSD
|
||||
maintainers = lib.teams.lisp.members;
|
||||
platforms = attrNames options;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
let
|
||||
base = callPackage ./generic.nix (_args // {
|
||||
version = "8.1.24";
|
||||
hash = "sha256-sK5YBKmtU6fijQoyYpSV+Bb5NbEIMMcfTsFYJxhac8k=";
|
||||
version = "8.1.25";
|
||||
hash = "sha256-qGqIwYQMG8gyvP0vvsO4oZQsgxTaXf9T8J+cmNDBLoo=";
|
||||
});
|
||||
|
||||
in
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
let
|
||||
base = callPackage ./generic.nix (_args // {
|
||||
version = "8.2.11";
|
||||
hash = "sha256-OBktrv+r9K9sQnvxesH4JWXZx1IuDb0yIVFilEQ0sos=";
|
||||
version = "8.2.12";
|
||||
hash = "sha256-cEMl9WsbTBf5+VHh/+9cZOFIiWBT804mJhUsuqLwWJM=";
|
||||
});
|
||||
|
||||
in
|
||||
|
||||
@@ -2,12 +2,12 @@
|
||||
|
||||
let
|
||||
base = (callPackage ./generic.nix (_args // {
|
||||
version = "8.3.0RC4";
|
||||
version = "8.3.0RC5";
|
||||
hash = null;
|
||||
})).overrideAttrs (oldAttrs: {
|
||||
src = fetchurl {
|
||||
url = "https://downloads.php.net/~eric/php-8.3.0RC4.tar.xz";
|
||||
hash = "sha256-i02aivxsRIRo5ZFrzKCGAOXffvbhPiWnMFEGqQMr5h0=";
|
||||
url = "https://downloads.php.net/~jakub/php-8.3.0RC5.tar.xz";
|
||||
hash = "sha256-I42ded2tZO5ZQ+iU5DeNKjT+mNNoowew8gNOYDeB5aY=";
|
||||
};
|
||||
});
|
||||
in
|
||||
|
||||
@@ -25,13 +25,13 @@ let
|
||||
|
||||
in stdenv.mkDerivation rec {
|
||||
pname = "amdvlk";
|
||||
version = "2023.Q3.3";
|
||||
version = "2023.Q4.1";
|
||||
|
||||
src = fetchRepoProject {
|
||||
name = "${pname}-src";
|
||||
manifest = "https://github.com/GPUOpen-Drivers/AMDVLK.git";
|
||||
rev = "refs/tags/v-${version}";
|
||||
sha256 = "HHnMiU6mzhUSicXev53PP8y9ealtDMavJLp2F/JAWhI=";
|
||||
sha256 = "5fSz8sksH3K9k0nIx9DUmGGUfIo4Fc4NMettaVqRsY8=";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "egl-wayland";
|
||||
version = "1.1.12";
|
||||
version = "1.1.13";
|
||||
|
||||
outputs = [ "out" "dev" ];
|
||||
|
||||
@@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
|
||||
owner = "Nvidia";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
hash = "sha256-KxlUuoj2HJhkqkIX+Pic/0+36g/N3qfAAlnvYO2Y6uQ=";
|
||||
hash = "sha256-NA+jr27aYu0XPG9sxnBtjeBTFHmV7TENRsFy8dDdNUc=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
|
||||
@@ -9,13 +9,13 @@
|
||||
nv-codec-headers-11 = nv-codec-headers-12;
|
||||
}).overrideAttrs (old: rec {
|
||||
pname = "jellyfin-ffmpeg";
|
||||
version = "6.0-6";
|
||||
version = "6.0-7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jellyfin";
|
||||
repo = "jellyfin-ffmpeg";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-jOKVS+BMADS/jIagOnYwxeGTpTMySmGlOHkPD2LJdkA=";
|
||||
sha256 = "sha256-Z4getn/mVYIRANkIOyt7jMpcqHBvq5GXLK/ST5zV1r4=";
|
||||
};
|
||||
|
||||
buildInputs = old.buildInputs ++ [ chromaprint ];
|
||||
|
||||
@@ -1,23 +0,0 @@
|
||||
{lib, stdenv, fetchurl, pkg-config, m4}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "libsigc++";
|
||||
version = "1.2.7";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://gnome/sources/libsigc++/1.2/libsigc++-${version}.tar.bz2";
|
||||
sha256 = "099224v5y0y1ggqrfc8vga8afr3nb93iicn7cj8xxgsrwa83s5nr";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [ m4];
|
||||
|
||||
meta = with lib; {
|
||||
broken = stdenv.isDarwin;
|
||||
homepage = "https://libsigcplusplus.github.io/libsigcplusplus/";
|
||||
description = "A typesafe callback system for standard C++";
|
||||
branch = "1.2";
|
||||
platforms = platforms.unix;
|
||||
license = licenses.lgpl3;
|
||||
};
|
||||
}
|
||||
@@ -5,13 +5,13 @@ lib.throwIfNot (lib.versionAtLeast ocaml.version "4.02")
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "ocaml${ocaml.version}-expat";
|
||||
version = "1.1.0";
|
||||
version = "1.3.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "whitequark";
|
||||
repo = "ocaml-expat";
|
||||
rev = "v${version}";
|
||||
sha256 = "07wm9663z744ya6z2lhiz5hbmc76kkipg04j9vw9dqpd1y1f2x3q";
|
||||
hash = "sha256-eDA6MUcztaI+fpunWBdanNnPo9Y5gvbj/ViVcxYYEBg=";
|
||||
};
|
||||
|
||||
prePatch = ''
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, poetry-core
|
||||
, hatchling
|
||||
, anyio
|
||||
, distro
|
||||
, httpx
|
||||
@@ -16,8 +16,8 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "anthropic";
|
||||
version = "0.3.13";
|
||||
format = "pyproject";
|
||||
version = "0.5.0";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
@@ -25,11 +25,11 @@ buildPythonPackage rec {
|
||||
owner = "anthropics";
|
||||
repo = "anthropic-sdk-python";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-2sw/tzbKd0d4sSHM+PYTE/XeqkycFFLfG1c/lyrU4Jc=";
|
||||
hash = "sha256-+EiFp55tPsILl6uuTh9qmeQDMKlUzegn3xUo6BupN2E=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
hatchling
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
||||
@@ -60,6 +60,6 @@ buildPythonPackage rec {
|
||||
homepage = "https://github.com/alisaifee/coredis";
|
||||
changelog = "https://github.com/alisaifee/coredis/blob/${src.rev}/HISTORY.rst";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ netali ];
|
||||
maintainers = teams.wdz.members;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "fakeredis";
|
||||
version = "2.19.0";
|
||||
version = "2.20.0";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
@@ -26,7 +26,7 @@ buildPythonPackage rec {
|
||||
owner = "dsoftwareinc";
|
||||
repo = "fakeredis-py";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-EFgd7NnHcA4T/BZZUR/z3Z4JxA0dWricasKyJAaDsHc=";
|
||||
hash = "sha256-pRvUgK4OXVP2GR+Iu4ddqwApw0gYN4FkKjTpwbC1oWM=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
||||
@@ -5,8 +5,6 @@
|
||||
, mccabe
|
||||
, pycodestyle
|
||||
, pyflakes
|
||||
, importlib-metadata
|
||||
, pythonAtLeast
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
@@ -29,13 +27,8 @@ buildPythonPackage rec {
|
||||
mccabe
|
||||
pycodestyle
|
||||
pyflakes
|
||||
] ++ lib.optionals (pythonOlder "3.8") [
|
||||
importlib-metadata
|
||||
];
|
||||
|
||||
# Tests fail on Python 3.7 due to importlib using a deprecated interface
|
||||
doCheck = pythonAtLeast "3.7";
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
@@ -38,7 +38,7 @@ buildPythonPackage rec {
|
||||
owner = "fsspec";
|
||||
repo = "filesystem_spec";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-GVBF2ppyIEvC4rR9IF4gwsdc4fJe1xHS1CyJEwFuVGw=";
|
||||
hash = "sha256-cLkCQQbb/AakDSz1NTrVlHh8LdgoqtjX8OPT+Nb1NA4=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "oci";
|
||||
version = "2.112.4";
|
||||
version = "2.113.0";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
@@ -22,7 +22,7 @@ buildPythonPackage rec {
|
||||
owner = "oracle";
|
||||
repo = "oci-python-sdk";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-ilYlG0bPoMlCs0D49ZJaDgh/xoY+qsHlfJKHPkepe9Q=";
|
||||
hash = "sha256-Ui7/rD307fSdAPexZF9VU4NC9udjEGcFpjg/Ob6GVvo=";
|
||||
};
|
||||
|
||||
pythonRelaxDeps = [
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
, stdenv
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, setuptools-scm
|
||||
, absl-py
|
||||
, lxml
|
||||
@@ -20,17 +19,6 @@ buildPythonPackage rec {
|
||||
hash = "sha256-jG1rfamegnX8GXDwqkGFBFzUeycRLDObJvGbxNk6OpM=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# see https://github.com/googlefonts/picosvg/issues/299
|
||||
# this patch fixed a failing test case after the update to skia-pathops 0.8
|
||||
# as soon as skia-pathops in nixpkgs is updated to 0.8, this patch should be removed
|
||||
(fetchpatch {
|
||||
url = "https://github.com/googlefonts/picosvg/commit/4e971ed6cd9afb412b2845d29296a0c24f086562.patch";
|
||||
hash = "sha256-OZEipNPCSuuqcy4XggBiuGv4HN604dI4N9wlznyAwF0=";
|
||||
revert = true;
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools-scm
|
||||
];
|
||||
|
||||
@@ -29,6 +29,6 @@ buildPythonPackage rec {
|
||||
description = "Python radix tree for IPv4 and IPv6 prefix matching";
|
||||
homepage = "https://github.com/SEKOIA-IO/py-radix";
|
||||
license = with licenses; [ isc bsdOriginal ];
|
||||
maintainers = with maintainers; [ netali ];
|
||||
maintainers = teams.wdz.members;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
, dbus-python
|
||||
, fetchPypi
|
||||
, file
|
||||
, hatchling
|
||||
, i3
|
||||
, i3ipc
|
||||
, libnotify
|
||||
@@ -24,12 +25,17 @@
|
||||
buildPythonPackage rec {
|
||||
pname = "py3status";
|
||||
version = "3.53";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-vZrzHERjAg9J004A2dAbq8hKmAUslCTaRdwEAe9JRqU=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
hatchling
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
pytz
|
||||
requests
|
||||
|
||||
@@ -1,21 +1,36 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, pygobject3, pythonAtLeast }:
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pygobject3
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pydbus";
|
||||
version = "0.6.0";
|
||||
pyproejct = true;
|
||||
|
||||
# Python 3.11 changed the API of the `inspect` module and pydbus was never
|
||||
# updated to adapt; last commit was in 2018.
|
||||
disabled = pythonAtLeast "3.11";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0b0gipvz7vcfa9ddmwq2jrx16d4apb0hdnl5q4i3h8jlzwp1c1s2";
|
||||
src = fetchFromGitHub {
|
||||
owner = "LEW21";
|
||||
repo = "pydbus";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-F1KKXG+7dWlEbToqtF3G7wU0Sco7zH5NqzlL58jyDGw=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ pygobject3 ];
|
||||
postPatch = ''
|
||||
substituteInPlace pydbus/_inspect3.py \
|
||||
--replace "getargspec" "getfullargspec"
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "pydbus" ];
|
||||
propagatedBuildInputs = [
|
||||
pygobject3
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"pydbus"
|
||||
"pydbus.generic"
|
||||
];
|
||||
|
||||
doCheck = false; # requires a working dbus setup
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/LEW21/pydbus";
|
||||
|
||||
@@ -9,7 +9,7 @@ buildPythonPackage rec {
|
||||
pname = "pyflakes";
|
||||
version = "3.1.0";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
format = "setuptools";
|
||||
|
||||
|
||||
@@ -5,14 +5,19 @@
|
||||
, capstone
|
||||
, cmsis-pack-manager
|
||||
, colorama
|
||||
, importlib-metadata
|
||||
, importlib-resources
|
||||
, intelhex
|
||||
, intervaltree
|
||||
, lark
|
||||
, natsort
|
||||
, prettytable
|
||||
, pyelftools
|
||||
, pylink-square
|
||||
, pyusb
|
||||
, pyyaml
|
||||
, setuptools
|
||||
, setuptools-scm
|
||||
, typing-extensions
|
||||
, stdenv
|
||||
, hidapi
|
||||
@@ -21,11 +26,12 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyocd";
|
||||
version = "0.35.1";
|
||||
version = "0.36.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-AugIT007JtTXx0cLtHD9TtxsK/K6eB492U2k+EVxyXU=";
|
||||
hash = "sha256-k3eCrMna/wVNUPt8b3iM2UqE+A8LhfJarKuZ3Jgihkg=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
@@ -37,12 +43,25 @@ buildPythonPackage rec {
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.cfg \
|
||||
--replace "libusb-package>=1.0,<2.0" ""
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
setuptools-scm
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
capstone
|
||||
cmsis-pack-manager
|
||||
colorama
|
||||
importlib-metadata
|
||||
importlib-resources
|
||||
intelhex
|
||||
intervaltree
|
||||
lark
|
||||
natsort
|
||||
prettytable
|
||||
pyelftools
|
||||
@@ -54,19 +73,19 @@ buildPythonPackage rec {
|
||||
hidapi
|
||||
];
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
pythonImportsCheck = [
|
||||
"pyocd"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "pyocd" ];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.cfg \
|
||||
--replace "libusb-package>=1.0,<2.0" "" \
|
||||
--replace "pylink-square>=0.11.1,<1.0" "pylink-square>=0.11.1,<2.0"
|
||||
'';
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
changelog = "https://github.com/pyocd/pyOCD/releases/tag/v${version}";
|
||||
description = "Python library for programming and debugging Arm Cortex-M microcontrollers";
|
||||
homepage = "https://pyocd.io/";
|
||||
downloadPage = "https://github.com/pyocd/pyOCD";
|
||||
homepage = "https://pyocd.io";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ frogamic sbruder ];
|
||||
};
|
||||
|
||||
@@ -10,8 +10,7 @@
|
||||
, h5py
|
||||
, numpy
|
||||
, scipy
|
||||
, nose
|
||||
, nose-exclude
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@@ -47,8 +46,7 @@ buildPythonPackage rec {
|
||||
scipy
|
||||
];
|
||||
|
||||
nativeCheckInputs = [ nose nose-exclude ];
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
pythonImportsCheck = [ "pyscf" ];
|
||||
preCheck = ''
|
||||
# Set config used by tests to ensure reproducibility
|
||||
@@ -57,53 +55,43 @@ buildPythonPackage rec {
|
||||
ulimit -s 20000
|
||||
export PYSCF_CONFIG_FILE=$(pwd)/pyscf/pyscf_config.py
|
||||
'';
|
||||
# As defined for the PySCF CI at https://github.com/pyscf/pyscf/blob/master/.github/workflows/run_tests.sh
|
||||
# minus some additionally numerically instable tests, that are sensitive to BLAS, FFTW, etc.
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
|
||||
nosetests pyscf/ -v \
|
||||
--exclude-dir=examples --exclude-dir=pyscf/pbc/grad \
|
||||
--exclude-dir=pyscf/x2c \
|
||||
--exclude-dir=pyscf/adc \
|
||||
--exclude-dir=pyscf/pbc/tdscf \
|
||||
-e test_bz \
|
||||
-e h2o_vdz \
|
||||
-e test_mc2step_4o4e \
|
||||
-e test_ks_noimport \
|
||||
-e test_jk_hermi0 \
|
||||
-e test_j_kpts \
|
||||
-e test_k_kpts \
|
||||
-e test_lda \
|
||||
-e high_cost \
|
||||
-e skip \
|
||||
-e call_in_background \
|
||||
-e libxc_cam_beta_bug \
|
||||
-e test_finite_diff_rks_eph \
|
||||
-e test_finite_diff_uks_eph \
|
||||
-e test_finite_diff_roks_grad \
|
||||
-e test_finite_diff_df_roks_grad \
|
||||
-e test_frac_particles \
|
||||
-e test_nosymm_sa4_newton \
|
||||
-e test_pipek \
|
||||
-e test_n3_cis_ewald \
|
||||
-e test_veff \
|
||||
-I test_kuccsd_supercell_vs_kpts\.py \
|
||||
-I test_kccsd_ghf\.py \
|
||||
-I test_h_.*\.py \
|
||||
--exclude-test=pyscf/pbc/gw/test/test_kgw_slow_supercell.DiamondTestSupercell3 \
|
||||
--exclude-test=pyscf/pbc/gw/test/test_kgw_slow_supercell.DiamondKSTestSupercell3 \
|
||||
--exclude-test=pyscf/pbc/gw/test/test_kgw_slow.DiamondTestSupercell3 \
|
||||
--exclude-test=pyscf/pbc/gw/test/test_kgw_slow.DiamondKSTestSupercell3 \
|
||||
--exclude-test=pyscf/pbc/tdscf/test/test_krhf_slow_supercell.DiamondTestSupercell3 \
|
||||
--exclude-test=pyscf/pbc/tdscf/test/test_kproxy_hf.DiamondTestSupercell3 \
|
||||
--exclude-test=pyscf/pbc/tdscf/test/test_kproxy_ks.DiamondTestSupercell3 \
|
||||
--exclude-test=pyscf/pbc/tdscf/test/test_kproxy_supercell_hf.DiamondTestSupercell3 \
|
||||
--exclude-test=pyscf/pbc/tdscf/test/test_kproxy_supercell_ks.DiamondTestSupercell3 \
|
||||
-I .*_slow.*py -I .*_kproxy_.*py -I test_proxy.py tdscf/*_slow.py gw/*_slow.py
|
||||
# Numerically slightly off tests
|
||||
disabledTests = [
|
||||
"test_tdhf_singlet"
|
||||
"test_ab_hf"
|
||||
"test_ea"
|
||||
"test_bz"
|
||||
"h2o_vdz"
|
||||
"test_mc2step_4o4e"
|
||||
"test_ks_noimport"
|
||||
"test_jk_hermi0"
|
||||
"test_j_kpts"
|
||||
"test_k_kpts"
|
||||
"test_lda"
|
||||
"high_cost"
|
||||
"skip"
|
||||
"call_in_background"
|
||||
"libxc_cam_beta_bug"
|
||||
"test_finite_diff_rks_eph"
|
||||
"test_finite_diff_uks_eph"
|
||||
"test_finite_diff_roks_grad"
|
||||
"test_finite_diff_df_roks_grad"
|
||||
"test_frac_particles"
|
||||
"test_nosymm_sa4_newton"
|
||||
"test_pipek"
|
||||
"test_n3_cis_ewald"
|
||||
"test_veff"
|
||||
"test_collinear_kgks_gga"
|
||||
];
|
||||
|
||||
runHook postCheck
|
||||
'';
|
||||
pytestFlagsArray = [
|
||||
"--ignore=pyscf/pbc/tdscf"
|
||||
"--ignore=pyscf/pbc/gw"
|
||||
"--ignore-glob=*_slow.*py"
|
||||
"--ignore-glob=*_kproxy_.*py"
|
||||
"--ignore-glob=test_proxy.py"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python-based simulations of chemistry framework";
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pysigma-backend-elasticsearch";
|
||||
version = "1.0.7";
|
||||
version = "1.0.9";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
@@ -19,7 +19,7 @@ buildPythonPackage rec {
|
||||
owner = "SigmaHQ";
|
||||
repo = "pySigma-backend-elasticsearch";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-qvWrMucaSx7LltWYru30qVPDTVHtuqf8tKGFL+Fl8fU=";
|
||||
hash = "sha256-OZaUKEEvgEIukEcAHB9ci/XWCU+h1CvQTU3gwWBOBkY=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
|
||||
@@ -56,6 +56,12 @@ buildPythonPackage rec {
|
||||
"pytest_examples"
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# Test fails with latest ruff v0.1.2
|
||||
# See https://github.com/pydantic/pytest-examples/issues/26
|
||||
"test_ruff_error"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Pytest plugin for testing examples in docstrings and markdown files";
|
||||
homepage = "https://github.com/pydantic/pytest-examples";
|
||||
|
||||
@@ -8,22 +8,20 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "sqids";
|
||||
version = "0.3.0";
|
||||
format = "pyproject";
|
||||
version = "0.4.0";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-qAY41kOp0m+mua/4bvVwuDW5p0EpwY675Ux3W1JsqbE=";
|
||||
hash = "sha256-U9nVpRc9PIM1ZO+bcL3RGIfAdlUMf+uFw/SpPTAjdnA=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools-scm
|
||||
];
|
||||
|
||||
doCheck = true;
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
diff -Naurd x/third_party/systemlibs/absl_py.absl.flags.BUILD y/third_party/systemlibs/absl_py.absl.flags.BUILD
|
||||
--- x/third_party/systemlibs/absl_py.absl.flags.BUILD 2023-09-20 06:02:15.079683729 +0000
|
||||
+++ y/third_party/systemlibs/absl_py.absl.flags.BUILD 2023-09-20 06:04:58.491897303 +0000
|
||||
@@ -5,3 +5,7 @@
|
||||
py_library(
|
||||
name = "flags",
|
||||
)
|
||||
+
|
||||
+py_library(
|
||||
+ name = "argparse_flags",
|
||||
+)
|
||||
@@ -0,0 +1,389 @@
|
||||
diff -Naurd x/tensorflow/c/experimental/stream_executor/stream_executor.cc y/tensorflow/c/experimental/stream_executor/stream_executor.cc
|
||||
--- x/tensorflow/c/experimental/stream_executor/stream_executor.cc 2023-10-19 14:25:48.648646416 +0000
|
||||
+++ y/tensorflow/c/experimental/stream_executor/stream_executor.cc 2023-10-19 14:29:11.700743574 +0000
|
||||
@@ -23,6 +23,7 @@
|
||||
|
||||
#include <string>
|
||||
#include <utility>
|
||||
+#include <optional>
|
||||
|
||||
#include "absl/functional/any_invocable.h"
|
||||
#include "tensorflow/c/c_api_macros.h"
|
||||
@@ -275,17 +276,17 @@
|
||||
stream_executor_->unified_memory_deallocate(&device_, mem);
|
||||
}
|
||||
|
||||
- absl::optional<AllocatorStats> GetAllocatorStats() override {
|
||||
+ std::optional<AllocatorStats> GetAllocatorStats() override {
|
||||
SP_AllocatorStats c_stats{SP_ALLOCATORSTATS_STRUCT_SIZE};
|
||||
TF_Bool has_stats =
|
||||
stream_executor_->get_allocator_stats(&device_, &c_stats);
|
||||
if (!has_stats) {
|
||||
- return absl::nullopt;
|
||||
+ return std::nullopt;
|
||||
}
|
||||
tsl::Status status = ValidateSPAllocatorStats(c_stats);
|
||||
if (!status.ok()) {
|
||||
LOG(ERROR) << status.message();
|
||||
- return absl::nullopt;
|
||||
+ return std::nullopt;
|
||||
}
|
||||
::stream_executor::AllocatorStats stats;
|
||||
stats.num_allocs = c_stats.num_allocs;
|
||||
diff -Naurd x/tensorflow/c/experimental/stream_executor/stream_executor_test.cc y/tensorflow/c/experimental/stream_executor/stream_executor_test.cc
|
||||
--- x/tensorflow/c/experimental/stream_executor/stream_executor_test.cc 2023-10-19 14:25:48.648646416 +0000
|
||||
+++ y/tensorflow/c/experimental/stream_executor/stream_executor_test.cc 2023-10-19 14:29:11.700743574 +0000
|
||||
@@ -15,6 +15,7 @@
|
||||
#include "tensorflow/c/experimental/stream_executor/stream_executor.h"
|
||||
|
||||
#include <utility>
|
||||
+#include <optional>
|
||||
|
||||
#include "tensorflow/c/experimental/stream_executor/stream_executor_internal.h"
|
||||
#include "tensorflow/c/experimental/stream_executor/stream_executor_test_util.h"
|
||||
@@ -239,7 +240,7 @@
|
||||
};
|
||||
|
||||
StreamExecutor* executor = GetExecutor(0);
|
||||
- absl::optional<AllocatorStats> optional_stats = executor->GetAllocatorStats();
|
||||
+ std::optional<AllocatorStats> optional_stats = executor->GetAllocatorStats();
|
||||
ASSERT_TRUE(optional_stats.has_value());
|
||||
AllocatorStats stats = optional_stats.value();
|
||||
ASSERT_EQ(stats.bytes_in_use, 123);
|
||||
diff -Naurd x/tensorflow/compiler/xla/stream_executor/allocator_stats.h y/tensorflow/compiler/xla/stream_executor/allocator_stats.h
|
||||
--- x/tensorflow/compiler/xla/stream_executor/allocator_stats.h 2023-10-19 14:25:55.064649379 +0000
|
||||
+++ y/tensorflow/compiler/xla/stream_executor/allocator_stats.h 2023-10-19 14:29:11.700743574 +0000
|
||||
@@ -17,6 +17,7 @@
|
||||
#define TENSORFLOW_COMPILER_XLA_STREAM_EXECUTOR_ALLOCATOR_STATS_H_
|
||||
|
||||
#include <string>
|
||||
+#include <optional>
|
||||
|
||||
#include "absl/types/optional.h"
|
||||
#include "tensorflow/compiler/xla/stream_executor/platform/port.h"
|
||||
diff -Naurd x/tensorflow/core/common_runtime/mkl_cpu_allocator.h y/tensorflow/core/common_runtime/mkl_cpu_allocator.h
|
||||
--- x/tensorflow/core/common_runtime/mkl_cpu_allocator.h 2023-10-19 14:25:58.996651199 +0000
|
||||
+++ y/tensorflow/core/common_runtime/mkl_cpu_allocator.h 2023-10-19 14:29:11.700743574 +0000
|
||||
@@ -22,6 +22,7 @@
|
||||
#ifdef INTEL_MKL
|
||||
|
||||
#include <cstdlib>
|
||||
+#include <optional>
|
||||
|
||||
#include "tensorflow/core/common_runtime/bfc_allocator.h"
|
||||
#include "tensorflow/core/common_runtime/pool_allocator.h"
|
||||
@@ -80,7 +81,7 @@
|
||||
port::AlignedFree(ptr);
|
||||
}
|
||||
|
||||
- absl::optional<AllocatorStats> GetStats() override {
|
||||
+ std::optional<AllocatorStats> GetStats() override {
|
||||
mutex_lock l(mutex_);
|
||||
return stats_;
|
||||
}
|
||||
@@ -242,7 +243,7 @@
|
||||
large_size_allocator_->DeallocateRaw(ptr);
|
||||
}
|
||||
}
|
||||
- absl::optional<AllocatorStats> GetStats() override {
|
||||
+ std::optional<AllocatorStats> GetStats() override {
|
||||
auto s_stats = small_size_allocator_->GetStats();
|
||||
auto l_stats = large_size_allocator_->GetStats();
|
||||
|
||||
diff -Naurd x/tensorflow/core/common_runtime/pluggable_device/pluggable_device_simple_allocator.cc y/tensorflow/core/common_runtime/pluggable_device/pluggable_device_simple_allocator.cc
|
||||
--- x/tensorflow/core/common_runtime/pluggable_device/pluggable_device_simple_allocator.cc 2023-10-19 14:25:59.236651310 +0000
|
||||
+++ y/tensorflow/core/common_runtime/pluggable_device/pluggable_device_simple_allocator.cc 2023-10-19 14:29:11.700743574 +0000
|
||||
@@ -32,7 +32,7 @@
|
||||
return sub_allocator_->Free(ptr, 0);
|
||||
}
|
||||
|
||||
-absl::optional<AllocatorStats> PluggableDeviceSimpleAllocator::GetStats() {
|
||||
+std::optional<AllocatorStats> PluggableDeviceSimpleAllocator::GetStats() {
|
||||
AllocatorStats stats_;
|
||||
stats_.num_allocs = 0;
|
||||
stats_.peak_bytes_in_use = 0;
|
||||
diff -Naurd x/tensorflow/core/common_runtime/pluggable_device/pluggable_device_simple_allocator.h y/tensorflow/core/common_runtime/pluggable_device/pluggable_device_simple_allocator.h
|
||||
--- x/tensorflow/core/common_runtime/pluggable_device/pluggable_device_simple_allocator.h 2023-10-19 14:25:59.236651310 +0000
|
||||
+++ y/tensorflow/core/common_runtime/pluggable_device/pluggable_device_simple_allocator.h 2023-10-19 14:29:11.700743574 +0000
|
||||
@@ -19,6 +19,7 @@
|
||||
#include <string>
|
||||
#include <unordered_map>
|
||||
#include <vector>
|
||||
+#include <optional>
|
||||
|
||||
#include "tensorflow/core/common_runtime/device/device_mem_allocator.h"
|
||||
#include "tensorflow/core/platform/thread_annotations.h"
|
||||
@@ -37,7 +38,7 @@
|
||||
|
||||
bool TracksAllocationSizes() const override { return false; }
|
||||
string Name() override { return "Simple allocator"; }
|
||||
- absl::optional<AllocatorStats> GetStats() override;
|
||||
+ std::optional<AllocatorStats> GetStats() override;
|
||||
|
||||
AllocatorMemoryType GetMemoryType() const override {
|
||||
return sub_allocator_->GetMemoryType();
|
||||
diff -Naurd x/tensorflow/core/common_runtime/process_state.h y/tensorflow/core/common_runtime/process_state.h
|
||||
--- x/tensorflow/core/common_runtime/process_state.h 2023-10-19 14:25:59.076651236 +0000
|
||||
+++ y/tensorflow/core/common_runtime/process_state.h 2023-10-19 14:29:11.704743576 +0000
|
||||
@@ -20,6 +20,7 @@
|
||||
#include <map>
|
||||
#include <unordered_map>
|
||||
#include <vector>
|
||||
+#include <optional>
|
||||
|
||||
#include "tensorflow/core/framework/allocator.h"
|
||||
#include "tensorflow/core/framework/allocator_registry.h"
|
||||
@@ -144,7 +145,7 @@
|
||||
size_t AllocatedSize(const void* p) const override {
|
||||
return a_->AllocatedSize(p);
|
||||
}
|
||||
- absl::optional<AllocatorStats> GetStats() override { return a_->GetStats(); }
|
||||
+ std::optional<AllocatorStats> GetStats() override { return a_->GetStats(); }
|
||||
bool ClearStats() override { return a_->ClearStats(); }
|
||||
|
||||
AllocatorMemoryType GetMemoryType() const override {
|
||||
diff -Naurd x/tensorflow/core/common_runtime/step_stats_collector.cc y/tensorflow/core/common_runtime/step_stats_collector.cc
|
||||
--- x/tensorflow/core/common_runtime/step_stats_collector.cc 2023-10-19 14:25:59.112651253 +0000
|
||||
+++ y/tensorflow/core/common_runtime/step_stats_collector.cc 2023-10-19 14:29:11.704743576 +0000
|
||||
@@ -15,6 +15,7 @@
|
||||
#include "tensorflow/core/common_runtime/step_stats_collector.h"
|
||||
|
||||
#include <memory>
|
||||
+#include <optional>
|
||||
|
||||
#include "tensorflow/core/common_runtime/costmodel_manager.h"
|
||||
#include "tensorflow/core/framework/allocation_description.pb.h"
|
||||
@@ -175,7 +176,7 @@
|
||||
memory->set_peak_bytes(std::get<1>(sizes));
|
||||
memory->set_live_bytes(std::get<2>(sizes));
|
||||
|
||||
- absl::optional<AllocatorStats> stats = allocator->GetStats();
|
||||
+ std::optional<AllocatorStats> stats = allocator->GetStats();
|
||||
if (stats) {
|
||||
memory->set_allocator_bytes_in_use(stats->bytes_in_use);
|
||||
}
|
||||
diff -Naurd x/tensorflow/core/framework/allocator_test.cc y/tensorflow/core/framework/allocator_test.cc
|
||||
--- x/tensorflow/core/framework/allocator_test.cc 2023-10-19 14:25:59.524651443 +0000
|
||||
+++ y/tensorflow/core/framework/allocator_test.cc 2023-10-19 14:29:11.704743576 +0000
|
||||
@@ -17,6 +17,7 @@
|
||||
|
||||
#include <algorithm>
|
||||
#include <vector>
|
||||
+#include <optional>
|
||||
|
||||
#include "tensorflow/core/framework/typed_allocator.h"
|
||||
#include "tensorflow/core/platform/logging.h"
|
||||
@@ -33,7 +34,7 @@
|
||||
|
||||
static void CheckStats(Allocator* a, int64_t num_allocs, int64_t bytes_in_use,
|
||||
int64_t peak_bytes_in_use, int64_t largest_alloc_size) {
|
||||
- absl::optional<AllocatorStats> stats = a->GetStats();
|
||||
+ std::optional<AllocatorStats> stats = a->GetStats();
|
||||
EXPECT_TRUE(stats);
|
||||
if (!stats) {
|
||||
return;
|
||||
@@ -255,7 +256,7 @@
|
||||
EXPECT_EQ(e0.Name(), "MemoryAllocation")
|
||||
<< "XSpace: " << xspace.DebugString();
|
||||
{
|
||||
- absl::optional<std::string> bytes_allocated, peak_bytes_in_use,
|
||||
+ std::optional<std::string> bytes_allocated, peak_bytes_in_use,
|
||||
requested_bytes, allocation_bytes;
|
||||
e0.ForEachStat([&](const ::tensorflow::profiler::XStatVisitor& stat) {
|
||||
LOG(ERROR) << "STAT " << stat.Name() << ": " << stat.ToString();
|
||||
@@ -282,7 +283,7 @@
|
||||
EXPECT_EQ(e1.Name(), "MemoryDeallocation")
|
||||
<< "XSpace: " << xspace.DebugString();
|
||||
{
|
||||
- absl::optional<std::string> bytes_allocated, peak_bytes_in_use,
|
||||
+ std::optional<std::string> bytes_allocated, peak_bytes_in_use,
|
||||
allocation_bytes;
|
||||
e1.ForEachStat([&](const ::tensorflow::profiler::XStatVisitor& stat) {
|
||||
if (stat.Name() == "bytes_allocated") {
|
||||
diff -Naurd x/tensorflow/core/framework/tracking_allocator_test.cc y/tensorflow/core/framework/tracking_allocator_test.cc
|
||||
--- x/tensorflow/core/framework/tracking_allocator_test.cc 2023-10-19 14:25:59.700651525 +0000
|
||||
+++ y/tensorflow/core/framework/tracking_allocator_test.cc 2023-10-19 14:29:11.704743576 +0000
|
||||
@@ -16,6 +16,7 @@
|
||||
#include "tensorflow/core/framework/tracking_allocator.h"
|
||||
|
||||
#include <unordered_map>
|
||||
+#include <optional>
|
||||
|
||||
#include "tensorflow/core/framework/allocator.h"
|
||||
#include "tensorflow/core/platform/logging.h"
|
||||
@@ -44,7 +45,7 @@
|
||||
EXPECT_NE(size_map_.end(), iter);
|
||||
return iter->second;
|
||||
}
|
||||
- absl::optional<AllocatorStats> GetStats() override { return absl::nullopt; }
|
||||
+ std::optional<AllocatorStats> GetStats() override { return std::nullopt; }
|
||||
|
||||
private:
|
||||
std::unordered_map<const void*, size_t> size_map_;
|
||||
@@ -58,7 +59,7 @@
|
||||
}
|
||||
void DeallocateRaw(void* ptr) override {}
|
||||
bool TracksAllocationSizes() const override { return true; }
|
||||
- absl::optional<AllocatorStats> GetStats() override { return absl::nullopt; }
|
||||
+ std::optional<AllocatorStats> GetStats() override { return std::nullopt; }
|
||||
};
|
||||
|
||||
TEST(TrackingAllocatorTest, SimpleNoTracking) {
|
||||
diff -Naurd x/tensorflow/core/grappler/clusters/single_machine.cc y/tensorflow/core/grappler/clusters/single_machine.cc
|
||||
--- x/tensorflow/core/grappler/clusters/single_machine.cc 2023-10-19 14:25:59.964651648 +0000
|
||||
+++ y/tensorflow/core/grappler/clusters/single_machine.cc 2023-10-19 14:29:11.704743576 +0000
|
||||
@@ -17,6 +17,7 @@
|
||||
|
||||
#include <atomic>
|
||||
#include <memory>
|
||||
+#include <optional>
|
||||
|
||||
#include "tensorflow/cc/training/queue_runner.h"
|
||||
#include "tensorflow/core/common_runtime/device.h"
|
||||
@@ -230,7 +231,7 @@
|
||||
return Status(absl::StatusCode::kInvalidArgument,
|
||||
"Tracking allocation is not enabled.");
|
||||
}
|
||||
- absl::optional<AllocatorStats> stats = allocator->GetStats();
|
||||
+ std::optional<AllocatorStats> stats = allocator->GetStats();
|
||||
(*device_peak_memory)[device->name()] =
|
||||
(stats ? stats->peak_bytes_in_use : 0);
|
||||
}
|
||||
diff -Naurd x/tensorflow/core/kernels/stack.cc y/tensorflow/core/kernels/stack.cc
|
||||
--- x/tensorflow/core/kernels/stack.cc 2023-10-19 14:26:01.668652437 +0000
|
||||
+++ y/tensorflow/core/kernels/stack.cc 2023-10-19 14:29:11.704743576 +0000
|
||||
@@ -18,6 +18,7 @@
|
||||
#include <limits.h>
|
||||
#include <atomic>
|
||||
#include <vector>
|
||||
+#include <optional>
|
||||
|
||||
#include "tensorflow/core/common_runtime/device.h"
|
||||
#include "tensorflow/core/framework/device_base.h"
|
||||
@@ -245,7 +246,7 @@
|
||||
DeviceContext* device_ctxt = ctx->op_device_context();
|
||||
auto device = static_cast<tensorflow::Device*>(ctx->device());
|
||||
Allocator* allocator = device->GetAllocator(alloc_attrs);
|
||||
- absl::optional<AllocatorStats> stats = allocator->GetStats();
|
||||
+ std::optional<AllocatorStats> stats = allocator->GetStats();
|
||||
if (stats && *stats->bytes_limit &&
|
||||
stats->bytes_in_use > (*stats->bytes_limit * kOccupancy)) {
|
||||
// Asynchronously copy the tensor from GPU to CPU memory.
|
||||
diff -Naurd x/tensorflow/python/tfe_wrapper.cc y/tensorflow/python/tfe_wrapper.cc
|
||||
--- x/tensorflow/python/tfe_wrapper.cc 2023-10-19 14:26:10.716656639 +0000
|
||||
+++ y/tensorflow/python/tfe_wrapper.cc 2023-10-19 14:29:11.708743578 +0000
|
||||
@@ -14,6 +14,7 @@
|
||||
==============================================================================*/
|
||||
|
||||
#include <memory>
|
||||
+#include <optional>
|
||||
|
||||
#include "Python.h"
|
||||
#include "absl/strings/match.h"
|
||||
@@ -691,7 +692,7 @@
|
||||
tensorflow::AllocatorAttributes attrs;
|
||||
tensorflow::Allocator* allocator = matched_device->GetAllocator(attrs);
|
||||
|
||||
- if (absl::optional<tensorflow::AllocatorStats> stats =
|
||||
+ if (std::optional<tensorflow::AllocatorStats> stats =
|
||||
allocator->GetStats()) {
|
||||
return std::map<std::string, int64_t>{{"current", stats->bytes_in_use},
|
||||
{"peak", stats->peak_bytes_in_use}};
|
||||
diff -Naurd x/tensorflow/tsl/framework/allocator.h y/tensorflow/tsl/framework/allocator.h
|
||||
--- x/tensorflow/tsl/framework/allocator.h 2023-10-19 14:26:15.884659044 +0000
|
||||
+++ y/tensorflow/tsl/framework/allocator.h 2023-10-19 14:29:11.708743578 +0000
|
||||
@@ -216,7 +216,7 @@
|
||||
}
|
||||
|
||||
// Fills in 'stats' with statistics collected by this allocator.
|
||||
- virtual absl::optional<AllocatorStats> GetStats() { return absl::nullopt; }
|
||||
+ virtual std::optional<AllocatorStats> GetStats() { return std::nullopt; }
|
||||
|
||||
// If implemented, clears the internal stats except for the `in_use` fields
|
||||
// and sets the `peak_bytes_in_use` to be equal to the `bytes_in_use`. Returns
|
||||
diff -Naurd x/tensorflow/tsl/framework/bfc_allocator.cc y/tensorflow/tsl/framework/bfc_allocator.cc
|
||||
--- x/tensorflow/tsl/framework/bfc_allocator.cc 2023-10-19 14:26:15.900659052 +0000
|
||||
+++ y/tensorflow/tsl/framework/bfc_allocator.cc 2023-10-19 14:29:11.708743578 +0000
|
||||
@@ -1205,7 +1205,7 @@
|
||||
return md;
|
||||
}
|
||||
|
||||
-absl::optional<AllocatorStats> BFCAllocator::GetStats() {
|
||||
+std::optional<AllocatorStats> BFCAllocator::GetStats() {
|
||||
mutex_lock l(lock_);
|
||||
return stats_;
|
||||
}
|
||||
diff -Naurd x/tensorflow/tsl/framework/bfc_allocator.h y/tensorflow/tsl/framework/bfc_allocator.h
|
||||
--- x/tensorflow/tsl/framework/bfc_allocator.h 2023-10-19 14:26:15.900659052 +0000
|
||||
+++ y/tensorflow/tsl/framework/bfc_allocator.h 2023-10-19 14:29:11.708743578 +0000
|
||||
@@ -22,6 +22,7 @@
|
||||
#include <string>
|
||||
#include <unordered_map>
|
||||
#include <vector>
|
||||
+#include <optional>
|
||||
|
||||
#include "absl/container/flat_hash_set.h"
|
||||
#include "tensorflow/tsl/framework/allocator.h"
|
||||
@@ -93,7 +94,7 @@
|
||||
|
||||
int64_t AllocationId(const void* ptr) const override;
|
||||
|
||||
- absl::optional<AllocatorStats> GetStats() override;
|
||||
+ std::optional<AllocatorStats> GetStats() override;
|
||||
|
||||
bool ClearStats() override;
|
||||
|
||||
diff -Naurd x/tensorflow/tsl/framework/cpu_allocator_impl.cc y/tensorflow/tsl/framework/cpu_allocator_impl.cc
|
||||
--- x/tensorflow/tsl/framework/cpu_allocator_impl.cc 2023-10-19 14:26:15.928659065 +0000
|
||||
+++ y/tensorflow/tsl/framework/cpu_allocator_impl.cc 2023-10-19 14:29:11.708743578 +0000
|
||||
@@ -15,6 +15,7 @@
|
||||
|
||||
#include <algorithm>
|
||||
#include <atomic>
|
||||
+#include <optional>
|
||||
|
||||
#include "tensorflow/tsl/framework/allocator.h"
|
||||
#include "tensorflow/tsl/framework/allocator_registry.h"
|
||||
@@ -145,8 +146,8 @@
|
||||
/*level=*/tsl::profiler::TraceMeLevel::kInfo);
|
||||
}
|
||||
|
||||
- absl::optional<AllocatorStats> GetStats() override {
|
||||
- if (!cpu_allocator_collect_stats) return absl::nullopt;
|
||||
+ std::optional<AllocatorStats> GetStats() override {
|
||||
+ if (!cpu_allocator_collect_stats) return std::nullopt;
|
||||
mutex_lock l(mu_);
|
||||
return stats_;
|
||||
}
|
||||
diff -Naurd x/tensorflow/tsl/framework/tracking_allocator.cc y/tensorflow/tsl/framework/tracking_allocator.cc
|
||||
--- x/tensorflow/tsl/framework/tracking_allocator.cc 2023-10-19 14:26:15.968659084 +0000
|
||||
+++ y/tensorflow/tsl/framework/tracking_allocator.cc 2023-10-19 14:29:11.708743578 +0000
|
||||
@@ -152,7 +152,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
-absl::optional<AllocatorStats> TrackingAllocator::GetStats() {
|
||||
+std::optional<AllocatorStats> TrackingAllocator::GetStats() {
|
||||
return allocator_->GetStats();
|
||||
}
|
||||
|
||||
diff -Naurd x/tensorflow/tsl/framework/tracking_allocator.h y/tensorflow/tsl/framework/tracking_allocator.h
|
||||
--- x/tensorflow/tsl/framework/tracking_allocator.h 2023-10-19 14:26:15.968659084 +0000
|
||||
+++ y/tensorflow/tsl/framework/tracking_allocator.h 2023-10-19 14:29:11.712743580 +0000
|
||||
@@ -17,6 +17,7 @@
|
||||
#define TENSORFLOW_TSL_FRAMEWORK_TRACKING_ALLOCATOR_H_
|
||||
|
||||
#include <unordered_map>
|
||||
+#include <optional>
|
||||
|
||||
#include "tensorflow/tsl/framework/allocator.h"
|
||||
#include "tensorflow/tsl/lib/gtl/inlined_vector.h"
|
||||
@@ -66,7 +67,7 @@
|
||||
size_t RequestedSize(const void* ptr) const override;
|
||||
size_t AllocatedSize(const void* ptr) const override;
|
||||
int64_t AllocationId(const void* ptr) const override;
|
||||
- absl::optional<AllocatorStats> GetStats() override;
|
||||
+ std::optional<AllocatorStats> GetStats() override;
|
||||
bool ClearStats() override;
|
||||
|
||||
AllocatorMemoryType GetMemoryType() const override {
|
||||
@@ -0,0 +1,166 @@
|
||||
diff -Naurd x/third_party/absl/system.absl.base.BUILD y/third_party/absl/system.absl.base.BUILD
|
||||
--- x/third_party/absl/system.absl.base.BUILD 2023-09-17 09:12:05.499753364 +0000
|
||||
+++ y/third_party/absl/system.absl.base.BUILD 2023-09-17 09:16:01.200082822 +0000
|
||||
@@ -22,7 +22,12 @@
|
||||
|
||||
cc_library(
|
||||
name = "raw_logging_internal",
|
||||
- linkopts = ["-labsl_raw_logging_internal"],
|
||||
+ linkopts = [
|
||||
+ "-labsl_raw_logging_internal",
|
||||
+ "-labsl_log_internal_conditions",
|
||||
+ "-labsl_log_internal_message",
|
||||
+ "-labsl_log_internal_nullguard",
|
||||
+ ],
|
||||
visibility = [
|
||||
"//absl:__subpackages__",
|
||||
],
|
||||
diff -Naurd x/third_party/absl/system.absl.log.BUILD y/third_party/absl/system.absl.log.BUILD
|
||||
--- x/third_party/absl/system.absl.log.BUILD 1970-01-01 00:00:00.000000000 +0000
|
||||
+++ y/third_party/absl/system.absl.log.BUILD 2023-09-17 09:12:11.795762177 +0000
|
||||
@@ -0,0 +1,134 @@
|
||||
+load("@rules_cc//cc:defs.bzl", "cc_library")
|
||||
+
|
||||
+package(default_visibility = ["//visibility:public"])
|
||||
+
|
||||
+cc_library(
|
||||
+ name = "absl_check",
|
||||
+ deps = [
|
||||
+ ],
|
||||
+)
|
||||
+
|
||||
+cc_library(
|
||||
+ name = "absl_log",
|
||||
+ deps = [
|
||||
+ ],
|
||||
+)
|
||||
+
|
||||
+cc_library(
|
||||
+ name = "check",
|
||||
+ deps = [
|
||||
+ ],
|
||||
+)
|
||||
+
|
||||
+cc_library(
|
||||
+ name = "die_if_null",
|
||||
+ deps = [
|
||||
+ ":log",
|
||||
+ "//absl/base:config",
|
||||
+ "//absl/base:core_headers",
|
||||
+ "//absl/strings",
|
||||
+ ],
|
||||
+)
|
||||
+
|
||||
+cc_library(
|
||||
+ name = "flags",
|
||||
+ deps = [
|
||||
+ ":globals",
|
||||
+ "//absl/base:config",
|
||||
+ "//absl/base:core_headers",
|
||||
+ "//absl/base:log_severity",
|
||||
+ "//absl/flags:flag",
|
||||
+ "//absl/flags:marshalling",
|
||||
+ "//absl/strings",
|
||||
+ ],
|
||||
+)
|
||||
+
|
||||
+cc_library(
|
||||
+ name = "globals",
|
||||
+ deps = [
|
||||
+ "//absl/base:atomic_hook",
|
||||
+ "//absl/base:config",
|
||||
+ "//absl/base:core_headers",
|
||||
+ "//absl/base:log_severity",
|
||||
+ "//absl/hash",
|
||||
+ "//absl/strings",
|
||||
+ ],
|
||||
+)
|
||||
+
|
||||
+cc_library(
|
||||
+ name = "initialize",
|
||||
+ deps = [
|
||||
+ ":globals",
|
||||
+ "//absl/base:config",
|
||||
+ "//absl/time",
|
||||
+ ],
|
||||
+)
|
||||
+
|
||||
+cc_library(
|
||||
+ name = "log",
|
||||
+ deps = [
|
||||
+ ],
|
||||
+)
|
||||
+
|
||||
+cc_library(
|
||||
+ name = "log_entry",
|
||||
+ deps = [
|
||||
+ "//absl/base:config",
|
||||
+ "//absl/base:core_headers",
|
||||
+ "//absl/base:log_severity",
|
||||
+ "//absl/strings",
|
||||
+ "//absl/time",
|
||||
+ "//absl/types:span",
|
||||
+ ],
|
||||
+)
|
||||
+
|
||||
+cc_library(
|
||||
+ name = "log_sink",
|
||||
+ deps = [
|
||||
+ ":log_entry",
|
||||
+ "//absl/base:config",
|
||||
+ ],
|
||||
+)
|
||||
+
|
||||
+cc_library(
|
||||
+ name = "log_sink_registry",
|
||||
+ deps = [
|
||||
+ ":log_sink",
|
||||
+ "//absl/base:config",
|
||||
+ ],
|
||||
+)
|
||||
+
|
||||
+cc_library(
|
||||
+ name = "log_streamer",
|
||||
+ deps = [
|
||||
+ ":absl_log",
|
||||
+ "//absl/base:config",
|
||||
+ "//absl/base:log_severity",
|
||||
+ "//absl/strings",
|
||||
+ "//absl/strings:internal",
|
||||
+ "//absl/types:optional",
|
||||
+ "//absl/utility",
|
||||
+ ],
|
||||
+)
|
||||
+
|
||||
+cc_library(
|
||||
+ name = "scoped_mock_log",
|
||||
+ deps = [
|
||||
+ ":log_entry",
|
||||
+ ":log_sink",
|
||||
+ ":log_sink_registry",
|
||||
+ "//absl/base:config",
|
||||
+ "//absl/base:log_severity",
|
||||
+ "//absl/base:raw_logging_internal",
|
||||
+ "//absl/strings",
|
||||
+ "@com_google_googletest//:gtest",
|
||||
+ ],
|
||||
+)
|
||||
+
|
||||
+cc_library(
|
||||
+ name = "structured",
|
||||
+ deps = [
|
||||
+ "//absl/base:config",
|
||||
+ "//absl/strings",
|
||||
+ ],
|
||||
+)
|
||||
diff -Naurd x/third_party/absl/workspace.bzl y/third_party/absl/workspace.bzl
|
||||
--- x/third_party/absl/workspace.bzl 2023-09-17 09:12:05.499753364 +0000
|
||||
+++ y/third_party/absl/workspace.bzl 2023-09-17 09:12:11.795762177 +0000
|
||||
@@ -20,6 +20,7 @@
|
||||
"flags",
|
||||
"functional",
|
||||
"hash",
|
||||
+ "log",
|
||||
"memory",
|
||||
"meta",
|
||||
"numeric",
|
||||
@@ -1,18 +1,18 @@
|
||||
{ stdenv, bazel_5, buildBazelPackage, isPy3k, lib, fetchFromGitHub, symlinkJoin
|
||||
, addOpenGLRunpath, fetchpatch
|
||||
{ stdenv, bazel_5, buildBazelPackage, lib, fetchFromGitHub, symlinkJoin
|
||||
, addOpenGLRunpath, fetchpatch, fetchzip, linkFarm
|
||||
# Python deps
|
||||
, buildPythonPackage, pythonOlder, python
|
||||
# Python libraries
|
||||
, numpy, tensorboard, absl-py
|
||||
, packaging, setuptools, wheel, keras, keras-preprocessing, google-pasta
|
||||
, numpy, tensorboard, abseil-cpp, absl-py
|
||||
, packaging, setuptools, wheel, keras-preprocessing, google-pasta
|
||||
, opt-einsum, astunparse, h5py
|
||||
, termcolor, grpcio, six, wrapt, protobuf-python, tensorflow-estimator-bin
|
||||
, dill, flatbuffers-python, portpicker, tblib, typing-extensions
|
||||
# Common deps
|
||||
, git, pybind11, which, binutils, glibcLocales, cython, perl, coreutils
|
||||
, git, pybind11, which, binutils, glibcLocales, cython, perl
|
||||
# Common libraries
|
||||
, jemalloc, mpi, gast, grpc, sqlite, boringssl, jsoncpp, nsync
|
||||
, curl, snappy, flatbuffers-core, lmdb-core, icu, double-conversion, libpng, libjpeg_turbo, giflib, protobuf-core
|
||||
, curl, snappy, flatbuffers-core, icu, double-conversion, libpng, libjpeg_turbo, giflib, protobuf-core
|
||||
# Upstream by default includes cuda support since tensorflow 1.15. We could do
|
||||
# that in nix as well. It would make some things easier and less confusing, but
|
||||
# it would also make the default tensorflow package unfree. See
|
||||
@@ -53,7 +53,18 @@ let
|
||||
if cudaSupport then cudaPackages.backendStdenv
|
||||
else if originalStdenv.isDarwin then llvmPackages_11.stdenv
|
||||
else originalStdenv;
|
||||
inherit (cudaPackages) cudatoolkit cudnn nccl;
|
||||
inherit (cudaPackages) cudatoolkit nccl;
|
||||
# use compatible cuDNN (https://www.tensorflow.org/install/source#gpu)
|
||||
# cudaPackages.cudnn led to this:
|
||||
# https://github.com/tensorflow/tensorflow/issues/60398
|
||||
cudnn = cudaPackages.cudnn_8_6;
|
||||
gentoo-patches = fetchzip {
|
||||
url = "https://dev.gentoo.org/~perfinion/patches/tensorflow-patches-2.12.0.tar.bz2";
|
||||
hash = "sha256-SCRX/5/zML7LmKEPJkcM5Tebez9vv/gmE4xhT/jyqWs=";
|
||||
};
|
||||
protobuf-extra = linkFarm "protobuf-extra" [
|
||||
{ name = "include"; path = protobuf-core.src; }
|
||||
];
|
||||
in
|
||||
|
||||
assert cudaSupport -> cudatoolkit != null
|
||||
@@ -99,7 +110,7 @@ let
|
||||
|
||||
tfFeature = x: if x then "1" else "0";
|
||||
|
||||
version = "2.11.1";
|
||||
version = "2.13.0";
|
||||
variant = lib.optionalString cudaSupport "-gpu";
|
||||
pname = "tensorflow${variant}";
|
||||
|
||||
@@ -208,14 +219,14 @@ let
|
||||
owner = "tensorflow";
|
||||
repo = "tensorflow";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-q59cUW6613byHk4LGl+sefO5czLSWxOrSyLbJ1pkNEY=";
|
||||
hash = "sha256-Rq5pAVmxlWBVnph20fkAwbfy+iuBNlfFy14poDPd5h0=";
|
||||
};
|
||||
|
||||
# On update, it can be useful to steal the changes from gentoo
|
||||
# https://gitweb.gentoo.org/repo/gentoo.git/tree/sci-libs/tensorflow
|
||||
|
||||
nativeBuildInputs = [
|
||||
which pythonEnv cython perl protobuf-core
|
||||
which pythonEnv cython perl protobuf-core protobuf-extra
|
||||
] ++ lib.optional cudaSupport addOpenGLRunpath;
|
||||
|
||||
buildInputs = [
|
||||
@@ -225,6 +236,7 @@ let
|
||||
git
|
||||
|
||||
# libs taken from system through the TF_SYS_LIBS mechanism
|
||||
abseil-cpp
|
||||
boringssl
|
||||
curl
|
||||
double-conversion
|
||||
@@ -236,7 +248,6 @@ let
|
||||
jsoncpp
|
||||
libjpeg_turbo
|
||||
libpng
|
||||
lmdb-core
|
||||
(pybind11.overridePythonAttrs (_: { inherit stdenv; }))
|
||||
snappy
|
||||
sqlite
|
||||
@@ -265,6 +276,7 @@ let
|
||||
"astor_archive"
|
||||
"astunparse_archive"
|
||||
"boringssl"
|
||||
"com_google_absl"
|
||||
# Not packaged in nixpkgs
|
||||
# "com_github_googleapis_googleapis"
|
||||
# "com_github_googlecloudplatform_google_cloud_cpp"
|
||||
@@ -284,7 +296,6 @@ let
|
||||
"icu"
|
||||
"jsoncpp_git"
|
||||
"libjpeg_turbo"
|
||||
"lmdb"
|
||||
"nasm"
|
||||
"opt_einsum_archive"
|
||||
"org_sqlite"
|
||||
@@ -328,6 +339,25 @@ let
|
||||
GCC_HOST_COMPILER_PREFIX = lib.optionalString cudaSupport "${cudatoolkit_cc_joined}/bin";
|
||||
GCC_HOST_COMPILER_PATH = lib.optionalString cudaSupport "${cudatoolkit_cc_joined}/bin/cc";
|
||||
|
||||
patches = [
|
||||
"${gentoo-patches}/0002-systemlib-Latest-absl-LTS-has-split-cord-libs.patch"
|
||||
"${gentoo-patches}/0005-systemlib-Updates-for-Abseil-20220623-LTS.patch"
|
||||
"${gentoo-patches}/0007-systemlibs-Add-well_known_types_py_pb2-target.patch"
|
||||
# https://github.com/conda-forge/tensorflow-feedstock/pull/329/commits/0a63c5a962451b4da99a9948323d8b3ed462f461
|
||||
(fetchpatch {
|
||||
name = "fix-layout-proto-duplicate-loading.patch";
|
||||
url = "https://raw.githubusercontent.com/conda-forge/tensorflow-feedstock/0a63c5a962451b4da99a9948323d8b3ed462f461/recipe/patches/0001-Omit-linking-to-layout_proto_cc-if-protobuf-linkage-.patch";
|
||||
hash = "sha256-/7buV6DinKnrgfqbe7KKSh9rCebeQdXv2Uj+Xg/083w=";
|
||||
})
|
||||
./com_google_absl_add_log.patch
|
||||
./absl_py_argparse_flags.patch
|
||||
./protobuf_python.patch
|
||||
./pybind11_protobuf_python_runtime_dep.patch
|
||||
./pybind11_protobuf_newer_version.patch
|
||||
] ++ lib.optionals (stdenv.hostPlatform.system == "aarch64-darwin") [
|
||||
./absl_to_std.patch
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
# bazel 3.3 should work just as well as bazel 3.1
|
||||
rm -f .bazelversion
|
||||
@@ -395,18 +425,30 @@ let
|
||||
fetchAttrs = {
|
||||
sha256 = {
|
||||
x86_64-linux = if cudaSupport
|
||||
then "sha256-lURiR0Ra4kynDXyfuONG+A7CpxnAsfKzIdFTExKzp1o="
|
||||
else "sha256-lDvRgj+UlaneRGZOO9UVCb6uyxcbRJfUhABf/sgKPi0=";
|
||||
aarch64-linux = "sha256-z2d45fqHz5HW+qkv3fR9hMg3sEwUzJfxF54vng85bHk=";
|
||||
x86_64-darwin = "sha256-AAvuz8o6ZRkaSYMgaep74lDDQcxOupDCX4vRaK/jnCU=";
|
||||
aarch64-darwin = "sha256-kexRSvfQqb92ZRuUqAO070RnUUBidAqghiA7Y8do9vc=";
|
||||
then "sha256-5VFMNHeLrUxW5RTr6EhT3pay9nWJ5JkZTGirDds5QkU="
|
||||
else "sha256-KzgWV69Btr84FdwQ5JI2nQEsqiPg1/+TWdbw5bmxXOE=";
|
||||
aarch64-linux = "sha256-9btXrNHqd720oXTPDhSmFidv5iaZRLjCVX8opmrMjXk=";
|
||||
x86_64-darwin = "sha256-gqb03kB0z2pZQ6m1fyRp1/Nbt8AVVHWpOJSeZNCLc4w=";
|
||||
aarch64-darwin = "sha256-WdgAaFZU+ePwWkVBhLzjlNT7ELfGHOTaMdafcAMD5yo=";
|
||||
}.${stdenv.hostPlatform.system} or (throw "unsupported system ${stdenv.hostPlatform.system}");
|
||||
};
|
||||
|
||||
buildAttrs = {
|
||||
outputs = [ "out" "python" ];
|
||||
|
||||
# need to rebuild schemas since we use a different flatbuffers version
|
||||
preBuild = ''
|
||||
(cd tensorflow/lite/schema;${flatbuffers-core}/bin/flatc --gen-object-api -c schema.fbs)
|
||||
(cd tensorflow/lite/schema;${flatbuffers-core}/bin/flatc --gen-object-api -c conversion_metadata.fbs)
|
||||
(cd tensorflow/lite/acceleration/configuration;${flatbuffers-core}/bin/flatc -o configuration.fbs --proto configuration.proto)
|
||||
sed -i s,tflite.proto,tflite,g tensorflow/lite/acceleration/configuration/configuration.fbs/configuration.fbs
|
||||
(cd tensorflow/lite/acceleration/configuration;${flatbuffers-core}/bin/flatc --gen-compare --gen-object-api -c configuration.fbs/configuration.fbs)
|
||||
cp -r tensorflow/lite/acceleration/configuration/configuration.fbs tensorflow/lite/experimental/acceleration/configuration
|
||||
(cd tensorflow/lite/experimental/acceleration/configuration;${flatbuffers-core}/bin/flatc -c configuration.fbs/configuration.fbs)
|
||||
(cd tensorflow/lite/delegates/gpu/cl;${flatbuffers-core}/bin/flatc -c compiled_program_cache.fbs)
|
||||
(cd tensorflow/lite/delegates/gpu/cl;${flatbuffers-core}/bin/flatc -I $NIX_BUILD_TOP/source -c serialization.fbs)
|
||||
(cd tensorflow/lite/delegates/gpu/common;${flatbuffers-core}/bin/flatc -I $NIX_BUILD_TOP/source -c gpu_model.fbs)
|
||||
(cd tensorflow/lite/delegates/gpu/common/task;${flatbuffers-core}/bin/flatc -c serialization_base.fbs)
|
||||
patchShebangs .
|
||||
'';
|
||||
|
||||
@@ -448,10 +490,7 @@ let
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ abbradar ];
|
||||
platforms = with platforms; linux ++ darwin;
|
||||
# More vulnerabilities in 2.11.1 really; https://github.com/tensorflow/tensorflow/releases
|
||||
knownVulnerabilities = [ "CVE-2023-33976" ];
|
||||
broken = true || # most likely needs dealing with protobuf/abseil updates
|
||||
!(xlaSupport -> cudaSupport) || python.pythonVersion == "3.11";
|
||||
broken = stdenv.isDarwin || !(xlaSupport -> cudaSupport);
|
||||
} // lib.optionalAttrs stdenv.isDarwin {
|
||||
timeout = 86400; # 24 hours
|
||||
maxSilent = 14400; # 4h, double the default of 7200s
|
||||
@@ -460,7 +499,7 @@ let
|
||||
|
||||
in buildPythonPackage {
|
||||
inherit version pname;
|
||||
disabled = !isPy3k;
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = bazel-build.python;
|
||||
|
||||
@@ -493,6 +532,7 @@ in buildPythonPackage {
|
||||
# tensorflow/tools/pip_package/setup.py
|
||||
propagatedBuildInputs = [
|
||||
absl-py
|
||||
abseil-cpp
|
||||
astunparse
|
||||
flatbuffers-python
|
||||
gast
|
||||
@@ -529,7 +569,6 @@ in buildPythonPackage {
|
||||
# TEST_PACKAGES in tensorflow/tools/pip_package/setup.py
|
||||
nativeCheckInputs = [
|
||||
dill
|
||||
keras
|
||||
portpicker
|
||||
tblib
|
||||
];
|
||||
@@ -540,18 +579,15 @@ in buildPythonPackage {
|
||||
hello = tf.constant("Hello, world!")
|
||||
tf.print(hello)
|
||||
|
||||
# Fit a simple model to random data
|
||||
import numpy as np
|
||||
np.random.seed(0)
|
||||
tf.random.set_seed(0)
|
||||
model = tf.keras.models.Sequential([
|
||||
tf.keras.layers.Dense(1, activation="linear")
|
||||
])
|
||||
model.compile(optimizer="sgd", loss="mse")
|
||||
|
||||
x = np.random.uniform(size=(1,1))
|
||||
y = np.random.uniform(size=(1,))
|
||||
model.fit(x, y, epochs=1)
|
||||
width = 512
|
||||
choice = 48
|
||||
t_in = tf.Variable(tf.random.uniform(shape=[width]))
|
||||
with tf.GradientTape() as tape:
|
||||
t_out = tf.slice(tf.nn.softmax(t_in), [choice], [1])
|
||||
diff = tape.gradient(t_out, t_in)
|
||||
assert(0 < tf.reduce_min(tf.slice(diff, [choice], [1])))
|
||||
assert(0 > tf.reduce_max(tf.slice(diff, [1], [choice - 1])))
|
||||
EOF
|
||||
'';
|
||||
# Regression test for #77626 removed because not more `tensorflow.contrib`.
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
diff -Naurd x/tensorflow/workspace2.bzl y/tensorflow/workspace2.bzl
|
||||
--- x/tensorflow/workspace2.bzl 2023-09-16 20:44:02.266422132 +0000
|
||||
+++ y/tensorflow/workspace2.bzl 2023-09-16 20:50:40.370998305 +0000
|
||||
@@ -469,6 +469,7 @@
|
||||
system_link_files = {
|
||||
"//third_party/systemlibs:protobuf.bzl": "protobuf.bzl",
|
||||
"//third_party/systemlibs:protobuf_deps.bzl": "protobuf_deps.bzl",
|
||||
+ "//third_party/systemlibs:protobuf.python.BUILD": "python/BUILD",
|
||||
},
|
||||
urls = tf_mirror_urls("https://github.com/protocolbuffers/protobuf/archive/v3.21.9.zip"),
|
||||
)
|
||||
diff -Naurd x/third_party/systemlibs/protobuf.python.BUILD y/third_party/systemlibs/protobuf.python.BUILD
|
||||
--- x/third_party/systemlibs/protobuf.python.BUILD 1970-01-01 00:00:00.000000000 +0000
|
||||
+++ y/third_party/systemlibs/protobuf.python.BUILD 2023-09-16 20:49:12.514890584 +0000
|
||||
@@ -0,0 +1,4 @@
|
||||
+cc_library(
|
||||
+ name = "proto_api",
|
||||
+ visibility = ["//visibility:public"]
|
||||
+)
|
||||
@@ -0,0 +1,16 @@
|
||||
diff -Naurd x/tensorflow/workspace2.bzl y/tensorflow/workspace2.bzl
|
||||
--- x/tensorflow/workspace2.bzl 2023-09-21 12:55:06.104407343 +0000
|
||||
+++ y/tensorflow/workspace2.bzl 2023-09-21 12:55:39.732453203 +0000
|
||||
@@ -872,9 +872,9 @@
|
||||
|
||||
tf_http_archive(
|
||||
name = "pybind11_protobuf",
|
||||
- urls = tf_mirror_urls("https://github.com/pybind/pybind11_protobuf/archive/80f3440cd8fee124e077e2e47a8a17b78b451363.zip"),
|
||||
- sha256 = "c7ab64b1ccf9a678694a89035a8c865a693e4e872803778f91f0965c2f281d78",
|
||||
- strip_prefix = "pybind11_protobuf-80f3440cd8fee124e077e2e47a8a17b78b451363",
|
||||
+ urls = tf_mirror_urls("https://github.com/pybind/pybind11_protobuf/archive/c8cc30e2495309e3499b7d76033446236d21c837.zip"),
|
||||
+ sha256 = "0663f73b34c0b4af55003edbb066e62aceff99bfcf12e47ea9a15d6013d81413",
|
||||
+ strip_prefix = "pybind11_protobuf-c8cc30e2495309e3499b7d76033446236d21c837",
|
||||
patch_file = [
|
||||
"//third_party/pybind11_protobuf:remove_license.patch",
|
||||
"//third_party/pybind11_protobuf:python_runtime_dep.patch",
|
||||
@@ -0,0 +1,30 @@
|
||||
diff -Naurd x/tensorflow/workspace2.bzl y/tensorflow/workspace2.bzl
|
||||
--- x/tensorflow/workspace2.bzl 2023-09-17 22:22:22.029075202 +0000
|
||||
+++ y/tensorflow/workspace2.bzl 2023-09-17 22:25:27.501289587 +0000
|
||||
@@ -876,7 +876,10 @@
|
||||
urls = tf_mirror_urls("https://github.com/pybind/pybind11_protobuf/archive/80f3440cd8fee124e077e2e47a8a17b78b451363.zip"),
|
||||
sha256 = "c7ab64b1ccf9a678694a89035a8c865a693e4e872803778f91f0965c2f281d78",
|
||||
strip_prefix = "pybind11_protobuf-80f3440cd8fee124e077e2e47a8a17b78b451363",
|
||||
- patch_file = ["//third_party/pybind11_protobuf:remove_license.patch"],
|
||||
+ patch_file = [
|
||||
+ "//third_party/pybind11_protobuf:remove_license.patch",
|
||||
+ "//third_party/pybind11_protobuf:python_runtime_dep.patch",
|
||||
+ ],
|
||||
)
|
||||
|
||||
tf_http_archive(
|
||||
diff -Naurd x/third_party/pybind11_protobuf/python_runtime_dep.patch y/third_party/pybind11_protobuf/python_runtime_dep.patch
|
||||
--- x/third_party/pybind11_protobuf/python_runtime_dep.patch 1970-01-01 00:00:00.000000000 +0000
|
||||
+++ y/third_party/pybind11_protobuf/python_runtime_dep.patch 2023-09-17 22:23:07.849128180 +0000
|
||||
@@ -0,0 +1,11 @@
|
||||
+diff -Naurd x/pybind11_protobuf/BUILD y/pybind11_protobuf/BUILD
|
||||
+--- x/pybind11_protobuf/BUILD 2023-09-17 22:17:19.932725814 +0000
|
||||
++++ y/pybind11_protobuf/BUILD 2023-09-17 22:20:44.056961932 +0000
|
||||
+@@ -86,6 +86,7 @@
|
||||
+ "//visibility:private",
|
||||
+ ],
|
||||
+ deps = [
|
||||
++ "@org_tensorflow//third_party/python_runtime:headers",
|
||||
+ "@com_google_absl//absl/container:flat_hash_map",
|
||||
+ "@com_google_absl//absl/container:flat_hash_set",
|
||||
+ "@com_google_absl//absl/meta:type_traits",
|
||||
@@ -1,26 +1,38 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pytestCheckHook
|
||||
, fetchpatch
|
||||
, pythonOlder
|
||||
, torch
|
||||
, torchvision
|
||||
, pytestCheckHook
|
||||
, transformers
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "torchinfo";
|
||||
version = "1.64";
|
||||
version = "1.8.0";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "TylerYep";
|
||||
repo = pname;
|
||||
repo = "torchinfo";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-gcl8RxCD017FP4LtB60WVtOh7jg2Otv/vNd9hKneEAU=";
|
||||
hash = "sha256-pPjg498aT8y4b4tqIzNxxKyobZX01u+66ScS/mee51Q=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchpatch { # Add support for Python 3.11 and pytorch 2.1
|
||||
url = "https://github.com/TylerYep/torchinfo/commit/c74784c71c84e62bcf56664653b7f28d72a2ee0d.patch";
|
||||
hash = "sha256-xSSqs0tuFpdMXUsoVv4sZLCeVnkK6pDDhX/Eobvn5mw=";
|
||||
includes = [
|
||||
"torchinfo/model_statistics.py"
|
||||
];
|
||||
})
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
torch
|
||||
torchvision
|
||||
@@ -28,17 +40,23 @@ buildPythonPackage rec {
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
transformers
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
export HOME=$(mktemp -d)
|
||||
'';
|
||||
|
||||
disabledTests = [
|
||||
# Skip as it downloads pretrained weights (require network access)
|
||||
"test_eval_order_doesnt_matter"
|
||||
"test_flan_t5_small"
|
||||
# AssertionError in output
|
||||
"test_google"
|
||||
];
|
||||
|
||||
disabledTestPaths = [
|
||||
# Wants "compressai", which we don't package (2023-03-23)
|
||||
# Test requires network access
|
||||
"tests/torchinfo_xl_test.py"
|
||||
];
|
||||
|
||||
|
||||
@@ -2,13 +2,13 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "flow";
|
||||
version = "0.218.0";
|
||||
version = "0.219.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "facebook";
|
||||
repo = "flow";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-QmC1K2msiIN7bBwlrsQ8in3YGUoVqf2w21HbiLULWhM=";
|
||||
sha256 = "sha256-cg0tqwvYQ43Nvu6fQHGEX002sjmDBcz2AGke+K5Gk7g=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "doctl";
|
||||
version = "1.99.0";
|
||||
version = "1.100.0";
|
||||
|
||||
vendorHash = null;
|
||||
|
||||
@@ -31,7 +31,7 @@ buildGoModule rec {
|
||||
owner = "digitalocean";
|
||||
repo = "doctl";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-xwkbekTnwisgr1gkUewMkz0E5iQg6bWgVz8tne7ME9Y=";
|
||||
sha256 = "sha256-1NQ09Cn62VUi670y1jq8W05a9dg1CdQypIIh1QmR0p0=";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
|
||||
@@ -2,16 +2,16 @@
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "earthly";
|
||||
version = "0.7.19";
|
||||
version = "0.7.21";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "earthly";
|
||||
repo = "earthly";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-Qs2Ik559KOhkwTSaEoYLqy4m9y/mRp7XThArKOkH3uI=";
|
||||
hash = "sha256-ts+XSPRkDQElyM8nr6Vtf8Ov6C5OoiIhMNnFv6YA2bw=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-h3/FmhcXwRvDoOwJ643ze3GrV13tIhnnIMynQgf5emg=";
|
||||
vendorHash = "sha256-/ZHoi5aHJ79kjUgbFKBVHDZyVyCdFfY/fJDrHdUmuUE=";
|
||||
subPackages = [ "cmd/earthly" "cmd/debugger" ];
|
||||
|
||||
CGO_ENABLED = 0;
|
||||
|
||||
@@ -15,16 +15,16 @@
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "espup";
|
||||
version = "0.6.1";
|
||||
version = "0.7.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "esp-rs";
|
||||
repo = "espup";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-2LSlnGte65eemlDw67mPhmf+RuLwnbavNyMYMLgrx/E=";
|
||||
hash = "sha256-D5ck96nR8agiYf1t6ViOaEWws9AQ0EBZ48YKp68jfRA=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-4Gm8nQIsZzaPYtqf7eAyX0iX0rUFBnEiavJR1qcc8/g=";
|
||||
cargoHash = "sha256-mKpAGS6Rxoq2v/VW0AncVx/9BjvG7wM8ePTR+661e5U=";
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
|
||||
@@ -18,13 +18,13 @@ let
|
||||
in
|
||||
buildGoModule rec {
|
||||
pname = "faas-cli";
|
||||
version = "0.16.16";
|
||||
version = "0.16.17";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "openfaas";
|
||||
repo = "faas-cli";
|
||||
rev = version;
|
||||
sha256 = "sha256-QYwUXZdix5GeOYF3F9XR4lIE9cKZGGgEOtROzirLw3o=";
|
||||
sha256 = "sha256-AiYqMXLc8YaPILx5TnL8E3xrYCDqBUfI+zzFQIknNJE=";
|
||||
};
|
||||
|
||||
vendorHash = null;
|
||||
|
||||
@@ -2,17 +2,17 @@
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "gopls";
|
||||
version = "0.13.2";
|
||||
version = "0.14.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "golang";
|
||||
repo = "tools";
|
||||
rev = "gopls/v${version}";
|
||||
hash = "sha256-fRpVAYg4UwRe3bcjQPOnCGWSANfoTwD5Y9vs3QET1eM=";
|
||||
hash = "sha256-zCiNd0HhGdN65wD7Z6lbGLhvGi8BFtq7X5QDpYl0/Fw=";
|
||||
};
|
||||
|
||||
modRoot = "gopls";
|
||||
vendorHash = "sha256-9d7vgCMc1M5Cab+O10lQmKGfL9gqO3sajd+3rF5cums=";
|
||||
vendorHash = "sha256-BK2s44EtMjAEDXZeQHdiIb1tUMogujcDM7tRwO7LMRw=";
|
||||
|
||||
doCheck = false;
|
||||
|
||||
|
||||
Generated
-3696
File diff suppressed because it is too large
Load Diff
@@ -11,22 +11,16 @@
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "ruff";
|
||||
version = "0.0.292";
|
||||
version = "0.1.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "astral-sh";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-4D7p5ZMdyemDBaWcCO62bhuPPcIypegqP0YZeX+GJRQ=";
|
||||
repo = "ruff";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-AHnEvDzuQd6W+n9wXhMt6TJwoH1rZEY5UXbhFGwl8+g=";
|
||||
};
|
||||
|
||||
cargoLock = {
|
||||
lockFile = ./Cargo.lock;
|
||||
outputHashes = {
|
||||
"libcst-0.1.0" = "sha256-f4lR1vf0iL6WS7yXUzWUt/tax+xjU6rylG1EgeLex88=";
|
||||
"unicode_names2-0.6.0" = "sha256-eWg9+ISm/vztB0KIdjhq5il2ZnwGJQCleCYfznCI3Wg=";
|
||||
};
|
||||
};
|
||||
cargoHash = "sha256-E4alnDonG45JBAKdLI2eaI+fXW2xOo21HI2UtBEVTx0=";
|
||||
|
||||
nativeBuildInputs = [
|
||||
installShellFiles
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
, fetchFromGitHub
|
||||
, stdenv
|
||||
, Security
|
||||
, SystemConfiguration
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
@@ -20,7 +21,7 @@ rustPlatform.buildRustPackage rec {
|
||||
|
||||
nativeBuildInputs = [ rustPlatform.bindgenHook ];
|
||||
|
||||
buildInputs = lib.optional stdenv.isDarwin Security;
|
||||
buildInputs = lib.optionals stdenv.isDarwin [ Security SystemConfiguration ];
|
||||
|
||||
preCheck = "HOME=$(mktemp -d)";
|
||||
|
||||
|
||||
@@ -9,16 +9,16 @@
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "supabase-cli";
|
||||
version = "1.102.2";
|
||||
version = "1.107.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "supabase";
|
||||
repo = "cli";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-EhGGqBJdAnlccUFDUqzbujaVnQ8VggjY6vlGjI80TN8=";
|
||||
hash = "sha256-uR7Iu1PdnzWp9+IJ5szUR6r+qKckyD6LFgsY5YQxT5c=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-AiYLSXDmTrswAd64PjF0OH0/z4blAP68HfWlwL48fww=";
|
||||
vendorHash = "sha256-gWGoRKlSo0C1gFU/kC4DcgOl0Mp5LCTpSZ1Yav0ZL9c=";
|
||||
|
||||
ldflags = [
|
||||
"-s"
|
||||
|
||||
@@ -2,16 +2,16 @@
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "upbound";
|
||||
version = "0.19.1";
|
||||
version = "0.21.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = pname;
|
||||
repo = "up";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-Dr6EKpKVy2DLhivJ42Bx+WJL2L710sQlXroaAm66Gpo=";
|
||||
sha256 = "sha256-SvnmdpsdXbPSC+4inoMvu55az33Zucqf4c3yQ0g6EMw=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-J7rZAvEx0jgkhJIEE19rV2WdBCIvkqYzB72ZiABs56U=";
|
||||
vendorHash = "sha256-ai+Mro/ooUElJJq8BbnCo9PupIAwlanDeh+oe5otJJ4=";
|
||||
|
||||
subPackages = [ "cmd/docker-credential-up" "cmd/up" ];
|
||||
|
||||
|
||||
@@ -6,16 +6,16 @@
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "exportarr";
|
||||
version = "1.5.5";
|
||||
version = "1.6.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "onedr0p";
|
||||
repo = "exportarr";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-qe3i/sukAkE3DNiSc5BsY9OFWoAVuLsuYStlPfpVZQQ=";
|
||||
hash = "sha256-jmvVhNaE0cVLHTLH6qKIi4ETr7Q8CTEhXPwzjWyfx5k=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-M+XDd2ubF4HLpFNPlhn++YXWwPwL6+5TMU+BDdkP+k0=";
|
||||
vendorHash = "sha256-AYuyOAU7T9YluX77zPu4o377L4wCQzVUrQunt0UIZlU=";
|
||||
|
||||
subPackages = [ "cmd/exportarr" ];
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "pg_cron";
|
||||
version = "1.6.1";
|
||||
version = "1.6.2";
|
||||
|
||||
buildInputs = [ postgresql ];
|
||||
|
||||
@@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
|
||||
owner = "citusdata";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-GvxlaSfsqOiF1mrGo9jVv/K3xVInutkRN3AJHXKUBHQ=";
|
||||
hash = "sha256-/dD1gX0+RRsBFIjSV9TVk+ppPw0Jrzssl+rRZ2qAp4w=";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
buildPythonApplication rec {
|
||||
pname = "Tautulli";
|
||||
version = "2.13.1";
|
||||
version = "2.13.2";
|
||||
format = "other";
|
||||
|
||||
pythonPath = [ setuptools ];
|
||||
@@ -12,7 +12,7 @@ buildPythonApplication rec {
|
||||
owner = "Tautulli";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-+uVBvtwMJRqPWJKQ0Tn9wLiuR02Btsbxd9+rl9tAlgg=";
|
||||
sha256 = "sha256-G1YNOJ2snddhFOWDkRQikQ1qC3G1BHg+qb2j5ffIR8k=";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
|
||||
@@ -4159,11 +4159,11 @@ self: with self; {
|
||||
# THIS IS A GENERATED FILE. DO NOT EDIT!
|
||||
xorgserver = callPackage ({ stdenv, pkg-config, fetchurl, xorgproto, openssl, libX11, libXau, libxcb, xcbutil, xcbutilwm, xcbutilimage, xcbutilkeysyms, xcbutilrenderutil, libXdmcp, libXfixes, libxkbfile, testers }: stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "xorg-server";
|
||||
version = "21.1.8";
|
||||
version = "21.1.9";
|
||||
builder = ./builder.sh;
|
||||
src = fetchurl {
|
||||
url = "mirror://xorg/individual/xserver/xorg-server-21.1.8.tar.xz";
|
||||
sha256 = "0lmimvaw9x0ymdhjfqsrbx689bcapy8c24ajw9705j2harrxpaiq";
|
||||
url = "mirror://xorg/individual/xserver/xorg-server-21.1.9.tar.xz";
|
||||
sha256 = "0fjk9ggcrn96blq0bm80739yj23s3gjjjsc0nxk4jk0v07i7nsgz";
|
||||
};
|
||||
hardeningDisable = [ "bindnow" "relro" ];
|
||||
strictDeps = true;
|
||||
|
||||
@@ -218,4 +218,4 @@ mirror://xorg/individual/util/lndir-1.0.4.tar.xz
|
||||
mirror://xorg/individual/util/makedepend-1.0.8.tar.xz
|
||||
mirror://xorg/individual/util/util-macros-1.20.0.tar.xz
|
||||
mirror://xorg/individual/util/xorg-cf-files-1.0.8.tar.xz
|
||||
mirror://xorg/individual/xserver/xorg-server-21.1.8.tar.xz
|
||||
mirror://xorg/individual/xserver/xorg-server-21.1.9.tar.xz
|
||||
|
||||
@@ -13,11 +13,11 @@ let
|
||||
in
|
||||
buildPythonApplication rec {
|
||||
pname = "arandr";
|
||||
version = "0.1.10";
|
||||
version = "0.1.11";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://christian.amsuess.com/tools/arandr/files/${pname}-${version}.tar.gz";
|
||||
sha256 = "135q0llvm077jil2fr92ssw3p095m4r8jfj0lc5rr3m71n4srj6v";
|
||||
hash = "sha256-5Mu+Npi7gSs5V3CHAXS+AJS7rrOREFqBH5X0LrGCrgI=";
|
||||
};
|
||||
|
||||
preBuild = ''
|
||||
@@ -31,10 +31,10 @@ buildPythonApplication rec {
|
||||
nativeBuildInputs = [ gobject-introspection wrapGAppsHook ];
|
||||
propagatedBuildInputs = [ xrandr pygobject3 ];
|
||||
|
||||
meta = {
|
||||
meta = with lib; {
|
||||
homepage = "https://christian.amsuess.com/tools/arandr/";
|
||||
description = "A simple visual front end for XRandR";
|
||||
license = lib.licenses.gpl3;
|
||||
maintainers = [ lib.maintainers.domenkozar ];
|
||||
license = licenses.gpl3;
|
||||
maintainers = with maintainers; [ gepbird ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -18,13 +18,13 @@
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "drawterm";
|
||||
version = "unstable-2023-08-22";
|
||||
version = "unstable-2023-09-03";
|
||||
|
||||
src = fetchFrom9Front {
|
||||
owner = "plan9front";
|
||||
repo = "drawterm";
|
||||
rev = "c91c6fac9d725716ca6ecc3002053f941137f24f";
|
||||
hash = "sha256-oGcKRx1tP2jeshHhaCHPRKmwKQ3WPYK1tHGGt1/3oDU=";
|
||||
rev = "c4ea4d299aa1bbbcc972c04adf06c18245ce7674";
|
||||
hash = "sha256-Tp3yZb1nteOlz/KhydFdjBrj3OrY20s/Ltfk/EBrIyk=";
|
||||
};
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
@@ -14,7 +14,7 @@ bundlerApp {
|
||||
description = "A network device configuration backup tool. It's a RANCID replacement!";
|
||||
homepage = "https://github.com/ytti/oxidized";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ nicknovitski netali ];
|
||||
maintainers = with maintainers; [ nicknovitski ] ++ teams.wdz.members;
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "trinsic-cli";
|
||||
version = "1.11.0";
|
||||
version = "1.12.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/trinsic-id/sdk/releases/download/v${version}/trinsic-cli-vendor-${version}.tar.gz";
|
||||
sha256 = "sha256-kWdayQRV/VHgvBhGLc67qTXFz6Ufec6h+1ihrIdkCs4=";
|
||||
sha256 = "sha256-dKVbiqLhcN8QALOyvTIlgsODWOQv6zRBXrRVB6KxpJg=";
|
||||
};
|
||||
|
||||
cargoVendorDir = "vendor";
|
||||
|
||||
@@ -21,7 +21,9 @@ stdenv.mkDerivation rec {
|
||||
autoreconfHook
|
||||
];
|
||||
|
||||
buildInputs = [ neon zlib ];
|
||||
buildInputs = [
|
||||
zlib
|
||||
];
|
||||
|
||||
patches = [
|
||||
./fix-sysconfdir.patch
|
||||
@@ -36,7 +38,10 @@ stdenv.mkDerivation rec {
|
||||
})
|
||||
];
|
||||
|
||||
configureFlags = [ "--sysconfdir=/etc" ];
|
||||
configureFlags = [
|
||||
"--sysconfdir=/etc"
|
||||
"--with-neon=${lib.getLib neon}"
|
||||
];
|
||||
|
||||
meta = {
|
||||
homepage = "https://savannah.nongnu.org/projects/davfs2";
|
||||
|
||||
@@ -20,14 +20,14 @@ stdenv.mkDerivation {
|
||||
# Determine version and revision from:
|
||||
# https://sourceforge.net/p/netpbm/code/HEAD/log/?path=/advanced
|
||||
pname = "netpbm";
|
||||
version = "11.4.2";
|
||||
version = "11.4.3";
|
||||
|
||||
outputs = [ "bin" "out" "dev" ];
|
||||
|
||||
src = fetchsvn {
|
||||
url = "https://svn.code.sf.net/p/netpbm/code/advanced";
|
||||
rev = "4709";
|
||||
sha256 = "HT1cw6y5cOTMrBolfXwhKtMQYBPCPPO+Flv3aWeOK0A=";
|
||||
rev = "4776";
|
||||
sha256 = "h8QjYc4VYJY1fSwCyqn6am/L0tv02ux1lQZfYov1XFA=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
||||
@@ -12,16 +12,16 @@
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "fend";
|
||||
version = "1.2.2";
|
||||
version = "1.3.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "printfn";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-9O+2vCi3CagpIU5pZPA8tLVhyC7KHn93trYdNhsT4n4=";
|
||||
sha256 = "sha256-iF1E9wBX9UVv/zuCgznXqKLBF+Xk0LqVdJfxFNpmzRI=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-mRIwmZwO/uqfUJ12ZYKZFPoefvo055Tp+DrfKsoP9q4=";
|
||||
cargoHash = "sha256-xf4Q6nk2sYuAV+B7dsRF+feiLRKLXDSHnlYmw+o5bNc=";
|
||||
|
||||
nativeBuildInputs = [ pandoc installShellFiles copyDesktopItems ];
|
||||
buildInputs = lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ];
|
||||
|
||||
@@ -76,6 +76,9 @@ python3.pkgs.buildPythonApplication rec {
|
||||
"test_running_in_different_dir_works"
|
||||
"test_unable_to_reconstruct_message_pythonpath"
|
||||
"test_with_subcommand"
|
||||
# Broken since ruff was updated to 0.1.2
|
||||
# A PR was opened upstream: https://github.com/nbQA-dev/nbQA/issues/834
|
||||
"test_ruff_works"
|
||||
];
|
||||
|
||||
disabledTestPaths = [
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
{ lib, fetchFromGitHub, perlPackages, autoreconfHook, iproute2, perl, curl }:
|
||||
{ lib, fetchFromGitHub, perlPackages, autoreconfHook, perl, curl }:
|
||||
|
||||
let
|
||||
myPerl = perl.withPackages (ps: [ ps.JSONPP ]);
|
||||
in
|
||||
perlPackages.buildPerlPackage rec {
|
||||
pname = "ddclient";
|
||||
version = "3.11.0";
|
||||
version = "3.11.1";
|
||||
|
||||
outputs = [ "out" ];
|
||||
|
||||
@@ -13,7 +13,7 @@ perlPackages.buildPerlPackage rec {
|
||||
owner = "ddclient";
|
||||
repo = "ddclient";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-s/gdTvEY4QIVidqNnN7GYrpCsp4nZ0GEH8Jv+LkSr48=";
|
||||
sha256 = "sha256-OM+JW3HP0llzyJNqmP5PLZ30TOvC2nA1bWwOspTbZZM=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
|
||||
@@ -23,6 +23,6 @@ rustPlatform.buildRustPackage rec {
|
||||
description = "A iperf3 client and server wrapper for dynamic server ports";
|
||||
homepage = "https://github.com/wobcom/iperf3d";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.netali ];
|
||||
maintainers = with maintainers; [ netali ] ++ teams.wdz.members;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -6,11 +6,11 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "miniupnpc";
|
||||
version = "2.2.4";
|
||||
version = "2.2.5";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://miniupnp.tuxfamily.org/files/${pname}-${version}.tar.gz";
|
||||
sha256 = "0jrc84lkc7xb53rb8dbswxrxj21ndj1iiclmk3r9wkp6xm55w6j8";
|
||||
sha256 = "sha256-OKzV9GAvfPi83B7DCy1Y2y6ZEuXZ9TUN2ZsGv9/7UXw=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
|
||||
@@ -5,16 +5,16 @@
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "ooniprobe-cli";
|
||||
version = "3.18.1";
|
||||
version = "3.19.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ooni";
|
||||
repo = "probe-cli";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-abCglaMFW6zPc53IU8Bgl/SaoIh1N9i3xDcfOnJypls=";
|
||||
hash = "sha256-W3C4KbZnOdljofnlYZk/F6E77/AXjdNTRoWrtoEVfqg=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-olirtvnOIKvNXJsanv5UFTcpj7RpPAa5OP0qYTv4wtk=";
|
||||
vendorHash = "sha256-wEhh0nMdFH9wLfNSxYvbkbtu69cNEmVpQDk57/gdnw8=";
|
||||
|
||||
subPackages = [ "cmd/ooniprobe" ];
|
||||
|
||||
|
||||
@@ -7,13 +7,13 @@
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "dt";
|
||||
version = "1.2.4";
|
||||
version = "1.2.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "so-dang-cool";
|
||||
repo = "dt";
|
||||
rev = "v${finalAttrs.version}";
|
||||
hash = "sha256-u9MI6mrP+QXr3VDgmXW7GRkHKCiDoA9HlznTEGNsck4=";
|
||||
hash = "sha256-i8oMrsPcINVK5kXzrN+lcPqBfxIeed8W+NF7Qd0crrk=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ zig_0_11.hook ];
|
||||
|
||||
@@ -65,10 +65,12 @@ in
|
||||
cp -r lib-satysfi/dist/ $out/share/satysfi/
|
||||
cp -r \
|
||||
${ipaexfont}/share/fonts/opentype/* \
|
||||
${junicode}/share/fonts/junicode-ttf/* \
|
||||
${lmodern}/share/fonts/opentype/public/lm/* \
|
||||
${lmmath}/share/fonts/opentype/latinmodern-math.otf \
|
||||
$out/share/satysfi/dist/fonts
|
||||
${junicode}/share/fonts/truetype/Junicode-{Bold,BoldItalic,Italic}.ttf \
|
||||
$out/share/satysfi/dist/fonts/
|
||||
cp ${junicode}/share/fonts/truetype/Junicode-Regular.ttf \
|
||||
$out/share/satysfi/dist/fonts/Junicode.ttf
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
||||
@@ -449,6 +449,7 @@ mapAliases ({
|
||||
librtlsdr = rtl-sdr; # Added 2023-02-18
|
||||
librewolf-wayland = librewolf; # Added 2022-11-15
|
||||
libseat = seatd; # Added 2021-06-24
|
||||
libsigcxx12 = throw "'libsigcxx12' has been removed, please use newer versions"; # Added 2023-10-20
|
||||
libsForQt515 = libsForQt5; # Added 2022-11-24
|
||||
libtensorflow-bin = libtensorflow; # Added 2022-09-25
|
||||
libtorrentRasterbar = libtorrent-rasterbar; # Added 2020-12-20
|
||||
|
||||
@@ -10948,7 +10948,7 @@ with pkgs;
|
||||
mole = callPackage ../tools/networking/mole { };
|
||||
|
||||
morgen = callPackage ../applications/office/morgen {
|
||||
electron = electron_22;
|
||||
electron = electron_25; # blank screen with electron_26
|
||||
};
|
||||
|
||||
mosh = callPackage ../tools/networking/mosh { };
|
||||
@@ -17166,7 +17166,7 @@ with pkgs;
|
||||
|
||||
cargo-sort = callPackage ../development/tools/rust/cargo-sort { };
|
||||
cargo-spellcheck = callPackage ../development/tools/rust/cargo-spellcheck {
|
||||
inherit (darwin.apple_sdk.frameworks) Security;
|
||||
inherit (darwin.apple_sdk.frameworks) Security SystemConfiguration;
|
||||
};
|
||||
cargo-supply-chain = callPackage ../development/tools/rust/cargo-supply-chain { };
|
||||
cargo-sweep = callPackage ../development/tools/rust/cargo-sweep { };
|
||||
@@ -23457,8 +23457,6 @@ with pkgs;
|
||||
|
||||
libsigcxx = callPackage ../development/libraries/libsigcxx { };
|
||||
|
||||
libsigcxx12 = callPackage ../development/libraries/libsigcxx/1.2.nix { };
|
||||
|
||||
libsigcxx30 = callPackage ../development/libraries/libsigcxx/3.0.nix { };
|
||||
|
||||
libsigsegv = callPackage ../development/libraries/libsigsegv { };
|
||||
@@ -26040,10 +26038,6 @@ with pkgs;
|
||||
};
|
||||
|
||||
# Steel Bank Common Lisp
|
||||
sbclBootstrap = wrapLisp {
|
||||
pkg = callPackage ../development/compilers/sbcl/bootstrap.nix {};
|
||||
faslExt = "fasl";
|
||||
};
|
||||
sbcl_2_3_8 = wrapLisp {
|
||||
pkg = callPackage ../development/compilers/sbcl/2.x.nix { version = "2.3.8"; };
|
||||
faslExt = "fasl";
|
||||
@@ -31952,6 +31946,10 @@ with pkgs;
|
||||
|
||||
flex-ndax = callPackage ../applications/radio/flex-ndax { };
|
||||
|
||||
floorp-unwrapped = callPackage ../applications/networking/browsers/floorp { };
|
||||
|
||||
floorp = wrapFirefox floorp-unwrapped { };
|
||||
|
||||
fluxbox = callPackage ../applications/window-managers/fluxbox { };
|
||||
|
||||
hackedbox = callPackage ../applications/window-managers/hackedbox { };
|
||||
|
||||
@@ -13689,16 +13689,62 @@ self: super: with self; {
|
||||
inherit (pkgs.config) cudaSupport;
|
||||
};
|
||||
|
||||
tensorflow-build = callPackage ../development/python-modules/tensorflow {
|
||||
tensorflow-build = let
|
||||
compat = rec {
|
||||
protobufTF = pkgs.protobuf3_21.override {
|
||||
abseil-cpp = pkgs.abseil-cpp;
|
||||
};
|
||||
grpcTF = (pkgs.grpc.overrideAttrs (
|
||||
oldAttrs: rec {
|
||||
# nvcc fails on recent grpc versions, so we use the latest patch level
|
||||
# of the grpc version bundled by upstream tensorflow to allow CUDA
|
||||
# support
|
||||
version = "1.27.3";
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "grpc";
|
||||
repo = "grpc";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-PpiOT4ZJe1uMp5j+ReQulC9jpT0xoR2sAl6vRYKA0AA=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
patches = [ ];
|
||||
postPatch = ''
|
||||
sed -i "s/-std=c++11/-std=c++17/" CMakeLists.txt
|
||||
echo "set(CMAKE_CXX_STANDARD 17)" >> CMakeLists.txt
|
||||
'';
|
||||
})
|
||||
).override {
|
||||
protobuf = protobufTF;
|
||||
};
|
||||
protobuf-pythonTF = self.protobuf.override {
|
||||
protobuf = protobufTF;
|
||||
};
|
||||
grpcioTF = self.grpcio.override {
|
||||
protobuf = protobufTF;
|
||||
grpc = grpcTF;
|
||||
};
|
||||
tensorboard-plugin-profileTF = self.tensorboard-plugin-profile.override {
|
||||
protobuf = protobuf-pythonTF;
|
||||
};
|
||||
tensorboardTF = self.tensorboard.override {
|
||||
grpcio = grpcioTF;
|
||||
protobuf = protobuf-pythonTF;
|
||||
tensorboard-plugin-profile = tensorboard-plugin-profileTF;
|
||||
};
|
||||
};
|
||||
in
|
||||
callPackage ../development/python-modules/tensorflow {
|
||||
inherit (pkgs.darwin) cctools;
|
||||
inherit (pkgs.config) cudaSupport;
|
||||
inherit (self.tensorflow-bin) cudaPackages;
|
||||
inherit (pkgs.darwin.apple_sdk.frameworks) Foundation Security;
|
||||
flatbuffers-core = pkgs.flatbuffers;
|
||||
flatbuffers-python = self.flatbuffers;
|
||||
protobuf-core = pkgs.protobuf;
|
||||
protobuf-python = self.protobuf;
|
||||
lmdb-core = pkgs.lmdb;
|
||||
protobuf-core = compat.protobufTF;
|
||||
protobuf-python = compat.protobuf-pythonTF;
|
||||
grpc = compat.grpcTF;
|
||||
grpcio = compat.grpcioTF;
|
||||
tensorboard = compat.tensorboardTF;
|
||||
};
|
||||
|
||||
tensorflow-datasets = callPackage ../development/python-modules/tensorflow-datasets { };
|
||||
|
||||
Reference in New Issue
Block a user