-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adb-sync: init at 2016-08-31 #18189
adb-sync: init at 2016-08-31 #18189
Conversation
Travis failure looks unrelated to my eye (I hope so at least :-) ). |
that's indeed an unrelated issue. |
|
||
installPhase = '' | ||
mkdir -p $out/bin | ||
cp $src/adb-channel $src/adb-sync $out/bin/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please indent this block
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
mkdir -p $out/bin | ||
cp $src/adb-channel $src/adb-sync $out/bin/ | ||
|
||
sed -i '1s|/usr/bin/python|${python}/bin/python|' $out/bin/adb-sync |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
guess I didn't notice this before, but please use ${python.interpreter}
instead of ${python}/bin/python
. Also, I would expect the shebang already to be rewritten by patchShebangs
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I didn't know about the existence of patchShebangs
; it's just awesome!
Replaced this line by an invocation of patchShebangs
.
Motivation for this change
Package
adb-sync
.Things done
(nix.useChroot on NixOS,
or option
build-use-chroot
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)