Skip to content
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

Merged
merged 1 commit into from
Sep 2, 2016
Merged

adb-sync: init at 2016-08-31 #18189

merged 1 commit into from
Sep 2, 2016

Conversation

scolobb
Copy link
Contributor

@scolobb scolobb commented Sep 1, 2016

Motivation for this change

Package adb-sync.

Things done
  • [X ] Tested using sandboxing
    (nix.useChroot on NixOS,
    or option build-use-chroot in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • OS X
    • Linux
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

@scolobb
Copy link
Contributor Author

scolobb commented Sep 1, 2016

Travis failure looks unrelated to my eye (I hope so at least :-) ).

@FRidh
Copy link
Member

FRidh commented Sep 1, 2016

that's indeed an unrelated issue.


installPhase = ''
mkdir -p $out/bin
cp $src/adb-channel $src/adb-sync $out/bin/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please indent this block

Copy link
Contributor Author

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
Copy link
Member

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.

Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: python 8.has: package (new) This PR adds a new package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants