From 0f4a14b21098b75e32c4f7419745d021ded5da72 Mon Sep 17 00:00:00 2001 From: Thomas Gerbet Date: Sun, 16 Jun 2024 12:13:49 +0200 Subject: [PATCH 1/2] iniparser: 4.2.3 -> 4.2.4 Changes: https://gitlab.com/iniparser/iniparser/-/releases/v4.2.4 --- pkgs/development/libraries/iniparser/default.nix | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/pkgs/development/libraries/iniparser/default.nix b/pkgs/development/libraries/iniparser/default.nix index 18057753efbd..f9fa478ded0c 100644 --- a/pkgs/development/libraries/iniparser/default.nix +++ b/pkgs/development/libraries/iniparser/default.nix @@ -1,7 +1,6 @@ { lib , stdenv , fetchFromGitLab -, fetchpatch , fetchFromGitHub , substituteAll , symlinkJoin @@ -14,22 +13,16 @@ stdenv.mkDerivation (finalAttrs: { pname = "iniparser"; - version = "4.2.3"; + version = "4.2.4"; src = fetchFromGitLab { owner = "iniparser"; repo = "iniparser"; rev = "v${finalAttrs.version}"; - hash = "sha256-rCp9whYPYmVd7saVFILmpdn041u6fYGqe1/Oqc7RaeA="; + hash = "sha256-R069LuOmjCFj7dHXiMjuK7WUupk5+dVd8IDKY/wBn2o="; }; - patches = [ - (fetchpatch { - name = "fix-paths-pkgconfig-file.patch"; - url = "https://gitlab.com/iniparser/iniparser/-/commit/6a76cd5e97b32014b22d87039bf6f4ee425c79a2.patch"; - hash = "sha256-KlTxeOzwBZiLNmuwbbem5c/xspxsflyYfeUaQnGyarI="; - }) - ] ++ lib.optionals finalAttrs.doCheck [ + patches = lib.optionals finalAttrs.doCheck [ (substituteAll { # Do not let cmake's fetchContent download unity src = ./remove-fetchcontent-usage.patch; From 1a6e223a43a02a94a951b2448baf0f686f88ac4d Mon Sep 17 00:00:00 2001 From: Thomas Gerbet Date: Sun, 16 Jun 2024 22:39:26 +0200 Subject: [PATCH 2/2] iniparser: format with nixfmt-rfc-style --- .../libraries/iniparser/default.nix | 37 +++++++++++-------- 1 file changed, 21 insertions(+), 16 deletions(-) diff --git a/pkgs/development/libraries/iniparser/default.nix b/pkgs/development/libraries/iniparser/default.nix index f9fa478ded0c..a35deb12e683 100644 --- a/pkgs/development/libraries/iniparser/default.nix +++ b/pkgs/development/libraries/iniparser/default.nix @@ -1,14 +1,15 @@ -{ lib -, stdenv -, fetchFromGitLab -, fetchFromGitHub -, substituteAll -, symlinkJoin -, cmake -, doxygen -, ruby -, validatePkgConfig -, testers +{ + lib, + stdenv, + fetchFromGitLab, + fetchFromGitHub, + substituteAll, + symlinkJoin, + cmake, + doxygen, + ruby, + validatePkgConfig, + testers, }: stdenv.mkDerivation (finalAttrs: { @@ -43,11 +44,13 @@ stdenv.mkDerivation (finalAttrs: { }) ]; - nativeBuildInputs = [ cmake doxygen validatePkgConfig ] ++ lib.optionals finalAttrs.doCheck [ ruby ]; + nativeBuildInputs = [ + cmake + doxygen + validatePkgConfig + ] ++ lib.optionals finalAttrs.doCheck [ ruby ]; - cmakeFlags = [ - "-DBUILD_TESTING=${if finalAttrs.doCheck then "ON" else "OFF"}" - ]; + cmakeFlags = [ "-DBUILD_TESTING=${if finalAttrs.doCheck then "ON" else "OFF"}" ]; doCheck = false; @@ -57,7 +60,9 @@ stdenv.mkDerivation (finalAttrs: { passthru.tests = { pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; - iniparser-with-tests = finalAttrs.overrideAttrs (_: { doCheck = true; }); + iniparser-with-tests = finalAttrs.overrideAttrs (_: { + doCheck = true; + }); }; meta = with lib; {