nixos-config/pkgs/domterm/default.nix

60 lines
1.6 KiB
Nix
Raw Permalink Normal View History

2025-01-15 06:00:12 +00:00
{ lib, stdenv, fetchFromGitHub, autoreconfHook, desktop-file-utils, pkg-config
, libwebsockets, ncurses, openssl, unixtools, zlib, rustPlatform, perl, qtbase
, qtwebchannel, qtwebengine, wrapQtAppsHook
, withQtDocking ? false
2025-01-15 06:00:12 +00:00
, withKddockwidgets ? false, kddockwidgets
2025-01-15 06:00:12 +00:00
, withAsciidoctor ? true, asciidoctor
2025-01-15 06:00:12 +00:00
, withDocbook ? true, docbook-xsl-ns, libxslt }:
2022-05-14 14:56:34 +00:00
stdenv.mkDerivation rec {
pname = "domterm";
version = "unstable-2023-07-22";
2022-05-14 14:56:34 +00:00
src = fetchFromGitHub {
owner = "PerBothner";
repo = "DomTerm";
rev = "33ca5ad96cd8fc274b8e97533123dd8c33fb1938";
hash = "sha256-H1Nzqzz7dv4j9hkb08FCExLeq69EkFNXGzhhl/e+uxI=";
2022-05-14 14:56:34 +00:00
};
2025-01-15 06:00:12 +00:00
configureFlags =
[ "--with-libwebsockets" "--enable-compiled-in-resources" "--with-qt" ]
++ lib.optional withAsciidoctor "--with-asciidoctor"
++ lib.optional withQtDocking "--with-qt-docking"
++ lib.optional withKddockwidgets "--with-kddockwidgets"
++ lib.optional withDocbook "--with-docbook";
nativeBuildInputs = [
2023-01-07 08:06:34 +00:00
autoreconfHook
pkg-config
wrapQtAppsHook
qtbase
qtwebchannel
qtwebengine
];
2022-05-14 14:56:34 +00:00
buildInputs = [
2022-05-14 14:56:34 +00:00
asciidoctor
desktop-file-utils
ncurses
2022-05-14 14:56:34 +00:00
libwebsockets
openssl
perl
2022-05-14 14:56:34 +00:00
unixtools.xxd
zlib
2025-01-15 06:00:12 +00:00
] ++ lib.optional withKddockwidgets kddockwidgets
++ lib.optional withAsciidoctor asciidoctor
++ lib.optionals withDocbook [ docbook-xsl-ns libxslt ];
2022-05-14 14:56:34 +00:00
meta = with lib; {
homepage = "https://domterm.org/";
description = "Terminal emulator based on web technologies.";
license = licenses.bsd3;
maintainers = with maintainers; [ foo-dogsquared ];
2022-05-14 14:56:34 +00:00
};
}