gtkd: add possibility to use different D compilers

Specify the D compiler to use with argument `dcompiler`

Move the specification to all-packages.nix

Passthru the `dcompiler` attribute to make it discoverable by reverse deps
This commit is contained in:
Shamrock Lee 2021-10-30 22:42:58 +00:00
parent e735172601
commit b3613dd8d7
2 changed files with 7 additions and 3 deletions

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchzip, fetchpatch, atk, cairo, ldc, gdk-pixbuf, gnome, gst_all_1, librsvg
{ lib, stdenv, fetchzip, fetchpatch, atk, cairo, dcompiler, gdk-pixbuf, gnome, gst_all_1, librsvg
, glib, gtk3, gtksourceview4, libgda, libpeas, pango, pkg-config, which, vte }:
let
@ -15,7 +15,7 @@ in stdenv.mkDerivation rec {
stripRoot = false;
};
nativeBuildInputs = [ ldc pkg-config which ];
nativeBuildInputs = [ dcompiler pkg-config which ];
propagatedBuildInputs = [
atk cairo gdk-pixbuf glib gstreamer gst-plugins-base gtk3 gtksourceview4
libgda libpeas librsvg pango vte
@ -134,6 +134,10 @@ in stdenv.mkDerivation rec {
done
'';
passthru = {
inherit dcompiler;
};
meta = with lib; {
description = "D binding and OO wrapper for GTK";
homepage = "https://gtkd.org";

View File

@ -6703,7 +6703,7 @@ with pkgs;
gtdialog = callPackage ../development/libraries/gtdialog {};
gtkd = callPackage ../development/libraries/gtkd { };
gtkd = callPackage ../development/libraries/gtkd { dcompiler = ldc; };
gtkgnutella = callPackage ../tools/networking/p2p/gtk-gnutella { };