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

rename: addition #34719

Merged
merged 8 commits into from Feb 9, 2018
Merged

rename: addition #34719

merged 8 commits into from Feb 9, 2018

Conversation

mkgvt
Copy link
Contributor

@mkgvt mkgvt commented Feb 8, 2018

Motivation for this change

Package alternative rename command which allows file renames to be specified via a perl regex.

Things done

Package has been built and installed by hand in user environment via nix-build/nix-env.

  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • [X ] 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/)
  • [X ] Fits CONTRIBUTING.md.

@rycee
Copy link
Member

rycee commented Feb 8, 2018

Since this is a utility that just happens to be implemented in Perl so I think it is better put in, e.g., pkgs/tools/misc/rename/default.nix like any other package. You can have a look at ./pkgs/tools/typesetting/biber/default.nix for an example of a "standalone Perl package".

description = "Bulk rename files according to a Perl rewrite expression";
homepage = http://search.cpan.org/~pederst/rename-1.9/bin/rename.PL;
maintainers = with maintainers; [ mkg ];
license = "unknown";
Copy link
Member

Choose a reason for hiding this comment

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

This should be

license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ];

according to the LICENSE file in the repo.

  - moved from perl-packages to pkgs/tools/misc/rename
  - corrected license
  - switched to fetching from github
@Mic92 Mic92 merged commit f41eb52 into NixOS:master Feb 9, 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

6 participants