Running nixpkgs-update (https://nix-community.org/update-bot/) with UPDATE_INFO: lndir 0 -> 1 attrpath: lndir 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] these 2 derivations will be built: /nix/store/s9rf39fgdzi6ddwxafr433xl4s16n9ig-update-lndir.drv /nix/store/sh5ngwvl8g8wyzn53dpycwvhhnwgyhb2-packages.json.drv building '/nix/store/s9rf39fgdzi6ddwxafr433xl4s16n9ig-update-lndir.drv'... structuredAttrs is enabled building '/nix/store/sh5ngwvl8g8wyzn53dpycwvhhnwgyhb2-packages.json.drv'... structuredAttrs is enabled Going to be running update for following packages: - lndir-1.0.5 Press Enter key to continue... Running update for: Enqueuing group of 1 packages - lndir-1.0.5: UPDATING ... - lndir-1.0.5: DONE. Packages updated! Diff after rewrites: diff --git a/pkgs/by-name/ln/lndir/package.nix b/pkgs/by-name/ln/lndir/package.nix index 0e052be89858..08246fda6bb7 100644 --- a/pkgs/by-name/ln/lndir/package.nix +++ b/pkgs/by-name/ln/lndir/package.nix @@ -7,11 +7,11 @@ }: stdenv.mkDerivation (finalAttrs: { pname = "lndir"; - version = "1.0.5"; + version = "1.0.6"; src = fetchurl { url = "mirror://xorg/individual/util/lndir-${finalAttrs.version}.tar.xz"; - hash = "sha256-O2VXelV1zOCVZk9UkhZKlpQYAP5ikKEjcx1H8+cQTds="; + hash = "sha256-GPbWZOUolLfe4NL8mxceDlhWblCR5E+VNfEObZQZEqQ="; }; strictDeps = true; No auto update branch exists Old version 1.0.5" not present in staging derivation file with contents: { lib, stdenv, fetchurl, updateAutotoolsGnuConfigScriptsHook, writeScript, }: stdenv.mkDerivation (finalAttrs: { pname = "lndir"; version = "1.0.6"; src = fetchurl { url = "mirror://xorg/individual/util/lndir-${finalAttrs.version}.tar.xz"; hash = "sha256-GPbWZOUolLfe4NL8mxceDlhWblCR5E+VNfEObZQZEqQ="; }; strictDeps = true; nativeBuildInputs = [ updateAutotoolsGnuConfigScriptsHook ]; preConfigure = '' # removes dependency on xorgproto # from commit 466f1d85d21f79237123d74598a3d7f073513685 # also fix build due to missing import of unistd.h export XPROTO_CFLAGS=" " export XPROTO_LIBS=" " substituteInPlace lndir.c \ --replace-fail '' "" \ --replace-fail '#include ' "" \ --replace-fail '_X_ATTRIBUTE_PRINTF(1,2)' '__attribute__((__format__(__printf__,1,2)))' \ --replace-fail '_X_ATTRIBUTE_PRINTF(2,3)' '__attribute__((__format__(__printf__,2,3)))' \ --replace-fail '_X_NORETURN' '__attribute__((noreturn))' # supposed to make lndir it work on directories with st_nlink set to 1 (such as on btrfs). # from commit 26164c05c5a227462e8f076db6018a4c55fa1412 substituteInPlace lndir.c \ --replace-fail 'n_dirs--;' "" ''; passthru = { updateScript = writeScript "update-${finalAttrs.pname}" '' #!/usr/bin/env nix-shell #!nix-shell -i bash -p common-updater-scripts version="$(list-directory-versions --pname ${finalAttrs.pname} \ --url https://xorg.freedesktop.org/releases/individual/util/ \ | sort -V | tail -n1)" update-source-version ${finalAttrs.pname} "$version" ''; }; __structuredAttrs = true; meta = { description = "Create a shadow directory of symbolic links to another directory tree"; homepage = "https://gitlab.freedesktop.org/xorg/util/lndir"; license = lib.licenses.mitOpenGroup; mainProgram = "lndir"; maintainers = [ ]; platforms = lib.platforms.unix; }; })