2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
2020-08-20 17:08:02 +00:00
|
|
|
, fetchurl
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, autoconf
|
|
|
|
, automake
|
|
|
|
, libtool
|
|
|
|
, mm-common
|
|
|
|
, intltool
|
|
|
|
, itstool
|
|
|
|
, doxygen
|
|
|
|
, graphviz
|
|
|
|
, makeFontsConf
|
|
|
|
, freefont_ttf
|
|
|
|
, boost
|
|
|
|
, libxmlxx3
|
|
|
|
, libxslt
|
|
|
|
, libgdamm
|
|
|
|
, libarchive
|
|
|
|
, libepc
|
|
|
|
, python3
|
|
|
|
, ncurses
|
|
|
|
, glibmm
|
|
|
|
, gtk3
|
|
|
|
, openssl
|
|
|
|
, gtkmm3
|
|
|
|
, goocanvasmm2
|
|
|
|
, evince
|
|
|
|
, isocodes
|
2020-08-20 17:08:02 +00:00
|
|
|
, gtksourceview
|
|
|
|
, gtksourceviewmm
|
2023-02-02 18:25:31 +00:00
|
|
|
, postgresql_11
|
2020-04-24 23:36:52 +00:00
|
|
|
, gobject-introspection
|
|
|
|
, yelp-tools
|
|
|
|
, wrapGAppsHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
gda = libgdamm.override {
|
|
|
|
mysqlSupport = true;
|
|
|
|
postgresSupport = true;
|
|
|
|
};
|
|
|
|
python = python3.withPackages (pkgs: with pkgs; [ pygobject3 ]);
|
|
|
|
sphinx-build = python3.pkgs.sphinx.overrideAttrs (super: {
|
|
|
|
postFixup = super.postFixup or "" + ''
|
|
|
|
# Do not propagate Python
|
|
|
|
rm $out/nix-support/propagated-build-inputs
|
|
|
|
'';
|
|
|
|
});
|
|
|
|
boost_python = boost.override { enablePython = true; inherit python; };
|
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
pname = "glom";
|
2020-08-20 17:08:02 +00:00
|
|
|
version = "1.32.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
outputs = [ "out" "lib" "dev" "doc" "devdoc" ];
|
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
src = fetchurl {
|
2021-01-15 22:18:51 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2020-08-20 17:08:02 +00:00
|
|
|
sha256 = "1wcd4kd3crwqjv0jfp73jkyyf5ws8mvykg37kqxmcb58piz21gsk";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
autoconf
|
|
|
|
automake
|
|
|
|
libtool
|
|
|
|
mm-common
|
|
|
|
intltool
|
|
|
|
yelp-tools
|
|
|
|
itstool
|
|
|
|
doxygen
|
|
|
|
graphviz
|
|
|
|
sphinx-build
|
|
|
|
wrapGAppsHook
|
|
|
|
gobject-introspection # for setup hook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
boost_python
|
|
|
|
glibmm
|
|
|
|
gtk3
|
|
|
|
openssl
|
|
|
|
libxmlxx3
|
|
|
|
libxslt
|
|
|
|
gda
|
|
|
|
libarchive
|
|
|
|
libepc
|
|
|
|
python
|
|
|
|
ncurses # for python
|
|
|
|
gtkmm3
|
|
|
|
goocanvasmm2
|
|
|
|
evince
|
|
|
|
isocodes
|
|
|
|
python3.pkgs.pygobject3
|
2020-08-20 17:08:02 +00:00
|
|
|
gtksourceview
|
|
|
|
gtksourceviewmm
|
2023-02-02 18:25:31 +00:00
|
|
|
postgresql_11 # for pg_config
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
preConfigure = "NOCONFIGURE=1 ./autogen.sh";
|
|
|
|
|
|
|
|
configureFlags = [
|
2021-01-15 22:18:51 +00:00
|
|
|
"--with-boost-python=boost_python${lib.versions.major python3.version}${lib.versions.minor python3.version}"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"libdocdir=${placeholder "doc"}/share/doc/$(book_name)"
|
|
|
|
"devhelpdir=${placeholder "devdoc"}/share/devhelp/books/$(book_name)"
|
|
|
|
];
|
|
|
|
|
|
|
|
# Fontconfig error: Cannot load default config file
|
|
|
|
FONTCONFIG_FILE = makeFontsConf {
|
|
|
|
fontDirectories = [ freefont_ttf ];
|
|
|
|
};
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
gappsWrapperArgs+=(
|
|
|
|
--prefix PYTHONPATH : "${placeholder "out"}/${python3.sitePackages}"
|
|
|
|
--set PYTHONHOME "${python}"
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "An easy-to-use database designer and user interface";
|
|
|
|
homepage = "http://www.glom.org/";
|
|
|
|
license = [ licenses.lgpl2 licenses.gpl2 ];
|
|
|
|
maintainers = teams.gnome.members;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|