mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-23 13:24:29 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
45 lines
1.0 KiB
Nix
45 lines
1.0 KiB
Nix
{ stdenv
|
|
, lib
|
|
, fetchFromGitHub
|
|
, fetchpatch
|
|
, meson
|
|
, ninja
|
|
, json-glib
|
|
, gtk4
|
|
, libxml2
|
|
, gobject-introspection
|
|
, pkg-config
|
|
, libadwaita
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "text-engine";
|
|
version = "0.1.1";
|
|
src = fetchFromGitHub {
|
|
owner = "mjakeman";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-YSG4Vk3hrmtaJkK1WAlQcdgiDdgC4Un0t6UdaoIcUes=";
|
|
};
|
|
|
|
patches = [
|
|
# Fixes build with newer versions of clang
|
|
(fetchpatch {
|
|
url = "https://github.com/mjakeman/text-engine/commit/749c94d853c0b0e29e79a1b270ec61947b65c319.patch";
|
|
hash = "sha256-vs/a8IBovArw8tc1ZLUsaDHRVyA71KMB1NGENOKNOdk=";
|
|
})
|
|
];
|
|
|
|
nativeBuildInputs = [ gobject-introspection gtk4 meson ninja pkg-config ];
|
|
|
|
buildInputs = [ libadwaita json-glib libxml2 ];
|
|
|
|
meta = with lib; {
|
|
description = "Rich text framework for GTK";
|
|
mainProgram = "text-engine-demo";
|
|
homepage = "https://github.com/mjakeman/text-engine";
|
|
license = with licenses; [ mpl20 lgpl21Plus ];
|
|
maintainers = with maintainers; [ foo-dogsquared ];
|
|
};
|
|
}
|