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

powerline-go: init at 1.8.2 #36337

Merged
merged 1 commit into from Mar 5, 2018
Merged

powerline-go: init at 1.8.2 #36337

merged 1 commit into from Mar 5, 2018

Conversation

sifmelcara
Copy link
Member

@sifmelcara sifmelcara commented Mar 5, 2018

Motivation for this change

Add powerline-go, a powerline style prompt with some useful features.

This is my fist time packaging Go program, so please tell me if anything goes wrong.

To try out this package, first install powerline-go into your environment:

nix-env -f https://github.com/sifmelcara/nixpkgs/archive/add/powerlines.tar.gz -iA powerline-go

then paste this code into your terminal (assuming bash):

function _update_ps1() {
    PS1="$(powerline-go -error $?)"
}

if [ "$TERM" != "linux" ]; then
    PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"
fi
Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • 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.

@Mic92
Copy link
Member

Mic92 commented Mar 5, 2018

@GrahamcOfBorg build powerline-go

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Partial log (click to expand)

stripping (with command strip and flags -S) in /nix/store/dyf3w97m357israkdl7v5fb27izhqyqp-powerline-go-1.8.2-bin/bin 
patching script interpreter paths in /nix/store/dyf3w97m357israkdl7v5fb27izhqyqp-powerline-go-1.8.2-bin
checking for references to /tmp/nix-build-powerline-go-1.8.2.drv-0 in /nix/store/dyf3w97m357israkdl7v5fb27izhqyqp-powerline-go-1.8.2-bin...
cannot find section .dynamic
shrinking RPATHs of ELF executables and libraries in /nix/store/hail9ih3bprv7bv2nk9vbi2nky10pj7a-powerline-go-1.8.2
strip is /nix/store/b0zlxla7dmy1iwc3g459rjznx59797xy-binutils-2.28.1/bin/strip
patching script interpreter paths in /nix/store/hail9ih3bprv7bv2nk9vbi2nky10pj7a-powerline-go-1.8.2
/nix/store/hail9ih3bprv7bv2nk9vbi2nky10pj7a-powerline-go-1.8.2/share/go/src/github.com/justjanne/powerline-go/generatePreview.sh: interpreter directive changed from "/bin/sh" to "/nix/store/zqh3l3lyw32q1ayb15bnvg9f24j5v2p0-bash-4.4-p12/bin/sh"
checking for references to /tmp/nix-build-powerline-go-1.8.2.drv-0 in /nix/store/hail9ih3bprv7bv2nk9vbi2nky10pj7a-powerline-go-1.8.2...
/nix/store/dyf3w97m357israkdl7v5fb27izhqyqp-powerline-go-1.8.2-bin

@GrahamcOfBorg
Copy link

Success on x86_64-darwin (full log)

Partial log (click to expand)

/private/tmp/nix-build-powerline-go-1.8.2.drv-0/go /private/tmp/nix-build-powerline-go-1.8.2.drv-0
/private/tmp/nix-build-powerline-go-1.8.2.drv-0
post-installation fixup
strip is /nix/store/4sdh09gmvl15cy0zb6i7mbvxh5syz206-cctools-binutils-darwin/bin/strip
stripping (with command strip and flags -S) in /nix/store/pyfanm3b8jgfh7iaqfhi1rbwib5ksnp3-powerline-go-1.8.2-bin/bin
patching script interpreter paths in /nix/store/pyfanm3b8jgfh7iaqfhi1rbwib5ksnp3-powerline-go-1.8.2-bin
strip is /nix/store/4sdh09gmvl15cy0zb6i7mbvxh5syz206-cctools-binutils-darwin/bin/strip
patching script interpreter paths in /nix/store/x6fz9dbq5xmxljzm6cr7k6vcjaxknzld-powerline-go-1.8.2
/nix/store/x6fz9dbq5xmxljzm6cr7k6vcjaxknzld-powerline-go-1.8.2/share/go/src/github.com/justjanne/powerline-go/generatePreview.sh: interpreter directive changed from "/bin/sh" to "/nix/store/pkjmwq7sqrvjg7cjiph6hq0khsmfl6p8-bash-4.4-p12/bin/sh"
/nix/store/pyfanm3b8jgfh7iaqfhi1rbwib5ksnp3-powerline-go-1.8.2-bin

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Partial log (click to expand)

stripping (with command strip and flags -S) in /nix/store/fyivwn3vnkf65dgxq9v6p5k42r74algp-powerline-go-1.8.2-bin/bin
patching script interpreter paths in /nix/store/fyivwn3vnkf65dgxq9v6p5k42r74algp-powerline-go-1.8.2-bin
checking for references to /build in /nix/store/fyivwn3vnkf65dgxq9v6p5k42r74algp-powerline-go-1.8.2-bin...
cannot find section .dynamic
shrinking RPATHs of ELF executables and libraries in /nix/store/lfrkasyd1xadll23m6jqxac1ay5rsch7-powerline-go-1.8.2
strip is /nix/store/lvx1acn1ig1j2km8jds5x3ggh3f2wa8v-binutils-2.28.1/bin/strip
patching script interpreter paths in /nix/store/lfrkasyd1xadll23m6jqxac1ay5rsch7-powerline-go-1.8.2
/nix/store/lfrkasyd1xadll23m6jqxac1ay5rsch7-powerline-go-1.8.2/share/go/src/github.com/justjanne/powerline-go/generatePreview.sh: interpreter directive changed from "/bin/sh" to "/nix/store/lnws52qanbi5vz8qg24v4ym57nznfndg-bash-4.4-p12/bin/sh"
checking for references to /build in /nix/store/lfrkasyd1xadll23m6jqxac1ay5rsch7-powerline-go-1.8.2...
/nix/store/fyivwn3vnkf65dgxq9v6p5k42r74algp-powerline-go-1.8.2-bin

@nlewo nlewo merged commit 9128069 into NixOS:master Mar 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants