arduino-cli: fix fhsenv version (#359959)

This commit is contained in:
Felix Bühler 2024-11-29 22:14:17 +01:00 committed by GitHub
commit 2fd0802cbf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -94,17 +94,13 @@ if stdenv.hostPlatform.isLinux then
# toolchains from the internet that have their interpreters pointed at
# /lib64/ld-linux-x86-64.so.2
buildFHSEnv {
inherit (pkg) name meta;
inherit (pkg) pname version meta;
runScript = "${pkg.outPath}/bin/arduino-cli";
extraInstallCommands =
''
mv $out/bin/$name $out/bin/arduino-cli
''
+ lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
cp -r ${pkg.outPath}/share $out/share
'';
extraInstallCommands = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
cp -r ${pkg.outPath}/share $out/share
'';
passthru.pureGoPkg = pkg;
targetPkgs = pkgs: with pkgs; [ zlib ];