Skip to content

ouch: init at 0.1.5#131538

Merged
SuperSandro2000 merged 1 commit intoNixOS:masterfrom
psibi:add-ouch
Jul 30, 2021
Merged

ouch: init at 0.1.5#131538
SuperSandro2000 merged 1 commit intoNixOS:masterfrom
psibi:add-ouch

Conversation

@psibi
Copy link
Copy Markdown
Member

@psibi psibi commented Jul 26, 2021

Motivation for this change

Adds the ouch cli for easy compression and decompression of files. Tested it locally on a NixOS machine:

$ /nix/store/bmsmpi9hzyjjhqvq4brbchh42j5rdffi-ouch-0.1.5/bin/ouch
ouch - Obvious Unified Compression files Helper

USAGE:
    ouch <files...>                        Decompresses files.

    ouch compress <files...> OUTPUT.EXT    Compresses files into OUTPUT.EXT,
                                           where EXT must be a supported format.

FLAGS:
    -h, --help    Display this help information.
    -y, --yes     Skip overwrite questions.
    -n, --no      Skip overwrite questions.
    --version     Display version information.

SPECIFIC FLAGS:
    -o, --output FOLDER_PATH    When decompressing, to decompress files to
                                another folder.

Visit https://github.com/vrmiguel/ouch for more usage examples.
$ /nix/store/bmsmpi9hzyjjhqvq4brbchh42j5rdffi-ouch-0.1.5/bin/ouch ~/Downloads/helm-v3.6.2-linux-amd64.tar.gz
[INFO] "/home/sibi/Downloads/helm-v3.6.2-linux-amd64.tar.gz" extracted into memory (45.13 MB).
[INFO] attempting to decompress "helm-v3.6.2-linux-amd64.tar"
[INFO] "./linux-amd64/" extracted. (0 B)
[INFO] "./linux-amd64/helm" extracted. (45.11 MB)
[INFO] "./linux-amd64/LICENSE" extracted. (11.37 kB)
[INFO] "./linux-amd64/README.md" extracted. (3.37 kB)
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 nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • 21.11 Release Notes (or backporting 21.05 Relase notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

@ofborg ofborg Bot added 8.has: package (new) This PR adds a new package 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. labels Jul 26, 2021
@risicle
Copy link
Copy Markdown
Contributor

risicle commented Jul 28, 2021

Builds & runs, macos 10.15 & nixos x86_64

Comment thread pkgs/tools/compression/ouch/default.nix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

8.has: package (new) This PR adds a new package 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants