| 13 Dec 2021 |
Rick (Mindavi) | Yeah, last I checked it worked fine :) | 22:13:29 |
| 14 Dec 2021 |
Mic92 | for those who care about cross-compiling systemd: https://github.com/NixOS/nixpkgs/pull/150491/files#r767351535 | 14:17:54 |
| 15 Dec 2021 |
Mic92 | Regression in statically-compiled util-linux blocks nixpkgs-bump in the nix repo https://hydra.nixos.org/build/161448992/nixlog/1 | 13:35:43 |
Mic92 | * Regression in statically-compiled util-linux blocks nixpkgs-bump in the nix repo https://hydra.nixos.org/build/161448992/nixlog/1 https://hydra.nixos.org/build/161448992 https://github.com/NixOS/nix/pull/5722#issuecomment-994770347 | 13:36:02 |
Alyssa Ross | thanks for the heads up! | 14:29:23 |
Alyssa Ross | (about systemd) | 14:29:36 |
| 17 Dec 2021 |
| T_UNIX changed their display name from t_unix to T_UNIX. | 12:26:05 |
trofi | What is the correct way to pull in openmp related to stdenv? Example package failure: https://github.com/NixOS/nixpkgs/pull/150912 | 18:14:48 |
trofi | I think it would be useful for clangStdenv to contain reference to matching llvmPackages. | 18:19:24 |
trofi | Heh https://github.com/NixOS/nixpkgs/issues/79818 | 18:28:28 |
| 19 Dec 2021 |
Las | Do I need to have nativeBuildInputs = [ buildPackages.stdenv.cc ]; to support cross-compilation? | 17:27:08 |
Las | This is in alsa-firmware | 17:27:12 |
Rick (Mindavi) | That's probably related to the attached patch, I don't think it's always needed | 17:52:36 |
Artturin | In reply to @Las:matrix.org Do I need to have nativeBuildInputs = [ buildPackages.stdenv.cc ]; to support cross-compilation? having that is redundant | 18:03:44 |
Artturin | you can confirm it by building ".#pkgsCross.aarch64-multiplatform.alsa-firmware" and then removing buildPackages.stdenv.cc and building again | 18:04:29 |
Artturin | nothing will be rebuilt | 18:04:35 |
Las | Is the gcc used for cross compilation still called gcc? | 19:01:56 |
Las | * Is the gcc used for cross compilation still called cc? | 19:02:05 |
Rick (Mindavi) | No, I don't think so, you can check in a nix-shell with echo $CC | 19:11:19 |
sterni | ${stdenv.cc.targetPrefix}cc | 23:16:38 |
sterni | In reply to @Las:matrix.org Do I need to have nativeBuildInputs = [ buildPackages.stdenv.cc ]; to support cross-compilation? that compiler is for building something for the build system and is only necessary if you e. g. need to compile the build system which is executed during the build then | 23:17:46 |
sterni | putting it into nativeBuildInputs is hacky at best though, you can get such a compiler by simply putting something into depsBuildBuild (probably another way to force it?) and it'll be available as $CC_FOR_BUILD. | 23:18:27 |
Las | Thanks. | 23:18:51 |
Las | TBF I think that's hackier, if you have to put "something" in but it doesn't matter what it is. | 23:19:14 |
| 20 Dec 2021 |
| kunrooted changed their profile picture. | 09:14:29 |
sterni | Las: well just put buildPackages.stdenv.cc in there | 09:25:12 |
sterni | then it's in its correct place plus you get it as $CC_FOR_BUILD | 09:25:25 |
cdepillabout | In reply to @sternenseemann:systemli.org putting it into nativeBuildInputs is hacky at best though, you can get such a compiler by simply putting something into depsBuildBuild (probably another way to force it?) and it'll be available as $CC_FOR_BUILD. I've always wondered how this worked. I wonder if I'd be able to refactor some of my derivations at work to stop explicitly taking things from pkgsBuildHost and instead putting things intodepsBuildBuild. | 14:20:33 |
Artturin | In reply to @cdepillabout:matrix.org I've always wondered how this worked. I wonder if I'd be able to refactor some of my derivations at work to stop explicitly taking things from pkgsBuildHost and instead putting things intodepsBuildBuild. shouldn't pkgsBuildHost packages just be in nativeBuildInputs and then you wont have to explicitly take then from pkgsBuildHost | 17:02:26 |
Artturin | https://nixos.org/manual/nixpkgs/stable/#ssec-stdenv-dependencies
| host → target | attribute name | offset | | ------------------- | ------------------- | -------- | | build --> build | depsBuildBuild | -1, -1 | | build --> host | nativeBuildInputs | -1, 0 | | build --> target | depsBuildTarget | -1, 1 | | host --> host | depsHostHost | 0, 0 | | host --> target | buildInputs | 0, 1 | | target --> target | depsTargetTarget | 1, 1 |
| 17:02:35 |