mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 03:43:06 +00:00
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:
parent
e735172601
commit
b3613dd8d7
@ -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";
|
||||
|
@ -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 { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user