amtterm: allow compiling with gamt

This adds a graphical version of amtterm, called `gamt`, which
automatically gets built if gtk/gdk and vte are discovered.

It's gated behind a `withGamt` flag, defaulting to false, and available
as `gamt`.

This follows the same logic as qcam.
This commit is contained in:
Florian Klink 2025-01-26 16:05:37 +02:00
parent 262d03879b
commit 13d60d66d7
2 changed files with 11 additions and 1 deletions

View file

@ -3,10 +3,13 @@
lib,
stdenv,
makeWrapper,
gtk3,
openssl,
perl,
perlPackages,
pkg-config,
vte,
withGamt ? false,
}:
stdenv.mkDerivation (finalAttrs: {
@ -18,7 +21,12 @@ stdenv.mkDerivation (finalAttrs: {
perl
SOAPLite
])
++ [ openssl ];
++ [ openssl ]
++ lib.optionals withGamt [
gtk3
vte
];
nativeBuildInputs = [
makeWrapper
pkg-config

View file

@ -8752,6 +8752,8 @@ with pkgs;
protobuf = protobuf_21;
};
gamt = callPackage ../by-name/am/amtterm/package.nix { withGamt = true; };
gcr = callPackage ../development/libraries/gcr { };
gcr_4 = callPackage ../development/libraries/gcr/4.nix { };