diff options
author | Andrei Lapshin <alapshin@fastmail.com> | 2022-05-28 14:15:48 +0300 |
---|---|---|
committer | Andrei Lapshin <alapshin@fastmail.com> | 2022-05-28 14:15:48 +0300 |
commit | 0e3b22768dd80530401af2757a1bd9e0b6a4612b (patch) | |
tree | f4f4ad0764641d44afc12961ebe85941362af2c3 /pkgs/applications/editors/android-studio | |
parent | d5cc1e86594901b051a4ba6b452912caaa4e84d7 (diff) | |
download | nixlib-0e3b22768dd80530401af2757a1bd9e0b6a4612b.tar nixlib-0e3b22768dd80530401af2757a1bd9e0b6a4612b.tar.gz nixlib-0e3b22768dd80530401af2757a1bd9e0b6a4612b.tar.bz2 nixlib-0e3b22768dd80530401af2757a1bd9e0b6a4612b.tar.lz nixlib-0e3b22768dd80530401af2757a1bd9e0b6a4612b.tar.xz nixlib-0e3b22768dd80530401af2757a1bd9e0b6a4612b.tar.zst nixlib-0e3b22768dd80530401af2757a1bd9e0b6a4612b.zip |
Android Studio: allow to pass shell arguments
Pass parameters to Android Studio shell script. This way Android Studio can be used as git diff/merge tool. For example ``` [difftool "androidstudio"] cmd = android-studio nosplash diff $LOCAL $REMOTE 2>/dev/null trustExitCode = true [mergetool "androidstudio"] cmd = android-studio nosplash merge $LOCAL $REMOTE $BASE $MERGED 2>/dev/null trustExitCode = true ``` See https://www.jetbrains.com/help/idea/working-with-the-ide-features-from-command-line.html#arguments
Diffstat (limited to 'pkgs/applications/editors/android-studio')
-rw-r--r-- | pkgs/applications/editors/android-studio/common.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/applications/editors/android-studio/common.nix b/pkgs/applications/editors/android-studio/common.nix index 25dffad43bb9..bc74edf5261d 100644 --- a/pkgs/applications/editors/android-studio/common.nix +++ b/pkgs/applications/editors/android-studio/common.nix @@ -196,7 +196,7 @@ in runCommand { startScript = '' #!${bash}/bin/bash - ${fhsEnv}/bin/${drvName}-fhs-env ${androidStudio}/bin/studio.sh + ${fhsEnv}/bin/${drvName}-fhs-env ${androidStudio}/bin/studio.sh "$@" ''; preferLocalBuild = true; allowSubstitutes = false; |