pugixml: modernize

+8 -8
+8 -8
pkgs/by-name/pu/pugixml/package.nix
··· 15 src = fetchFromGitHub { 16 owner = "zeux"; 17 repo = "pugixml"; 18 - rev = "v${version}"; 19 - sha256 = "sha256-t/57lg32KgKPc7qRGQtO/GOwHRqoj78lllSaE/A8Z9Q="; 20 }; 21 22 outputs = [ "out" ] ++ lib.optionals shared [ "dev" ]; ··· 27 ]; 28 29 cmakeFlags = [ 30 - "-DBUILD_TESTS=ON" 31 - "-DBUILD_SHARED_LIBS=${if shared then "ON" else "OFF"}" 32 ]; 33 34 nativeCheckInputs = [ check ]; ··· 38 sed -i -e '/PUGIXML_HAS_LONG_LONG/ s/^\/\///' src/pugiconfig.hpp 39 ''; 40 41 - meta = with lib; { 42 description = "Light-weight, simple and fast XML parser for C++ with XPath support"; 43 homepage = "https://pugixml.org"; 44 - license = licenses.mit; 45 - maintainers = with maintainers; [ pSub ]; 46 - platforms = platforms.unix; 47 }; 48 }
··· 15 src = fetchFromGitHub { 16 owner = "zeux"; 17 repo = "pugixml"; 18 + tag = "v${version}"; 19 + hash = "sha256-t/57lg32KgKPc7qRGQtO/GOwHRqoj78lllSaE/A8Z9Q="; 20 }; 21 22 outputs = [ "out" ] ++ lib.optionals shared [ "dev" ]; ··· 27 ]; 28 29 cmakeFlags = [ 30 + (lib.cmakeBool "BUILD_TESTS" true) 31 + (lib.cmakeBool "BUILD_SHARED_LIBS" shared) 32 ]; 33 34 nativeCheckInputs = [ check ]; ··· 38 sed -i -e '/PUGIXML_HAS_LONG_LONG/ s/^\/\///' src/pugiconfig.hpp 39 ''; 40 41 + meta = { 42 description = "Light-weight, simple and fast XML parser for C++ with XPath support"; 43 homepage = "https://pugixml.org"; 44 + license = lib.licenses.mit; 45 + maintainers = with lib.maintainers; [ pSub ]; 46 + platforms = lib.platforms.unix; 47 }; 48 }