Running nixpkgs-update (https://nix-community.org/update-bot/) with UPDATE_INFO: netpbm 0 -> 1 attrpath: netpbm Checking auto update branch... [version] [version] skipping because derivation has updateScript [rustCrateVersion] [rustCrateVersion] No cargoHash found [golangModuleVersion] [golangModuleVersion] Not a buildGoModule package with vendorHash [npmDepsVersion] [npmDepsVersion] No npmDepsHash [updateScript] [updateScript] Success [updateScript] this derivation will be built: /nix/store/zn8jkc5l8jpskkymsca5h3g9qiy58k3v-packages.json.drv building '/nix/store/zn8jkc5l8jpskkymsca5h3g9qiy58k3v-packages.json.drv'... Going to be running update for following packages: - netpbm-11.13.1 Press Enter key to continue... Running update for: Enqueuing group of 1 packages - netpbm-11.13.1: UPDATING ... - netpbm-11.13.1: DONE. Packages updated! Diff after rewrites: diff --git a/pkgs/by-name/ne/netpbm/package.nix b/pkgs/by-name/ne/netpbm/package.nix index d9b346ac227d..97c1258bd62b 100644 --- a/pkgs/by-name/ne/netpbm/package.nix +++ b/pkgs/by-name/ne/netpbm/package.nix @@ -21,7 +21,7 @@ stdenv.mkDerivation (finalAttrs: { # Determine version and revision from: # https://sourceforge.net/p/netpbm/code/HEAD/log/?path=/advanced pname = "netpbm"; - version = "11.13.1"; + version = "11.13.3"; outputs = [ "bin" @@ -31,8 +31,8 @@ stdenv.mkDerivation (finalAttrs: { src = fetchsvn { url = "https://svn.code.sf.net/p/netpbm/code/advanced"; - rev = "5148"; - sha256 = "sha256-Dj0S6mnSZXXrIcKTI90XjDVn0uMrC60hsKCcerayTdU="; + rev = "5164"; + sha256 = "sha256-3teRW9oucwv0+V+eyLVvh8Y2NtrFoyIt1JWoC2gyVgM="; }; nativeBuildInputs = [ No auto update branch exists Old version 11.13.1" not present in staging derivation file with contents: { lib, stdenv, fetchsvn, pkg-config, libjpeg, libpng, jbigkit, flex, zlib, perl, libxml2, makeWrapper, libtiff, enableX11 ? false, libx11, buildPackages, }: stdenv.mkDerivation (finalAttrs: { # Determine version and revision from: # https://sourceforge.net/p/netpbm/code/HEAD/log/?path=/advanced pname = "netpbm"; version = "11.13.2"; outputs = [ "bin" "out" "dev" ]; src = fetchsvn { url = "https://svn.code.sf.net/p/netpbm/code/advanced"; rev = "5156"; sha256 = "sha256-obA/bjWGLmZ5i4SYfLsHwLbmq7BG16hEWoB7ZSCFpxw="; }; patches = [ # Sent to maintainer 2026-02-22. ./c23.patch ]; nativeBuildInputs = [ pkg-config flex makeWrapper ]; buildInputs = [ zlib perl libpng libjpeg libxml2 libtiff jbigkit ] ++ lib.optional enableX11 libx11; strictDeps = true; enableParallelBuilding = true; postPatch = '' # Install libnetpbm.so symlink to correct destination substituteInPlace lib/Makefile \ --replace '/sharedlink' '/lib' ''; configurePhase = '' runHook preConfigure cp config.mk.in config.mk # Disable building static library echo "STATICLIB_TOO = N" >> config.mk # Enable cross-compilation echo 'AR = ${lib.getBin stdenv.cc.bintools.bintools}/bin/${stdenv.cc.targetPrefix}ar' >> config.mk echo 'CC = ${stdenv.cc}/bin/${stdenv.cc.targetPrefix}cc' >> config.mk echo 'CC_FOR_BUILD = ${buildPackages.stdenv.cc}/bin/${buildPackages.stdenv.cc.targetPrefix}cc' >> config.mk echo 'LD_FOR_BUILD = $(CC_FOR_BUILD)' >> config.mk echo 'PKG_CONFIG = ${buildPackages.pkg-config}/bin/${buildPackages.pkg-config.targetPrefix}pkg-config' >> config.mk echo 'RANLIB = ${lib.getBin stdenv.cc.bintools.bintools}/bin/${stdenv.cc.targetPrefix}ranlib' >> config.mk # Use libraries from Nixpkgs echo "TIFFLIB = libtiff.so" >> config.mk echo "TIFFLIB_NEEDS_JPEG = N" >> config.mk echo "TIFFLIB_NEEDS_Z = N" >> config.mk echo "JPEGLIB = libjpeg.so" >> config.mk echo "JBIGLIB = libjbig.a" >> config.mk # Insecure echo "JASPERLIB = NONE" >> config.mk # Fix path to rgb.txt echo "RGB_DB_PATH = $out/share/netpbm/misc/rgb.txt" >> config.mk '' + lib.optionalString stdenv.hostPlatform.isDarwin '' echo "LDSHLIB=-dynamiclib -install_name $out/lib/libnetpbm.\$(MAJ).dylib" >> config.mk echo "NETPBMLIBTYPE = dylib" >> config.mk echo "NETPBMLIBSUFFIX = dylib" >> config.mk '' + '' runHook postConfigure ''; env = { STRIPPROG = "${lib.getBin stdenv.cc.bintools.bintools}/bin/${stdenv.cc.targetPrefix}strip"; } // lib.optionalAttrs stdenv.cc.isClang { NIX_CFLAGS_COMPILE = "-Wno-implicit-function-declaration"; }; installPhase = '' runHook preInstall make package pkgdir=$out rm -rf $out/*_template $out/{pkginfo,README,VERSION} $out/man/web mkdir -p $out/share/netpbm mv $out/misc $out/share/netpbm/ moveToOutput bin "''${!outputBin}" # wrap any scripts that expect other programs in the package to be in their PATH for prog in ppmquant; do wrapProgram "''${!outputBin}/bin/$prog" --prefix PATH : "''${!outputBin}/bin" done runHook postInstall ''; passthru.updateScript = ./update.sh; meta = { changelog = "https://sourceforge.net/p/netpbm/code/${finalAttrs.src.rev}/tree/advanced/doc/HISTORY"; homepage = "https://netpbm.sourceforge.net/"; description = "Toolkit for manipulation of graphic images"; license = lib.licenses.free; # http://netpbm.svn.code.sourceforge.net/p/netpbm/code/trunk/doc/copyright_summary platforms = with lib.platforms; linux ++ darwin; }; })