Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
e73d334
help2man: fix build with strictDeps
Artturin Oct 22, 2021
d8df341
groff: fix strictDeps by moving defining perl path out of the
Artturin Oct 22, 2021
bef48d1
apparmor: disable strictDeps explicitly for libapparmor
Artturin Oct 22, 2021
0a5f251
itstool: enable strictDeps
Artturin Oct 22, 2021
bf05ab5
gdk-pixbuf: enable strictDeps
Artturin Oct 22, 2021
a57efde
libnotify: enable strictDeps
Artturin Oct 23, 2021
7782153
apparmor: enable strictDeps for apparmor-utils
Artturin Oct 23, 2021
533c61c
xcb-util-xrm: enable strictDeps
Artturin Oct 23, 2021
599e6c0
perlPackages.X11XCB: fix strictDeps
Artturin Oct 23, 2021
077ceba
pango: disable strictDeps when building with introspection
Artturin Oct 23, 2021
74dbb75
graphviz: fix build with strictDeps
Artturin Oct 23, 2021
c3bda58
opensp: enable strictDeps and remove unneeded deps
Artturin Oct 23, 2021
49ec8f9
docbook2x: fix building with strictDeps
Artturin Oct 23, 2021
e7dbe3b
git: fix build with strictDeps
Artturin Oct 23, 2021
77ed602
wayland: fix build with strictDeps
Artturin Oct 23, 2021
9da4dbc
python3Packages.xpybutil: disable tests
Artturin Oct 23, 2021
c36938b
i3: fix build with strictDeps
Artturin Oct 23, 2021
6e08fac
libgudev: enable strictDeps
Artturin Oct 23, 2021
c61af8a
dconf: fix build with strictDeps
Artturin Oct 23, 2021
66ee135
autogen: fix build with strictDeps
Artturin Oct 23, 2021
f7effe3
pulseaudio: fix build with strictDeps
Artturin Oct 23, 2021
6d3ae93
librsvg: fix binfmt cross-compiling
Artturin Oct 22, 2021
5186e88
sway: fix binfmt cross-compilation
Artturin Oct 23, 2021
e83600a
gi-docgen: fix cross by adding python3 to depsBuildBuild
Artturin Oct 26, 2021
e464c4c
pax-utils: enable strictDeps
Artturin Oct 30, 2021
75fd86f
ghostscript: fix cross-compile
Artturin Nov 4, 2021
04e17c1
perlPackages.ExtUtilsPkgConfig: fix cross-compiling
Artturin Nov 4, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{ fetchurl, lib, stdenv, buildPackages
, curl, openssl, zlib, expat, perlPackages, python3, gettext, cpio
, gnugrep, gnused, gawk, coreutils # needed at runtime by git-filter-branch etc
, openssh, pcre2
, openssh, pcre2, bash
, asciidoc, texinfo, xmlto, docbook2x, docbook_xsl, docbook_xml_dtd_45
, libxslt, tcl, tk, makeWrapper, libiconv
, svnSupport, subversionClient, perlLibs, smtpPerlLibs
Expand Down Expand Up @@ -73,7 +73,7 @@ stdenv.mkDerivation {
nativeBuildInputs = [ gettext perlPackages.perl makeWrapper ]
++ lib.optionals withManual [ asciidoc texinfo xmlto docbook2x
docbook_xsl docbook_xml_dtd_45 libxslt ];
buildInputs = [curl openssl zlib expat cpio libiconv]
buildInputs = [ curl openssl zlib expat cpio libiconv bash ]
++ lib.optionals perlSupport [ perlPackages.perl ]
++ lib.optionals guiSupport [tcl tk]
++ lib.optionals withpcre2 [ pcre2 ]
Expand All @@ -84,11 +84,12 @@ stdenv.mkDerivation {
NIX_LDFLAGS = lib.optionalString (stdenv.cc.isGNU && stdenv.hostPlatform.libc == "glibc") "-lgcc_s"
+ lib.optionalString (stdenv.isFreeBSD) "-lthr";

configureFlags = lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [
configureFlags = [
"ac_cv_prog_CURL_CONFIG=${lib.getDev curl}/bin/curl-config"
] ++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [
"ac_cv_fread_reads_directories=yes"
"ac_cv_snprintf_returns_bogus=no"
"ac_cv_iconv_omits_bom=no"
"ac_cv_prog_CURL_CONFIG=${curl.dev}/bin/curl-config"
];

preBuild = ''
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/window-managers/i3/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
};

nativeBuildInputs = [
pkg-config makeWrapper meson ninja installShellFiles
pkg-config makeWrapper meson ninja installShellFiles perl
asciidoc xmlto docbook_xml_dtd_45 docbook_xsl findXMLCatalogs
];

Expand Down
8 changes: 7 additions & 1 deletion pkgs/applications/window-managers/sway/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,14 @@ stdenv.mkDerivation rec {
echo -e '\ninclude /etc/sway/config.d/*' >> config.in
'';

strictDeps = true;

# Pkg-config binary for machine MachineChoice.BUILD not found. Giving up.
# has to be in both depsBuildBuild and nativeBuildInputs
depsBuildBuild = [ pkg-config scdoc ];

nativeBuildInputs = [
meson ninja pkg-config wayland-scanner scdoc
meson ninja pkg-config wayland-scanner
];

buildInputs = [
Expand Down
4 changes: 4 additions & 0 deletions pkgs/development/libraries/dconf/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ stdenv.mkDerivation rec {
"-Dgtk_doc=${lib.boolToString (!isCross)}" # gtk-doc does do some gobject introspection, which doesn't yet cross-compile.
] ++ lib.optional isCross "-Dvapi=false";

checkInputs = [
dbus # for dbus-daemon
];

doCheck = !stdenv.isAarch32 && !stdenv.isAarch64 && !stdenv.isDarwin;

postPatch = ''
Expand Down
19 changes: 15 additions & 4 deletions pkgs/development/libraries/gdk-pixbuf/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@
, libjpeg
, libpng
, gnome
, gobject-introspection
, doCheck ? false
, makeWrapper
, lib
, withIntrospection ? (stdenv.buildPlatform == stdenv.hostPlatform)
, gobject-introspection
}:

let
Expand All @@ -43,13 +44,19 @@ stdenv.mkDerivation rec {
./installed-tests-path.patch
];

# gdk-pixbuf-thumbnailer is not wrapped therefore strictDeps will work
strictDeps = true;

depsBuildBuild = [
pkg-config
];

nativeBuildInputs = [
meson
ninja
pkg-config
gettext
python3
gobject-introspection
makeWrapper
glib
gi-docgen
Expand All @@ -58,7 +65,11 @@ stdenv.mkDerivation rec {
libxslt
docbook-xsl-nons
docbook_xml_dtd_43
] ++ lib.optional stdenv.isDarwin fixDarwinDylibNames;
] ++ lib.optionals stdenv.isDarwin [
fixDarwinDylibNames
] ++ lib.optionals withIntrospection [
gobject-introspection
];

propagatedBuildInputs = [
glib
Expand All @@ -69,7 +80,7 @@ stdenv.mkDerivation rec {

mesonFlags = [
"-Dgtk_doc=${lib.boolToString withGtkDoc}"
"-Dintrospection=${if (stdenv.buildPlatform == stdenv.hostPlatform) then "enabled" else "disabled"}"
"-Dintrospection=${if withIntrospection then "enabled" else "disabled"}"
"-Dgio_sniffing=false"
];

Expand Down
13 changes: 10 additions & 3 deletions pkgs/development/libraries/libgudev/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
, ninja
, udev
, glib
, gobject-introspection
, gnome
, vala
, withIntrospection ? (stdenv.buildPlatform == stdenv.hostPlatform)
, gobject-introspection
}:

stdenv.mkDerivation rec {
Expand All @@ -21,12 +22,18 @@ stdenv.mkDerivation rec {
sha256 = "1al6nr492nzbm8ql02xhzwci2kwb1advnkaky3j9636jf08v41hd";
};

strictDeps = true;

depsBuildBuild = [ pkg-config ];

nativeBuildInputs = [
pkg-config
gobject-introspection
meson
ninja
vala
glib # for glib-mkenums needed during the build
] ++ lib.optionals withIntrospection [
gobject-introspection
];

buildInputs = [
Expand All @@ -37,8 +44,8 @@ stdenv.mkDerivation rec {
mesonFlags = [
# There's a dependency cycle with umockdev and the tests fail to LD_PRELOAD anyway
"-Dtests=disabled"
"-Dintrospection=${if withIntrospection then "enabled" else "disabled"}"
] ++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [
"-Dintrospection=disabled"
"-Dvapi=disabled"
];

Expand Down
14 changes: 12 additions & 2 deletions pkgs/development/libraries/libnotify/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
, docbook-xsl-ns
, glib
, gdk-pixbuf
, gobject-introspection
, gnome
, withIntrospection ? (stdenv.buildPlatform == stdenv.hostPlatform)
, gobject-introspection
}:

stdenv.mkDerivation rec {
Expand All @@ -27,15 +28,24 @@ stdenv.mkDerivation rec {
"-Dtests=false"
"-Ddocbook_docs=disabled"
"-Dgtk_doc=false"
"-Dintrospection=${if withIntrospection then "enabled" else "disabled"}"
];

strictDeps = true;

nativeBuildInputs = [
gobject-introspection
meson
ninja
pkg-config
libxslt
docbook-xsl-ns
glib # for glib-mkenums needed during the build
] ++ lib.optionals withIntrospection [
gobject-introspection
];

buildInputs = lib.optionals withIntrospection [
gobject-introspection
];

propagatedBuildInputs = [
Expand Down
3 changes: 3 additions & 0 deletions pkgs/development/libraries/librsvg/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ stdenv.mkDerivation rec {
# Fix thumbnailer path
sed -e "s#@bindir@\(/gdk-pixbuf-thumbnailer\)#${gdk-pixbuf}/bin\1#g" \
-i gdk-pixbuf-loader/librsvg.thumbnailer.in

# 'error: linker `cc` not found' when cross-compiling
export RUSTFLAGS="-Clinker=$CC"
'';

# Not generated when cross compiling.
Expand Down
20 changes: 14 additions & 6 deletions pkgs/development/libraries/pango/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
, harfbuzz
, libintl
, libthai
, gobject-introspection
, darwin
, fribidi
, gnome
Expand All @@ -16,12 +15,13 @@
, meson
, ninja
, glib
, python3
, x11Support? !stdenv.isDarwin, libXft
, withIntrospection ? (stdenv.buildPlatform == stdenv.hostPlatform)
, gobject-introspection
, withDocs ? (stdenv.buildPlatform == stdenv.hostPlatform)
}:

let
withDocs = stdenv.buildPlatform == stdenv.hostPlatform;
in
stdenv.mkDerivation rec {
pname = "pango";
version = "1.48.10";
Expand All @@ -34,12 +34,21 @@ stdenv.mkDerivation rec {
sha256 = "IeH1eYvN/adeq8QoBRSwiWq1b2VtTn5mAwuaJTXs3Jg=";
};

strictDeps = !withIntrospection;

depsBuildBuild = [
pkg-config
];

nativeBuildInputs = [
meson ninja
glib # for glib-mkenum
pkg-config
] ++ lib.optionals withIntrospection [
gobject-introspection
] ++ lib.optionals withDocs [
gi-docgen
python3
];

buildInputs = [
Expand All @@ -63,10 +72,9 @@ stdenv.mkDerivation rec {

mesonFlags = [
"-Dgtk_doc=${lib.boolToString withDocs}"
"-Dintrospection=${if withIntrospection then "enabled" else "disabled"}"
] ++ lib.optionals (!x11Support) [
"-Dxft=disabled" # only works with x11
] ++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [
"-Dintrospection=disabled"
];

# Fontconfig error: Cannot load default config file
Expand Down
1 change: 1 addition & 0 deletions pkgs/development/libraries/wayland/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ stdenv.mkDerivation rec {
xmlto
python3
docbook_xml_dtd_45
docbook_xsl
];

buildInputs = [
Expand Down
9 changes: 7 additions & 2 deletions pkgs/development/python-modules/xpybutil/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, buildPythonPackage, fetchFromGitHub, xcffib, pillow, nose }:
{ lib, buildPythonPackage, fetchFromGitHub, xcffib, pillow }:

buildPythonPackage rec {
pname = "xpybutil";
Expand All @@ -17,7 +17,12 @@ buildPythonPackage rec {

propagatedNativeBuildInputs = [ xcffib ];

checkInputs = [ nose ];
# no tests
doCheck = false;

pythonImportsCheck = [
"xpybutil"
];

meta = with lib; {
homepage = "https://github.com/BurntSushi/xpybutil";
Expand Down
4 changes: 4 additions & 0 deletions pkgs/development/tools/documentation/gi-docgen/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ python3.pkgs.buildPythonApplication rec {
})
];

depsBuildBuild = [
python3
];

nativeBuildInputs = [
meson
ninja
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/tools/misc/autogen/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ stdenv.mkDerivation rec {

configureFlags =
[
"--with-libxml2=${libxml2.dev}"
"--with-libxml2-cflags=-I${libxml2.dev}/include/libxml2"
# Make sure to use a static value for the timeout. If we do not set a value
# here autogen will select one based on the execution time of the configure
# phase which is not really reproducible.
Expand All @@ -64,8 +66,6 @@ stdenv.mkDerivation rec {
"--enable-timeout=78"
]
++ (lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
"--with-libxml2=${libxml2.dev}"
"--with-libxml2-cflags=-I${libxml2.dev}/include/libxml2"
# the configure check for regcomp wants to run a host program
"libopts_cv_with_libregex=yes"
#"MAKEINFO=${buildPackages.texinfo}/bin/makeinfo"
Expand Down
6 changes: 4 additions & 2 deletions pkgs/development/tools/misc/help2man/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ stdenv.mkDerivation rec {
sha256 = "sha256-ZznkyqQuau0zmb5Dh8p5OZZAlnM06RcohjuOqpIlgr4=";
};

nativeBuildInputs = [ gettext perlPackages.LocaleGettext ];
buildInputs = [ perlPackages.perl perlPackages.LocaleGettext ];
strictDeps = true;

nativeBuildInputs = [ gettext perlPackages.perl perlPackages.LocaleGettext ];
buildInputs = [ perlPackages.LocaleGettext ];

doCheck = false; # target `check' is missing

Expand Down
6 changes: 4 additions & 2 deletions pkgs/development/tools/misc/itstool/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ stdenv.mkDerivation rec {
sha256 = "1acjgf8zlyk7qckdk19iqaca4jcmywd7vxjbcs1mm6kaf8icqcv2";
};

pythonPath = [ python3.pkgs.libxml2 ];
strictDeps = true;

nativeBuildInputs = [ python3 python3.pkgs.wrapPython ];
buildInputs = [ python3 python3.pkgs.libxml2 ];
nativeBuildInputs = [ python3.pkgs.wrapPython ];
pythonPath = [ python3.pkgs.libxml2 ];

postFixup = ''
wrapPythonPrograms
Expand Down
Loading