nixpkgs/pkgs/by-name/ti/tinyxml-2/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
1.0 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, fetchFromGitHub
, cmake
}:
2016-11-01 13:21:23 +00:00
stdenv.mkDerivation (finalAttrs: {
pname = "tinyxml2";
2023-12-31 13:33:18 +00:00
version = "10.0.0";
2016-11-01 13:21:23 +00:00
src = fetchFromGitHub {
owner = "leethomason";
repo = "tinyxml2";
rev = finalAttrs.version;
hash = "sha256-9xrpPFMxkAecg3hMHzzThuy0iDt970Iqhxs57Od+g2g=";
2016-03-26 17:55:19 +00:00
};
nativeBuildInputs = [ cmake ];
2022-06-03 18:16:29 +00:00
cmakeFlags = [
# the cmake package does not handle absolute CMAKE_INSTALL_INCLUDEDIR
# correctly (setting it to an absolute path causes include files to go to
# $out/$out/include, because the absolute path is interpreted with root at
# $out).
2022-06-03 18:16:29 +00:00
"-DCMAKE_INSTALL_INCLUDEDIR=include"
"-DCMAKE_INSTALL_LIBDIR=lib"
];
meta = {
2016-11-01 13:21:23 +00:00
description = "A simple, small, efficient, C++ XML parser";
homepage = "https://github.com/leethomason/tinyxml2";
changelog = "https://github.com/leethomason/tinyxml2/releases/tag/${finalAttrs.src.rev}";
license = with lib.licenses; [ zlib ];
maintainers = with lib.maintainers; [ AndersonTorres ];
platforms = lib.platforms.unix;
};
})