nixpkgs/pkgs
Alyssa Ross 6e6c8b7338 s6-rc: fix cross builds that run s6-rc-compile
The reason for this change is explained in the long comment I added.

Here's a simple example of the problem:

	let
	  pkgs = import <nixpkgs> { crossSystem.system = "aarch64-linux"; };
	in

	pkgs.callPackage ({ stdenv, s6-rc }: stdenv.mkDerivation {
	  name = "s6-rc-compiled";

	  nativeBuildInputs = [ s6-rc ];

	  buildCommand = ''
	    mkdir in
	    s6-rc-compile $out in
	  '';
	}) {}

We're cross compiling for aarch64 here, so we'd expect the scripts
generated by this derivation to be things we could run on aarch64.
But when I build this on my x86_64 machine, without this change
applied, $out/servicedirs/s6rc-oneshot-runner/run gets generated full
of references to x86_64 non-cross store paths for execline, s6, and
s6-rc.

With this change applied, the scripts generated by the above
expression now refer to the cross-compiled aarch64 store paths for
execline, s6, and s6-rc.
2021-08-18 20:09:19 +00:00
..
applications Merge pull request #134595 from r-ryantm/auto-update/stern 2021-08-18 10:27:19 -07:00
build-support s6-rc: fix cross builds that run s6-rc-compile 2021-08-18 20:09:19 +00:00
common-updater
data Merge pull request #134112 from r-ryantm/auto-update/iosevka-bin 2021-08-17 22:00:33 +03:00
desktops
development Merge pull request #134689 from fabaff/bump-versioneer 2021-08-18 21:48:00 +02:00
games Merge pull request #134422 from r-ryantm/auto-update/osu-lazer 2021-08-18 09:53:29 -07:00
misc Merge pull request #134551 from r-ryantm/auto-update/sameboy 2021-08-17 17:36:32 -05:00
os-specific Merge pull request #134431 from r-ryantm/auto-update/pcm 2021-08-18 06:11:41 -07:00
pkgs-lib
servers moodle: update to 3.11.2 2021-08-18 19:12:43 +02:00
shells Merge pull request #134587 from r-ryantm/auto-update/spaceship-prompt 2021-08-17 18:40:10 -07:00
stdenv
test
tools s6-rc: fix cross builds that run s6-rc-compile 2021-08-18 20:09:19 +00:00
top-level Merge pull request #134512 from nh2/netcdf-4.8.0 2021-08-18 15:38:57 +02:00