2023-01-08 02:09:31 +03:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitLab
|
|
|
|
, appstream-glib
|
|
|
|
, dblatex
|
|
|
|
, desktop-file-utils
|
|
|
|
, graphene
|
2023-10-02 09:44:48 +03:00
|
|
|
, gtk3
|
|
|
|
, gtk-mac-integration-gtk3
|
2023-01-08 02:09:31 +03:00
|
|
|
, intltool
|
|
|
|
, libxml2
|
|
|
|
, libxslt
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, poppler
|
|
|
|
, python3
|
2023-11-08 23:29:32 +03:00
|
|
|
, wrapGAppsHook
|
2023-10-02 09:44:48 +03:00
|
|
|
# Building with docs are still failing in unstable-2023-09-28
|
2023-01-08 02:09:31 +03:00
|
|
|
, withDocs ? false
|
|
|
|
}:
|
2007-06-20 16:20:39 +04:00
|
|
|
|
2019-08-14 00:52:01 +03:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 15:41:18 +03:00
|
|
|
pname = "dia";
|
2023-10-02 09:44:48 +03:00
|
|
|
version = "unstable-2023-09-28";
|
2011-09-20 10:31:37 +04:00
|
|
|
|
2023-01-08 02:09:31 +03:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "GNOME";
|
|
|
|
repo = "dia";
|
|
|
|
domain = "gitlab.gnome.org";
|
2023-10-02 09:44:48 +03:00
|
|
|
rev = "bd551bb2558dcc89bc0bf7b4dd85b38cd85ad322";
|
|
|
|
hash = "sha256-U+8TUE1ULt6MNxnvw9kFjCAVBecUy2Sarof6H9+kR7Q=";
|
2007-06-20 16:20:39 +04:00
|
|
|
};
|
|
|
|
|
2023-02-05 15:04:14 +03:00
|
|
|
# Required for the PDF plugin when building with clang.
|
|
|
|
CXXFLAGS = "-std=c++17";
|
|
|
|
|
2017-08-31 04:04:07 +03:00
|
|
|
preConfigure = ''
|
2023-01-08 02:09:31 +03:00
|
|
|
patchShebangs .
|
2017-08-31 04:04:07 +03:00
|
|
|
'';
|
2007-06-26 15:49:45 +04:00
|
|
|
|
2023-01-08 02:09:31 +03:00
|
|
|
buildInputs = [
|
|
|
|
graphene
|
2023-10-02 09:44:48 +03:00
|
|
|
gtk3
|
2023-01-08 02:09:31 +03:00
|
|
|
libxml2
|
|
|
|
python3
|
|
|
|
poppler
|
|
|
|
] ++
|
|
|
|
lib.optionals withDocs [
|
|
|
|
libxslt
|
|
|
|
] ++
|
|
|
|
lib.optionals stdenv.isDarwin [
|
2023-10-02 09:44:48 +03:00
|
|
|
gtk-mac-integration-gtk3
|
2023-01-08 02:09:31 +03:00
|
|
|
];
|
2022-12-22 21:08:55 +03:00
|
|
|
|
2023-01-08 02:09:31 +03:00
|
|
|
nativeBuildInputs = [
|
|
|
|
appstream-glib
|
|
|
|
desktop-file-utils
|
|
|
|
intltool
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
2023-11-08 23:29:32 +03:00
|
|
|
wrapGAppsHook
|
2023-01-08 02:09:31 +03:00
|
|
|
] ++
|
|
|
|
lib.optionals withDocs [
|
|
|
|
dblatex
|
|
|
|
];
|
2012-07-15 19:01:27 +04:00
|
|
|
|
2021-01-11 10:54:33 +03:00
|
|
|
meta = with lib; {
|
2011-09-20 10:31:37 +04:00
|
|
|
description = "Gnome Diagram drawing software";
|
2020-04-01 04:11:51 +03:00
|
|
|
homepage = "http://live.gnome.org/Dia";
|
2018-08-23 00:42:05 +03:00
|
|
|
maintainers = with maintainers; [ raskin ];
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.unix;
|
2007-06-26 15:49:45 +04:00
|
|
|
};
|
2007-06-20 16:20:39 +04:00
|
|
|
}
|