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

View file

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