hipsparse 5.4.0 -> 5.4.1 https://repology.org/metapackage/hipsparse/versions attrpath: hipsparse Checking auto update branch... [version] [version] skipping because derivation has updateScript [rustCrateVersion] [rustCrateVersion] No cargoSha256 found [golangModuleVersion] [golangModuleVersion] Not a buildGoModule package with vendorSha256 [updateScript] [updateScript] Success [updateScript] these 2 derivations will be built: /nix/store/d6rz2ibs86kdb6m9dlljsda89w88xnsj-update.sh.drv /nix/store/i7zcsmzqk4x7ymvd653ligyf1s3kcm49-packages.json.drv building '/nix/store/d6rz2ibs86kdb6m9dlljsda89w88xnsj-update.sh.drv'... building '/nix/store/i7zcsmzqk4x7ymvd653ligyf1s3kcm49-packages.json.drv'... Going to be running update for following packages: - hipsparse-5.4.0 Press Enter key to continue... Running update for: - hipsparse-5.4.0: UPDATING ... - hipsparse-5.4.0: DONE. Packages updated! [quotedUrls] [quotedUrls] nothing found to replace Diff after rewrites: diff --git a/pkgs/development/libraries/hipsparse/default.nix b/pkgs/development/libraries/hipsparse/default.nix index fc1e62e6520..b0608e6ddfe 100644 --- a/pkgs/development/libraries/hipsparse/default.nix +++ b/pkgs/development/libraries/hipsparse/default.nix @@ -18,7 +18,7 @@ # This can also use cuSPARSE as a backend instead of rocSPARSE stdenv.mkDerivation (finalAttrs: { pname = "hipsparse"; - version = "5.4.0"; + version = "5.4.1"; outputs = [ "out" Old version "5.4.0"" not present in master derivation file with contents: { lib , stdenv , fetchFromGitHub , rocmUpdateScript , cmake , rocm-cmake , rocm-runtime , rocm-device-libs , rocm-comgr , rocsparse , hip , gfortran , git , gtest , buildTests ? false }: # This can also use cuSPARSE as a backend instead of rocSPARSE stdenv.mkDerivation (finalAttrs: { pname = "hipsparse"; version = "5.4.0"; outputs = [ "out" ] ++ lib.optionals buildTests [ "test" ]; src = fetchFromGitHub { owner = "ROCmSoftwarePlatform"; repo = "hipSPARSE"; rev = "rocm-${finalAttrs.version}"; hash = "sha256-JWjmMvqIm4in1aPq2UgYmL0eWjrrRBiU6vH3FnCZZ40="; }; nativeBuildInputs = [ cmake rocm-cmake hip gfortran ]; buildInputs = [ rocm-runtime rocm-device-libs rocm-comgr rocsparse git ] ++ lib.optionals buildTests [ gtest ]; cmakeFlags = [ "-DCMAKE_CXX_COMPILER=hipcc" # Manually define CMAKE_INSTALL_ # See: https://github.com/NixOS/nixpkgs/pull/197838 "-DCMAKE_INSTALL_BINDIR=bin" "-DCMAKE_INSTALL_LIBDIR=lib" "-DCMAKE_INSTALL_INCLUDEDIR=include" ] ++ lib.optionals buildTests [ "-DBUILD_CLIENTS_TESTS=ON" ]; # We have to manually generate the matrices # CMAKE_MATRICES_DIR seems to be reset in clients/tests/CMakeLists.txt postPatch = '' substituteInPlace clients/common/utility.cpp \ --replace "#ifdef __cpp_lib_filesystem" " #if true" '' + lib.optionalString buildTests '' mkdir -p matrices ln -s ${rocsparse.passthru.matrices.matrix-01}/*.mtx matrices ln -s ${rocsparse.passthru.matrices.matrix-02}/*.mtx matrices ln -s ${rocsparse.passthru.matrices.matrix-03}/*.mtx matrices ln -s ${rocsparse.passthru.matrices.matrix-04}/*.mtx matrices ln -s ${rocsparse.passthru.matrices.matrix-05}/*.mtx matrices ln -s ${rocsparse.passthru.matrices.matrix-06}/*.mtx matrices ln -s ${rocsparse.passthru.matrices.matrix-07}/*.mtx matrices ln -s ${rocsparse.passthru.matrices.matrix-08}/*.mtx matrices ln -s ${rocsparse.passthru.matrices.matrix-09}/*.mtx matrices ln -s ${rocsparse.passthru.matrices.matrix-10}/*.mtx matrices ln -s ${rocsparse.passthru.matrices.matrix-11}/*.mtx matrices ln -s ${rocsparse.passthru.matrices.matrix-12}/*.mtx matrices ln -s ${rocsparse.passthru.matrices.matrix-13}/*.mtx matrices ln -s ${rocsparse.passthru.matrices.matrix-14}/*.mtx matrices ln -s ${rocsparse.passthru.matrices.matrix-15}/*.mtx matrices ln -s ${rocsparse.passthru.matrices.matrix-16}/*.mtx matrices ln -s ${rocsparse.passthru.matrices.matrix-17}/*.mtx matrices ln -s ${rocsparse.passthru.matrices.matrix-18}/*.mtx matrices ln -s ${rocsparse.passthru.matrices.matrix-19}/*.mtx matrices # Not used by the original cmake, causes an error rm matrices/*_b.mtx echo "deps/convert.cpp -> deps/mtx2csr" hipcc deps/convert.cpp -O3 -o deps/mtx2csr for mat in $(ls -1 matrices | cut -d "." -f 1); do echo "mtx2csr: $mat.mtx -> $mat.bin" deps/mtx2csr matrices/$mat.mtx matrices/$mat.bin unlink matrices/$mat.mtx done substituteInPlace clients/tests/CMakeLists.txt \ --replace "\''${PROJECT_BINARY_DIR}/matrices" "/build/source/matrices" ''; postInstall = lib.optionalString buildTests '' mkdir -p $test/bin mv $out/bin/hipsparse-test $test/bin mv /build/source/matrices $test rmdir $out/bin ''; passthru.updateScript = rocmUpdateScript { name = finalAttrs.pname; owner = finalAttrs.src.owner; repo = finalAttrs.src.repo; }; meta = with lib; { description = "ROCm SPARSE marshalling library"; homepage = "https://github.com/ROCmSoftwarePlatform/hipSPARSE"; license = with licenses; [ mit ]; maintainers = teams.rocm.members; broken = finalAttrs.version != hip.version; }; })