diff options
author | Jan Tojnar <jtojnar@gmail.com> | 2022-05-21 18:39:02 +0200 |
---|---|---|
committer | Jan Tojnar <jtojnar@gmail.com> | 2022-05-21 18:55:10 +0200 |
commit | 14dafc194f2b1166084110de1689efac20f1b6af (patch) | |
tree | faf0ea572b7bada5d723114cd0d8ffef782fb900 | |
parent | c55e200bb0855b4276438c71a8730d184e73a573 (diff) | |
download | nixpkgs-14dafc194f2b1166084110de1689efac20f1b6af.tar nixpkgs-14dafc194f2b1166084110de1689efac20f1b6af.tar.gz nixpkgs-14dafc194f2b1166084110de1689efac20f1b6af.tar.bz2 nixpkgs-14dafc194f2b1166084110de1689efac20f1b6af.tar.lz nixpkgs-14dafc194f2b1166084110de1689efac20f1b6af.tar.xz nixpkgs-14dafc194f2b1166084110de1689efac20f1b6af.tar.zst nixpkgs-14dafc194f2b1166084110de1689efac20f1b6af.zip |
avahi: Simplify pkg-config cross fix
Building `pkgsCross.aarch64-multiplatform.avahi` would fail in the past with: checking for pkg-config... no configure: error: pkg-config is required to install this program To fix that, two independent workarounds were applied, each sufficient: - 34e4d0fd98aa66a0f46a6eb96dabadbbd44294b9 - 65a5313de5d34d73e2930bd132fe476f57f1b60f These days, it is more common to just add `pkg-config` to `depsBuildBuild`.
-rw-r--r-- | pkgs/development/libraries/avahi/default.nix | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/pkgs/development/libraries/avahi/default.nix b/pkgs/development/libraries/avahi/default.nix index 3f0577705f3..d3e20b0422b 100644 --- a/pkgs/development/libraries/avahi/default.nix +++ b/pkgs/development/libraries/avahi/default.nix @@ -25,11 +25,6 @@ assert qt4Support -> qt4 != null; -let - # despite the configure script claiming it supports $PKG_CONFIG, it doesnt respect it - pkg-config-helper = writeShellScriptBin "pkg-config" ''exec $PKG_CONFIG "$@"''; -in - stdenv.mkDerivation rec { pname = "avahi${lib.optionalString withLibdnssdCompat "-compat"}"; version = "0.8"; @@ -48,9 +43,12 @@ stdenv.mkDerivation rec { }) ]; + depsBuildBuild = [ + pkg-config + ]; + nativeBuildInputs = [ pkg-config - pkg-config-helper gettext glib ]; @@ -100,11 +98,6 @@ stdenv.mkDerivation rec { NIX_CFLAGS_COMPILE = "-DAVAHI_SERVICE_DIR=\"/etc/avahi/services\""; - prePatch = '' - substituteInPlace configure \ - --replace pkg-config "$PKG_CONFIG" - ''; - preBuild = lib.optionalString stdenv.isDarwin '' sed -i '20 i\ #define __APPLE_USE_RFC_2292' \ |