Loading pkgs/by-name/am/amber-lang/package.nix +14 −4 Original line number Diff line number Diff line Loading @@ -5,6 +5,8 @@ bc, util-linux, makeWrapper, installShellFiles, stdenv, runCommand, amber-lang, nix-update-script, Loading @@ -29,7 +31,10 @@ rustPlatform.buildRustPackage rec { --replace-fail 'Command::new("/usr/bin/env")' 'Command::new("env")' ''; nativeBuildInputs = [ makeWrapper ]; nativeBuildInputs = [ makeWrapper installShellFiles ]; nativeCheckInputs = [ bc Loading @@ -43,8 +48,13 @@ rustPlatform.buildRustPackage rec { "--skip=tests::formatter::all_exist" ]; postInstall = '' postInstall = '' wrapProgram "$out/bin/amber" --prefix PATH : "${lib.makeBinPath [ bc ]}" '' + lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' installShellCompletion --cmd amber \ --bash <($out/bin/amber completion) ''; passthru = { Loading Loading
pkgs/by-name/am/amber-lang/package.nix +14 −4 Original line number Diff line number Diff line Loading @@ -5,6 +5,8 @@ bc, util-linux, makeWrapper, installShellFiles, stdenv, runCommand, amber-lang, nix-update-script, Loading @@ -29,7 +31,10 @@ rustPlatform.buildRustPackage rec { --replace-fail 'Command::new("/usr/bin/env")' 'Command::new("env")' ''; nativeBuildInputs = [ makeWrapper ]; nativeBuildInputs = [ makeWrapper installShellFiles ]; nativeCheckInputs = [ bc Loading @@ -43,8 +48,13 @@ rustPlatform.buildRustPackage rec { "--skip=tests::formatter::all_exist" ]; postInstall = '' postInstall = '' wrapProgram "$out/bin/amber" --prefix PATH : "${lib.makeBinPath [ bc ]}" '' + lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' installShellCompletion --cmd amber \ --bash <($out/bin/amber completion) ''; passthru = { Loading