mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-13 16:34:27 +00:00
arduino-cli: fix fhsenv version (#359959)
This commit is contained in:
commit
2fd0802cbf
@ -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 ];
|
||||
|
Loading…
Reference in New Issue
Block a user