nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
fork

Configure Feed

Select the types of activity you want to include in your feed.

xdg-utils: enable cross compilation

native build produces binaries with `#!${bash}/bin/sh` as shebang.
seems to be a consequence of nixpkgs using bash in the builder, and
`patchShebangs` sees that. OTOH cross builds would get `#!/bin/sh` because
the builder's bash isn't eligible as a runtime shebang. i can't say
which is most "correct" in the context of this tool, but shipping bash
in `buildInputs` where `patchShebangs` can see it at least gets us *consistency*.

Colin a227fd1f 1b64bc69

+4 -1
+4 -1
pkgs/tools/X11/xdg-utils/default.nix
··· 2 2 , file, libxslt, docbook_xml_dtd_412, docbook_xsl, xmlto 3 3 , w3m, gnugrep, gnused, coreutils, xset, perlPackages 4 4 , mimiSupport ? false, gawk 5 + , bash 5 6 , glib 6 7 , withXdgOpenUsePortalPatch ? true }: 7 8 ··· 49 48 # just needed when built from git 50 49 nativeBuildInputs = [ libxslt docbook_xml_dtd_412 docbook_xsl xmlto w3m ]; 51 50 51 + # explicitly provide a runtime shell so patchShebangs is consistent across build platforms 52 + buildInputs = [ bash ]; 53 + 52 54 postInstall = lib.optionalString mimiSupport '' 53 55 cp ${mimisrc}/xdg-open $out/bin/xdg-open 54 56 '' + '' ··· 87 83 license = if mimiSupport then licenses.gpl2 else licenses.free; 88 84 maintainers = [ maintainers.eelco ]; 89 85 platforms = platforms.all; 90 - broken = !(stdenv.buildPlatform.canExecute stdenv.hostPlatform); 91 86 }; 92 87 }