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

tdrop: 2018-11-13 -> 2019-10-04 #72827

Closed
wants to merge 1 commit into from
Closed

tdrop: 2018-11-13 -> 2019-10-04 #72827

wants to merge 1 commit into from

Conversation

wedens
Copy link

@wedens wedens commented Nov 5, 2019

Motivation for this change
Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • 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 nix-review --run "nix-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.
Notify maintainers

cc @

Copy link
Member

@redvers redvers left a comment

Choose a reason for hiding this comment

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

When I try and test this I get the following:

[red@apophenia:~/projects/nixpkgs]$ hub pr checkout 72827
Switched to branch 'patch-1'

[red@apophenia:~/projects/nixpkgs]$ nix-shell -I nixpkgs=. -p tdrop
these derivations will be built:
  /nix/store/v9glk5lbdv9dvmj0a3kc4rdb3ql8q16p-source.drv
  /nix/store/bq06y0my14gf2szf3jf67wq5i3sbkm2k-tdrop-unstable-2019-10-04.drv
building '/nix/store/v9glk5lbdv9dvmj0a3kc4rdb3ql8q16p-source.drv'...

trying https://github.com/noctuid/tdrop/archive/60435d240f47719a69ab1f7b2be68ca3ef1df1df.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   155    0   155    0     0    987      0 --:--:-- --:--:-- --:--:--   981
100 19318    0 19318    0     0  54416      0 --:--:-- --:--:-- --:--:-- 54416
unpacking source archive /build/60435d240f47719a69ab1f7b2be68ca3ef1df1df.tar.gz
building '/nix/store/bq06y0my14gf2szf3jf67wq5i3sbkm2k-tdrop-unstable-2019-10-04.drv'...
unpacking sources
unpacking source archive /nix/store/ni0i2c7xnk8fldhg3p17bnd721d8hf40-source
source root is source
patching sources
configuring
no configure script, doing nothing
installing
install flags: SHELL=/nix/store/zavn4np1jvm79f0rafkv0p1mrag09qkz-bash-4.4-p23/bin/bash PREFIX=\$\(out\) install
# 755 is default
install -D -m 755 tdrop "/nix/store/vajr5lg3vgbd8anaqc95g00jnnj9ga3f-tdrop-unstable-2019-10-04/bin"/tdrop
install -D -m 644 tdrop.1 "/nix/store/vajr5lg3vgbd8anaqc95g00jnnj9ga3f-tdrop-unstable-2019-10-04/share/man"/man1/tdrop.1
install -D -m 644 LICENSE "/nix/store/vajr5lg3vgbd8anaqc95g00jnnj9ga3f-tdrop-unstable-2019-10-04/share/licenses"/tdrop/LICENSE
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/vajr5lg3vgbd8anaqc95g00jnnj9ga3f-tdrop-unstable-2019-10-04
gzipping man pages under /nix/store/vajr5lg3vgbd8anaqc95g00jnnj9ga3f-tdrop-unstable-2019-10-04/share/man/
strip is /nix/store/cg0k49h66nkdqx6ccwnqr0i4q0fnfznc-binutils-2.31.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/vajr5lg3vgbd8anaqc95g00jnnj9ga3f-tdrop-unstable-2019-10-04/bin
patching script interpreter paths in /nix/store/vajr5lg3vgbd8anaqc95g00jnnj9ga3f-tdrop-unstable-2019-10-04
/nix/store/vajr5lg3vgbd8anaqc95g00jnnj9ga3f-tdrop-unstable-2019-10-04/bin/.tdrop-wrapped: interpreter directive changed from "/usr/bin/env bash" to "/nix/store/zavn4np1jvm79f0rafkv0p1mrag09qkz-bash-4.4-p23/bin/bash"
checking for references to /build/ in /nix/store/vajr5lg3vgbd8anaqc95g00jnnj9ga3f-tdrop-unstable-2019-10-04...

[nix-shell:~/projects/nixpkgs]$ tdrop
The program should be in PATH and not contain flags.

What am I missing?

@wedens
Copy link
Author

wedens commented Nov 20, 2019

Interesting... I'll try to reproduce the problem.

@wedens
Copy link
Author

wedens commented Nov 20, 2019

@redvers Got it. You can't run it without arguments.

You can run it like this from a terminal where <command> opens some GUI app: tdrop -a auto_hide && <command> && tdrop -a auto_show. it'll hide a terminal window, open an app with GUI and when you close the app, it'll show the same terminal window.

Comment on lines +25 to +27
gawk
coreutils
gnugrep
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we definitely need these very standard tools in the $PATH as well? It impacts a little bit on the closure size...

Copy link
Author

Choose a reason for hiding this comment

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

They're used in the script. Sorry, I don't really understand what you suggest.

Copy link
Contributor

Choose a reason for hiding this comment

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

I mean that these programs are in the stdenv's $PATH and in (probably) every user's $PATH - hence it shouldn't be necessary to pin them in your derivation just for the sake of making sure such an obvious dependency exists on the system. I suggest removing these 3 lines and hoping that within the lines of regular day-to-day usage, users won't complain.

@wedens
Copy link
Author

wedens commented Aug 9, 2020

Closed in favour of #94985

@wedens wedens closed this Aug 9, 2020
@wedens wedens deleted the patch-1 branch August 10, 2020 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants