nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 39 lines 1.0 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6}: 7 8stdenv.mkDerivation (finalAttrs: { 9 pname = "tinyxml2"; 10 version = "11.0.0"; 11 12 src = fetchFromGitHub { 13 owner = "leethomason"; 14 repo = "tinyxml2"; 15 rev = finalAttrs.version; 16 hash = "sha256-rYVQSvxA0nxlZFHwGcOWkxcXZWEvTxR9P+d8E7CSm6U="; 17 }; 18 19 nativeBuildInputs = [ cmake ]; 20 21 cmakeFlags = [ 22 "-DBUILD_SHARED_LIBS=ON" 23 # the cmake package does not handle absolute CMAKE_INSTALL_INCLUDEDIR 24 # correctly (setting it to an absolute path causes include files to go to 25 # $out/$out/include, because the absolute path is interpreted with root at 26 # $out). 27 "-DCMAKE_INSTALL_INCLUDEDIR=include" 28 "-DCMAKE_INSTALL_LIBDIR=lib" 29 ]; 30 31 meta = { 32 description = "Simple, small, efficient, C++ XML parser"; 33 homepage = "https://github.com/leethomason/tinyxml2"; 34 changelog = "https://github.com/leethomason/tinyxml2/releases/tag/${finalAttrs.src.rev}"; 35 license = with lib.licenses; [ zlib ]; 36 maintainers = [ ]; 37 platforms = lib.platforms.unix; 38 }; 39})