mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 09:13:17 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
41 lines
1.0 KiB
Nix
41 lines
1.0 KiB
Nix
{ lib, stdenv, fetchurl, pkg-config, glibmm, libgda, libxml2, gnome
|
|
, mysqlSupport ? false
|
|
, postgresSupport ? false }:
|
|
|
|
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";
|
|
sha256 = "1fyh15b3f8hmwbswalxk1g4l04yvvybksn5nm7gznn5jl5q010p9";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ glibmm libxml2 ];
|
|
propagatedBuildInputs = [ gda ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
passthru = {
|
|
updateScript = gnome.updateScript {
|
|
packageName = pname;
|
|
versionPolicy = "none"; # Should be odd-unstable but stable version has not been released yet.
|
|
};
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "C++ bindings for libgda";
|
|
homepage = "https://www.gnome-db.org/";
|
|
license = licenses.lgpl21Plus;
|
|
maintainers = teams.gnome.members;
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|