nixpkgs/pkgs/development/libraries/libgdamm/default.nix

41 lines
1.0 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, pkg-config, glibmm, libgda, libxml2, gnome
, mysqlSupport ? false
, postgresSupport ? false }:
2018-12-02 21:21:07 +00:00
let
gda = libgda.override {
inherit mysqlSupport postgresSupport;
};
in stdenv.mkDerivation rec {
pname = "libgdamm";
version = "4.99.11";
outputs = [ "out" "dev" ];
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
2018-12-02 21:21:07 +00:00
sha256 = "1fyh15b3f8hmwbswalxk1g4l04yvvybksn5nm7gznn5jl5q010p9";
};
nativeBuildInputs = [ pkg-config ];
2018-12-02 21:21:07 +00:00
buildInputs = [ glibmm libxml2 ];
propagatedBuildInputs = [ gda ];
enableParallelBuilding = true;
passthru = {
updateScript = gnome.updateScript {
2018-12-02 21:21:07 +00:00
packageName = pname;
versionPolicy = "none"; # Should be odd-unstable but stable version has not been released yet.
2018-12-02 21:21:07 +00:00
};
};
meta = with lib; {
2018-12-02 21:21:07 +00:00
description = "C++ bindings for libgda";
homepage = "https://www.gnome-db.org/";
2018-12-02 21:21:07 +00:00
license = licenses.lgpl21Plus;
maintainers = teams.gnome.members;
2018-12-02 21:21:07 +00:00
platforms = platforms.linux;
};
}