nixpkgs/pkgs/by-name/gt/gtkhtml/package.nix
nicoo 2641d97cbf pkgs/by-name: Convert hashes to SRI format
Reproduction script:
	# Bulk rewrite
	./maintainers/scripts/sha-to-sri.py pkgs/by-name
	# Revert some packages which will need manual intervention
	for n in amdvlk azure-cli cargo-profiler corefonts flatito fluxcd gist perf_data_converter protoc-gen-js solana-cli swt verible; do
		git checkout -- "pkgs/by-name/${n:0:2}/${n}"
	done
2024-09-15 11:24:31 +02:00

63 lines
1.2 KiB
Nix

{
lib,
stdenv,
fetchurl,
fetchpatch,
autoreconfHook,
pkg-config,
gtk3,
intltool,
gnome,
adwaita-icon-theme,
enchant,
isocodes,
gsettings-desktop-schemas,
}:
stdenv.mkDerivation rec {
pname = "gtkhtml";
version = "4.10.0";
src = fetchurl {
url = "mirror://gnome/sources/gtkhtml/${lib.versions.majorMinor version}/gtkhtml-${version}.tar.xz";
hash = "sha256-yjtkJPssesXZy4/a+2kxj6LoJcnPbtF9HjjZsp5WBsM=";
};
patches = [
# Enables enchant2 support.
# Upstream is dead, no further releases are coming.
(fetchpatch {
name = "enchant-2.patch";
url = "https://aur.archlinux.org/cgit/aur.git/plain/enchant-2.patch?h=gtkhtml4&id=0218303a63d64c04d6483a6fe9bb55063fcfaa43";
hash = "sha256-f0OToWGHZwxvqf+0qosfA9FfwJ/IXfjIPP5/WrcvArI=";
extraPrefix = "";
})
];
passthru = {
updateScript = gnome.updateScript { packageName = "gtkhtml"; };
};
nativeBuildInputs = [
autoreconfHook
pkg-config
intltool
];
buildInputs = [
gtk3
adwaita-icon-theme
gsettings-desktop-schemas
];
propagatedBuildInputs = [
enchant
isocodes
];
meta = with lib; {
platforms = platforms.linux;
maintainers = [ ];
};
}