Merge pull request #142415 from Artturin/crossfixes1

authored by Sandro and committed by GitHub 2558d8e6 aaa66ba3

+44 -12
+5 -2
pkgs/tools/inputmethods/m17n-db/default.nix
··· 1 - { lib, stdenv, fetchurl, gettext }: 2 3 stdenv.mkDerivation rec { 4 pname = "m17n-db"; ··· 9 sha256 = "0vfw7z9i2s9np6nmx1d4dlsywm044rkaqarn7akffmb6bf1j6zv5"; 10 }; 11 12 - buildInputs = [ gettext ]; 13 14 configureFlags = lib.optional (stdenv ? glibc) 15 "--with-charmaps=${stdenv.glibc.out}/share/i18n/charmaps"
··· 1 + { lib, stdenv, fetchurl, gettext, gawk, bash }: 2 3 stdenv.mkDerivation rec { 4 pname = "m17n-db"; ··· 9 sha256 = "0vfw7z9i2s9np6nmx1d4dlsywm044rkaqarn7akffmb6bf1j6zv5"; 10 }; 11 12 + nativeBuildInputs = [ gettext ]; 13 + buildInputs = [ gettext gawk bash ]; 14 + 15 + strictDeps = true; 16 17 configureFlags = lib.optional (stdenv ? glibc) 18 "--with-charmaps=${stdenv.glibc.out}/share/i18n/charmaps"
+6 -1
pkgs/tools/inputmethods/m17n-lib/default.nix
··· 1 - {lib, stdenv, fetchurl, m17n_db}: 2 stdenv.mkDerivation rec { 3 pname = "m17n-lib"; 4 version = "1.8.0"; ··· 7 url = "https://download.savannah.gnu.org/releases/m17n/m17n-lib-${version}.tar.gz"; 8 sha256 = "0jp61y09xqj10mclpip48qlfhniw8gwy8b28cbzxy8hq8pkwmfkq"; 9 }; 10 11 buildInputs = [ m17n_db ]; 12
··· 1 + { lib, stdenv, fetchurl, m17n_db, autoreconfHook, pkg-config }: 2 stdenv.mkDerivation rec { 3 pname = "m17n-lib"; 4 version = "1.8.0"; ··· 7 url = "https://download.savannah.gnu.org/releases/m17n/m17n-lib-${version}.tar.gz"; 8 sha256 = "0jp61y09xqj10mclpip48qlfhniw8gwy8b28cbzxy8hq8pkwmfkq"; 9 }; 10 + 11 + strictDeps = true; 12 + 13 + # reconf needed to sucesfully cross-compile 14 + nativeBuildInputs = [ autoreconfHook pkg-config ]; 15 16 buildInputs = [ m17n_db ]; 17
+33 -9
pkgs/tools/inputmethods/m17n-lib/otf.nix
··· 1 - { lib, stdenv, fetchurl, libXaw, freetype }: 2 3 stdenv.mkDerivation rec { 4 - name = "libotf-0.9.16"; 5 6 src = fetchurl { 7 - url = "https://download.savannah.gnu.org/releases/m17n/${name}.tar.gz"; 8 sha256 = "0sq6g3xaxw388akws6qrllp3kp2sxgk2dv4j79k6mm52rnihrnv8"; 9 }; 10 11 - outputs = [ "out" "dev" ]; 12 13 buildInputs = [ libXaw freetype ]; 14 15 - postInstall = 16 - '' 17 - mkdir -p $dev/bin 18 - mv $out/bin/libotf-config $dev/bin/ 19 - ''; 20 21 meta = { 22 homepage = "https://www.nongnu.org/m17n/";
··· 1 + { lib, stdenv, fetchurl, fetchpatch, pkg-config, autoreconfHook, libXaw, freetype }: 2 3 stdenv.mkDerivation rec { 4 + pname = "libotf"; 5 + version = "0.9.16"; 6 7 src = fetchurl { 8 + url = "https://download.savannah.gnu.org/releases/m17n/${pname}-${version}.tar.gz"; 9 sha256 = "0sq6g3xaxw388akws6qrllp3kp2sxgk2dv4j79k6mm52rnihrnv8"; 10 }; 11 12 + patches = [ 13 + # https://salsa.debian.org/debian/libotf/-/tree/master/debian/patches 14 + # Fix cross-compilation 15 + (fetchpatch { 16 + url = "https://salsa.debian.org/debian/libotf/-/raw/1be04cedf887720eb8f5efb3594dc2cefd96b1f1/debian/patches/0002-use-pkg-config-not-freetype-config.patch"; 17 + sha256 = "sha256-VV9iGoNWIEie6UiLLTJBD+zxpvj0acgqkcBeAN1V6Kc="; 18 + }) 19 + # these 2 are required by the above patch 20 + (fetchpatch { 21 + url = "https://salsa.debian.org/debian/libotf/-/raw/1be04cedf887720eb8f5efb3594dc2cefd96b1f1/debian/patches/0001-do-not-add-flags-for-required-packages-to-pc-file.patch"; 22 + sha256 = "sha256-3kzqNPAHNVJQ1F4fyifq3AqLdChWli/k7wOq+ha+iDs="; 23 + }) 24 + (fetchpatch { 25 + url = "https://salsa.debian.org/debian/libotf/-/raw/1be04cedf887720eb8f5efb3594dc2cefd96b1f1/debian/patches/0001-libotf-config-modify-to-support-multi-arch.patch"; 26 + sha256 = "sha256-SUlI87h+MtYWWtrAegzAnSds8JhxZwTJltDcj/se/Qc="; 27 + }) 28 + ]; 29 + 30 + strictDeps = true; 31 + 32 + nativeBuildInputs = [ pkg-config autoreconfHook ]; 33 34 buildInputs = [ libXaw freetype ]; 35 36 + outputs = [ "out" "dev" ]; 37 + 38 + postInstall = '' 39 + mkdir -p $dev/bin 40 + mv $out/bin/libotf-config $dev/bin/ 41 + substituteInPlace $dev/bin/libotf-config \ 42 + --replace "pkg-config" "${pkg-config}/bin/pkg-config" 43 + ''; 44 45 meta = { 46 homepage = "https://www.nongnu.org/m17n/";