Merge pull request #277951 from atorres1985-contrib/adopt-tinyxml

tinyxml: adopted by AndersonTorres

authored by Thiago Kenji Okada and committed by GitHub 08883ba0 0d404d54

+37 -32
+37
pkgs/by-name/ti/tinyxml-2/package.nix
···
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , cmake 5 + }: 6 + 7 + stdenv.mkDerivation (finalAttrs: { 8 + pname = "tinyxml2"; 9 + version = "10.0.0"; 10 + 11 + src = fetchFromGitHub { 12 + owner = "leethomason"; 13 + repo = "tinyxml2"; 14 + rev = finalAttrs.version; 15 + hash = "sha256-9xrpPFMxkAecg3hMHzzThuy0iDt970Iqhxs57Od+g2g="; 16 + }; 17 + 18 + nativeBuildInputs = [ cmake ]; 19 + 20 + cmakeFlags = [ 21 + # the cmake package does not handle absolute CMAKE_INSTALL_INCLUDEDIR 22 + # correctly (setting it to an absolute path causes include files to go to 23 + # $out/$out/include, because the absolute path is interpreted with root at 24 + # $out). 25 + "-DCMAKE_INSTALL_INCLUDEDIR=include" 26 + "-DCMAKE_INSTALL_LIBDIR=lib" 27 + ]; 28 + 29 + meta = { 30 + description = "A simple, small, efficient, C++ XML parser"; 31 + homepage = "https://github.com/leethomason/tinyxml2"; 32 + changelog = "https://github.com/leethomason/tinyxml2/releases/tag/${finalAttrs.src.rev}"; 33 + license = with lib.licenses; [ zlib ]; 34 + maintainers = with lib.maintainers; [ AndersonTorres ]; 35 + platforms = lib.platforms.unix; 36 + }; 37 + })
-30
pkgs/development/libraries/tinyxml-2/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, cmake }: 2 - 3 - stdenv.mkDerivation rec { 4 - pname = "tinyxml-2"; 5 - version = "10.0.0"; 6 - 7 - src = fetchFromGitHub { 8 - repo = "tinyxml2"; 9 - owner = "leethomason"; 10 - rev = version; 11 - sha256 = "sha256-9xrpPFMxkAecg3hMHzzThuy0iDt970Iqhxs57Od+g2g="; 12 - }; 13 - 14 - nativeBuildInputs = [ cmake ]; 15 - 16 - cmakeFlags = [ 17 - # the cmake package does not handle absolute CMAKE_INSTALL_INCLUDEDIR correctly 18 - # (setting it to an absolute path causes include files to go to $out/$out/include, 19 - # because the absolute path is interpreted with root at $out). 20 - "-DCMAKE_INSTALL_INCLUDEDIR=include" 21 - "-DCMAKE_INSTALL_LIBDIR=lib" 22 - ]; 23 - 24 - meta = { 25 - description = "A simple, small, efficient, C++ XML parser"; 26 - homepage = "https://www.grinninglizard.com/tinyxml2/index.html"; 27 - platforms = lib.platforms.unix; 28 - license = lib.licenses.zlib; 29 - }; 30 - }
···
-2
pkgs/top-level/all-packages.nix
··· 25344 25345 tinyxml2 = callPackage ../development/libraries/tinyxml/2.6.2.nix { }; 25346 25347 - tinyxml-2 = callPackage ../development/libraries/tinyxml-2 { }; 25348 - 25349 tiscamera = callPackage ../os-specific/linux/tiscamera { }; 25350 25351 tivodecode = callPackage ../applications/video/tivodecode { };
··· 25344 25345 tinyxml2 = callPackage ../development/libraries/tinyxml/2.6.2.nix { }; 25346 25347 tiscamera = callPackage ../os-specific/linux/tiscamera { }; 25348 25349 tivodecode = callPackage ../applications/video/tivodecode { };