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