Commit 13d60d66 authored by Florian Klink's avatar Florian Klink
Browse files

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.
parent 262d0387
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -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
+2 −0
Original line number Diff line number Diff line
@@ -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 { };