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

rar2fs: init at 1.28.0 #78189

Merged
merged 3 commits into from Jan 24, 2020
Merged

rar2fs: init at 1.28.0 #78189

merged 3 commits into from Jan 24, 2020

Conversation

kraem
Copy link
Member

@kraem kraem commented Jan 21, 2020

Motivation for this change

rar2fs uses fuse to mount rar archives, or directories containing rar archives, and makes the files available as if they were unrar:ed.

rar2fs Github
rar2fs web

Things done

Init package at most recent version 1.28.0

Added the unfree license even though rar2fs is licensed using GPLv3.
The source from RARLAB is used during compilation though. The license of RARLAB is free to distribute if only the UnRAR sources are used (source). I'm not sure if anything else is used during the compilation of rar2fs. I'm super new to licenses and if anyone has any idea as to what the situation is here they are very welcome to have a say in this :)

Other

This is my first package added so added myself to the maintainers-list. I'm more than happy to receive suggestions for improvement too :)

  • 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/)
  • 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.

@kraem
Copy link
Member Author

kraem commented Jan 21, 2020

Woops. Thought I finally understood git history. Apparently not.

@kraem kraem closed this Jan 21, 2020
@kraem kraem reopened this Jan 21, 2020
@ofborg ofborg bot removed the 6.topic: GNOME GNOME desktop environment and its underlying platform label Jan 21, 2020
Copy link
Member

@primeos primeos left a comment

Choose a reason for hiding this comment

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

Hi @kraem, welcome to Nixpkgs and thanks for your contribution :)

I found a few things that should be improved, but overall it looks good.

pkgs/tools/filesystems/rar2fs/default.nix Outdated Show resolved Hide resolved
pkgs/tools/filesystems/rar2fs/default.nix Show resolved Hide resolved
pkgs/tools/filesystems/rar2fs/default.nix Outdated Show resolved Hide resolved
pkgs/tools/filesystems/rar2fs/default.nix Outdated Show resolved Hide resolved
@primeos
Copy link
Member

primeos commented Jan 23, 2020

Finally managed to build it without the unrar source-code, wasn't used to debugging autoconf scripts anymore.. :o :D
Currently testing the rebuilds with nix-review but from a quick look at Nixpkgs it should be fine (at least mostly).

@kraem could you test if everything still works as expected?

cc: @ehmry as the unrar maintainer

@kraem
Copy link
Member Author

kraem commented Jan 23, 2020

@primeos Works perfectly. Thanks!

kraem and others added 2 commits January 23, 2020 21:16
This is e.g. required for the rar2fs build [0], which needs at least
version.hpp, rar.hpp, dllext.hpp, dll.hpp, and headers5.hpp.

At least Gentoo does this as well [1] but most other distributions only
install dll.hpp or no header files at all.

[0]: NixOS#78189
[1]: https://gitweb.gentoo.org/repo/gentoo.git/tree/app-arch/unrar/unrar-5.8.5.ebuild
Copy link
Member

@primeos primeos left a comment

Choose a reason for hiding this comment

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

LGTM now, thanks for the PR :)

@ehmry I'll merge it tomorrow if you don't have any complaints (just in case I missed something) ;)

Edit: Forgot to mention: nix-review was successful:

6 package were build:
pdfread rar2fs rarcrack sabnzbd unrar zod

@primeos primeos merged commit 7c08ba3 into NixOS:master Jan 24, 2020
dtzWill pushed a commit to dtzWill/nixpkgs that referenced this pull request Jan 24, 2020
This is e.g. required for the rar2fs build [0], which needs at least
version.hpp, rar.hpp, dllext.hpp, dll.hpp, and headers5.hpp.

At least Gentoo does this as well [1] but most other distributions only
install dll.hpp or no header files at all.

[0]: NixOS#78189
[1]: https://gitweb.gentoo.org/repo/gentoo.git/tree/app-arch/unrar/unrar-5.8.5.ebuild

(cherry picked from commit 983f39c)
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

2 participants