nixpkgs/pkgs/applications/graphics/dia/default.nix

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

77 lines
1.3 KiB
Nix
Raw Normal View History

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