about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/libvisio2svg/default.nix
blob: b2a68ed586808e8e4d7f8ca024e7aab4fd48f323 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{ lib
, stdenv
, fetchFromGitHub
, cmake
, freetype
, libemf2svg
, librevenge
, libvisio
, libwmf
, libxml2
}:

stdenv.mkDerivation rec {
  pname = "libvisio2svg";
  version = "0.5.5";

  src = fetchFromGitHub {
    owner = "kakwa";
    repo = pname;
    rev = version;
    sha256 = "14m37mmib1596c76j9w178jqhwxyih2sy5w5q9xglh8cmlfn1hfx";
  };

  nativeBuildInputs = [ cmake ];
  buildInputs = [ libxml2 freetype librevenge libvisio libwmf libemf2svg ];

  cmakeFlags = [
    # file RPATH_CHANGE could not write new RPATH
    "-DCMAKE_SKIP_BUILD_RPATH=ON"
  ];

  meta = with lib; {
    description = "Library and tools to convert Microsoft Visio documents (VSS and VSD) to SVG";
    homepage = "https://github.com/kakwa/libvisio2svg";
    maintainers = with maintainers; [ erdnaxe ];
    license = licenses.gpl2Only;
    platforms = [ "x86_64-linux" ];
  };
}