Running nixpkgs-update (https://nix-community.org/update-bot/) with UPDATE_INFO: openapv 0.2.1.2 -> 0.2.1.3-fix https://github.com/AcademySoftwareFoundation/openapv/releases attrpath: openapv 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/izmx09ldcyl7pnp62sb5m5zwiq6q7g0m-packages.json.drv building '/nix/store/izmx09ldcyl7pnp62sb5m5zwiq6q7g0m-packages.json.drv'... Going to be running update for following packages: - openapv-0.2.1.2 Press Enter key to continue... Running update for: Enqueuing group of 1 packages - openapv-0.2.1.2: UPDATING ... - openapv-0.2.1.2: DONE. Packages updated! Diff after rewrites: diff --git a/pkgs/by-name/op/openapv/package.nix b/pkgs/by-name/op/openapv/package.nix index b153552d6f17..fcfe7852cf4c 100644 --- a/pkgs/by-name/op/openapv/package.nix +++ b/pkgs/by-name/op/openapv/package.nix @@ -12,13 +12,13 @@ let in stdenv.mkDerivation (finalAttrs: { pname = "openapv"; - version = "0.2.1.2"; + version = "0.2.1.3-fix"; src = fetchFromGitHub { owner = "AcademySoftwareFoundation"; repo = "openapv"; tag = "v${finalAttrs.version}"; - hash = "sha256-wxncN7j5p0GXpWhOx4Ix0oTgGK2sIrfJgQ45fFwmQBI="; + hash = "sha256-lc/x2dWh6T8c63siHB32ka+SPVYTTyaO4YrQ12EbGqw="; }; postPatch = '' No auto update branch exists Old version 0.2.1.2" not present in staging derivation file with contents: { lib, stdenv, writeText, fetchFromGitHub, cmake, nix-update-script, }: let # Requires an /etc/os-release file, so we override it with this. osRelease = writeText "os-release" "ID=NixOS"; in stdenv.mkDerivation (finalAttrs: { pname = "openapv"; version = "0.2.1.3"; src = fetchFromGitHub { owner = "AcademySoftwareFoundation"; repo = "openapv"; tag = "v${finalAttrs.version}-fix"; # Remove the `-fix` suffix after the next version hash = "sha256-lc/x2dWh6T8c63siHB32ka+SPVYTTyaO4YrQ12EbGqw="; }; postPatch = '' substituteInPlace CMakeLists.txt \ --replace-fail "/etc/os-release" "${osRelease}" ''; nativeBuildInputs = [ cmake ]; passthru.updateScript = nix-update-script { }; meta = { changelog = "https://github.com/AcademySoftwareFoundation/openapv/releases/tag/v${finalAttrs.version}"; description = "Reference implementation of the APV codec"; homepage = "https://github.com/AcademySoftwareFoundation/openapv"; license = [ lib.licenses.bsd3 ]; maintainers = with lib.maintainers; [ pyrox0 ]; }; })