Loading pkgs/by-name/gz/gz-cmake/package.nix +20 −9 Original line number Diff line number Diff line Loading @@ -3,6 +3,7 @@ stdenv, fetchFromGitHub, cmake, cppcheck, doxygen, graphviz, pkg-config, Loading @@ -10,7 +11,7 @@ nix-update-script, }: let version = "4.2.0"; version = "5.0.0"; versionPrefix = "gz-cmake${lib.versions.major version}"; in stdenv.mkDerivation (finalAttrs: { Loading @@ -21,33 +22,42 @@ stdenv.mkDerivation (finalAttrs: { owner = "gazebosim"; repo = "gz-cmake"; tag = "${versionPrefix}_${finalAttrs.version}"; hash = "sha256-+bMOcGWfcwPhxR9CBp4iH02CZC4oplCjsTDpPDsDnSs="; hash = "sha256-XF7oglj9Xr6F8a+6uowrY5a040yl4FZlFfW/Y0BJwOs="; }; postPatch = '' patchShebangs examples/test_c_child_requires_c_no_deps.bash substituteInPlace examples/CMakeLists.txt --replace-fail \ "$""{CMAKE_INSTALL_LIBDIR}" "${if stdenv.hostPlatform.isDarwin then "lib" else "lib64"}" substituteInPlace examples/CMakeLists.txt \ --replace-fail "$""{CMAKE_INSTALL_LIBDIR}" "${ if stdenv.hostPlatform.isDarwin then "lib" else "lib64" }" ''; nativeBuildInputs = [ cmake cppcheck doxygen graphviz pkg-config python3 ]; doBuildExamples = false; cmakeFlags = [ (lib.cmakeBool "BUILDSYSTEM_TESTING" finalAttrs.doCheck) (lib.cmakeBool "BUILD_TESTING" finalAttrs.doCheck) (lib.cmakeBool "BUILD_EXAMPLES" finalAttrs.doBuildExamples) ]; nativeCheckInputs = [ python3 ]; doCheck = true; # Extract the version by matching the tag's prefix. passthru.updateScript = nix-update-script { extraArgs = [ "--version-regex=${versionPrefix}_([\\d\\.]+)" ]; passthru = { # bulk updater selects wrong tag skipBulkUpdates = true; updateScript = nix-update-script { extraArgs = [ "--version-regex=gz-cmake(.*)" ]; }; }; meta = { Loading @@ -57,5 +67,6 @@ stdenv.mkDerivation (finalAttrs: { license = lib.licenses.asl20; platforms = lib.platforms.unix; maintainers = with lib.maintainers; [ guelakais ]; badPlatforms = lib.platforms.darwin; # hard replicable building error }; }) pkgs/by-name/gz/gz-utils/package.nix +2 −2 Original line number Diff line number Diff line Loading @@ -21,13 +21,13 @@ }: stdenv.mkDerivation (finalAttrs: { pname = "gz-utils"; version = "3.1.1"; version = "4.0.0"; src = fetchFromGitHub { owner = "gazebosim"; repo = "gz-utils"; tag = "gz-utils${lib.versions.major finalAttrs.version}_${finalAttrs.version}"; hash = "sha256-fYzysdB608jfMb/EbqiGD4hXmPxcaVTUrt9Wx0dBlto="; hash = "sha256-fZonC/o5CNHdK/R3IgEoo1llehy36MwvXPQCgFnP8Ls="; }; outputs = [ Loading Loading
pkgs/by-name/gz/gz-cmake/package.nix +20 −9 Original line number Diff line number Diff line Loading @@ -3,6 +3,7 @@ stdenv, fetchFromGitHub, cmake, cppcheck, doxygen, graphviz, pkg-config, Loading @@ -10,7 +11,7 @@ nix-update-script, }: let version = "4.2.0"; version = "5.0.0"; versionPrefix = "gz-cmake${lib.versions.major version}"; in stdenv.mkDerivation (finalAttrs: { Loading @@ -21,33 +22,42 @@ stdenv.mkDerivation (finalAttrs: { owner = "gazebosim"; repo = "gz-cmake"; tag = "${versionPrefix}_${finalAttrs.version}"; hash = "sha256-+bMOcGWfcwPhxR9CBp4iH02CZC4oplCjsTDpPDsDnSs="; hash = "sha256-XF7oglj9Xr6F8a+6uowrY5a040yl4FZlFfW/Y0BJwOs="; }; postPatch = '' patchShebangs examples/test_c_child_requires_c_no_deps.bash substituteInPlace examples/CMakeLists.txt --replace-fail \ "$""{CMAKE_INSTALL_LIBDIR}" "${if stdenv.hostPlatform.isDarwin then "lib" else "lib64"}" substituteInPlace examples/CMakeLists.txt \ --replace-fail "$""{CMAKE_INSTALL_LIBDIR}" "${ if stdenv.hostPlatform.isDarwin then "lib" else "lib64" }" ''; nativeBuildInputs = [ cmake cppcheck doxygen graphviz pkg-config python3 ]; doBuildExamples = false; cmakeFlags = [ (lib.cmakeBool "BUILDSYSTEM_TESTING" finalAttrs.doCheck) (lib.cmakeBool "BUILD_TESTING" finalAttrs.doCheck) (lib.cmakeBool "BUILD_EXAMPLES" finalAttrs.doBuildExamples) ]; nativeCheckInputs = [ python3 ]; doCheck = true; # Extract the version by matching the tag's prefix. passthru.updateScript = nix-update-script { extraArgs = [ "--version-regex=${versionPrefix}_([\\d\\.]+)" ]; passthru = { # bulk updater selects wrong tag skipBulkUpdates = true; updateScript = nix-update-script { extraArgs = [ "--version-regex=gz-cmake(.*)" ]; }; }; meta = { Loading @@ -57,5 +67,6 @@ stdenv.mkDerivation (finalAttrs: { license = lib.licenses.asl20; platforms = lib.platforms.unix; maintainers = with lib.maintainers; [ guelakais ]; badPlatforms = lib.platforms.darwin; # hard replicable building error }; })
pkgs/by-name/gz/gz-utils/package.nix +2 −2 Original line number Diff line number Diff line Loading @@ -21,13 +21,13 @@ }: stdenv.mkDerivation (finalAttrs: { pname = "gz-utils"; version = "3.1.1"; version = "4.0.0"; src = fetchFromGitHub { owner = "gazebosim"; repo = "gz-utils"; tag = "gz-utils${lib.versions.major finalAttrs.version}_${finalAttrs.version}"; hash = "sha256-fYzysdB608jfMb/EbqiGD4hXmPxcaVTUrt9Wx0dBlto="; hash = "sha256-fZonC/o5CNHdK/R3IgEoo1llehy36MwvXPQCgFnP8Ls="; }; outputs = [ Loading