Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
59 lines
1.0 KiB
Nix
59 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
fetchpatch,
|
|
|
|
gobject-introspection,
|
|
gtk4,
|
|
meson,
|
|
ninja,
|
|
pkg-config,
|
|
|
|
json-glib,
|
|
libadwaita,
|
|
libxml2,
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "text-engine";
|
|
version = "0.1.1-unstable-2024-09-16";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mjakeman";
|
|
repo = "text-engine";
|
|
rev = "4c26887556fd8e28211324c4058d49508eb5f557";
|
|
hash = "sha256-0rMBz2s3wYv7gZiJTj8rixWxBjT6Dd6SaINP8kDbTyw=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
gobject-introspection
|
|
gtk4
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
libadwaita
|
|
libxml2
|
|
];
|
|
|
|
postPatch = ''
|
|
# See https://github.com/mjakeman/text-engine/pull/42
|
|
substituteInPlace src/meson.build \
|
|
--replace-fail "dependency('json-glib-1.0')," ""
|
|
'';
|
|
|
|
meta = {
|
|
description = "Rich text framework for GTK";
|
|
mainProgram = "text-engine-demo";
|
|
homepage = "https://github.com/mjakeman/text-engine";
|
|
license = with lib.licenses; [
|
|
mpl20
|
|
lgpl21Plus
|
|
];
|
|
maintainers = with lib.maintainers; [ foo-dogsquared ];
|
|
};
|
|
}
|