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

dust: init at 0.2.3 #39123

Merged
merged 1 commit into from
Apr 22, 2018
Merged

dust: init at 0.2.3 #39123

merged 1 commit into from
Apr 22, 2018

Conversation

infinisil
Copy link
Member

Motivation for this change

Recently having been featured on lobste.rs frontpage I was motivated to add dust to nixpkgs. It's a very simple CLI that outputs disk usage for a directory like this:

djin:git/dust> dust
  65M  .
  65M └─┬ ./target
  49M   ├─┬ ./target/debug
  26M   │ ├─┬ ./target/debug/deps
  21M   │ │ └── ./target/debug/deps/libclap-9e6625ac8ff074ad.rlib
  13M   │ ├── ./target/debug/dust
 8.9M   │ └─┬ ./target/debug/incremental
 6.7M   │   ├─┬ ./target/debug/incremental/dust-2748eiei2tcnp
 6.7M   │   │ └─┬ ./target/debug/incremental/dust-2748eiei2tcnp/s-ezd6jnik5u-163pyem-1aab9ncf5glum
 3.0M   │   │   └── ./target/debug/incremental/dust-2748eiei2tcnp/s-ezd6jnik5u-163pyem-1aab9ncf5glum/dep-graph.bin
 2.2M   │   └─┬ ./target/debug/incremental/dust-1dlon65p8m3vl
 2.2M   │     └── ./target/debug/incremental/dust-1dlon65p8m3vl/s-ezd6jncecv-1xsnfd0-4dw9l1r2th2t
  15M   └─┬ ./target/release
 9.2M     ├─┬ ./target/release/deps
 6.7M     │ └── ./target/release/deps/libclap-87bc2534ea57f044.rlib
 5.9M     └── ./target/release/dust

Since like on crates.io, the name dust is already taken in nixpkgs, I'm using du-dust as the package attribute instead, as is also the case for dust's 0.2.3 release.

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.

@infinisil
Copy link
Member Author

@GrahamcOfBorg build du-dust

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: du-dust

Partial log (click to expand)

cp: -r not specified; omitting directory 'target/release/native'
cp: -r not specified; omitting directory 'target/release/deps'
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/r5rphzrj5878k231ri8a2yrg7dyj55k5-dust-0.2.3
shrinking /nix/store/r5rphzrj5878k231ri8a2yrg7dyj55k5-dust-0.2.3/bin/dust
strip is /nix/store/j7d4mr0ikv974ig7yzhknpsq288js4bs-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/r5rphzrj5878k231ri8a2yrg7dyj55k5-dust-0.2.3/bin
patching script interpreter paths in /nix/store/r5rphzrj5878k231ri8a2yrg7dyj55k5-dust-0.2.3
checking for references to /build in /nix/store/r5rphzrj5878k231ri8a2yrg7dyj55k5-dust-0.2.3...
/nix/store/r5rphzrj5878k231ri8a2yrg7dyj55k5-dust-0.2.3

@GrahamcOfBorg
Copy link

No attempt on aarch64-linux (full log)

The following builds were skipped because they don't evaluate on aarch64-linux: dust

Partial log (click to expand)


a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.


@dtzWill
Copy link
Member

dtzWill commented Apr 19, 2018

Fwiw tree --du or so produces something similar. But that doesn't mean dust isn't welcome!

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: du-dust

Partial log (click to expand)

cp: -r not specified; omitting directory 'target/release/.fingerprint'
cp: -r not specified; omitting directory 'target/release/build'
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/jw231h5l94cfirn61dm0x2nqgxhqfbbl-dust-0.2.3
shrinking /nix/store/jw231h5l94cfirn61dm0x2nqgxhqfbbl-dust-0.2.3/bin/dust
strip is /nix/store/j75dgadrff2d1fyc4fczmcgqkid2imdx-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/jw231h5l94cfirn61dm0x2nqgxhqfbbl-dust-0.2.3/bin
patching script interpreter paths in /nix/store/jw231h5l94cfirn61dm0x2nqgxhqfbbl-dust-0.2.3
checking for references to /build in /nix/store/jw231h5l94cfirn61dm0x2nqgxhqfbbl-dust-0.2.3...
/nix/store/jw231h5l94cfirn61dm0x2nqgxhqfbbl-dust-0.2.3

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: dust

Partial log (click to expand)

these paths will be fetched (0.96 MiB download, 5.25 MiB unpacked):
  /nix/store/c1b7hpnvyc3byy1cmjcmhmg03sq4v0sd-dust-0-91
  /nix/store/d3g21225c9cc18bys5d35f1djq502na0-pixie-0-r1364-jit
copying path '/nix/store/d3g21225c9cc18bys5d35f1djq502na0-pixie-0-r1364-jit' from 'https://cache.nixos.org'...
copying path '/nix/store/c1b7hpnvyc3byy1cmjcmhmg03sq4v0sd-dust-0-91' from 'https://cache.nixos.org'...
/nix/store/c1b7hpnvyc3byy1cmjcmhmg03sq4v0sd-dust-0-91

@Mic92 Mic92 merged commit c3e78d3 into NixOS:master Apr 22, 2018
@infinisil infinisil deleted the add/dust branch January 29, 2024 23:54
@infinisil infinisil mentioned this pull request Jan 30, 2024
13 tasks
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.

4 participants