about summary refs log tree commit diff
path: root/pkgs/tools/filesystems/file-rename
AgeCommit message (Collapse)AuthorFilesLines
2023-11-25treewide: add mainProgramh7x41-0/+1
(cherry picked from commit c9b3b8700d4cdf5c60d634785d14e1d49e7aa0f9)
2021-03-31treewide: use perl.withPackages when possiblernhmjoj1-6/+4
Since 03eaa48 added perl.withPackages, there is a canonical way to create a perl interpreter from a list of libraries, for use in script shebangs or generic build inputs. This method is declarative (what we are doing is clear), produces short shebangs[1] and needs not to wrap existing scripts. Unfortunately there are a few exceptions that I've found: 1. Scripts that are calling perl with the -T switch. This makes perl ignore PERL5LIB, which is what perl.withPackages is using to inform the interpreter of the library paths. 2. Perl packages that depends on libraries in their own path. This is not possible because perl.withPackages works at build time. The workaround is to add `-I $out/${perl.libPrefix}` to the shebang. In all other cases I propose to switch to perl.withPackages. [1]: https://lwn.net/Articles/779997/
2021-01-11treewide: with stdenv.lib; in meta -> with lib;Profpatsch1-2/+2
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
2020-06-27file-rename: Fix an incorrect platform test that misidentifies Darwin as WindowsNeil Mayhew1-0/+6
This causes the script to be installed as `file-rename` instead of `rename` like it is on other Unix systems. This in turn causes `wrapProgram` to fail when building because it expects the wrapped program to be called `rename`.
2020-04-10treewide: Per RFC45, remove all unquoted URLsMichael Reilly1-1/+1
2019-06-20buildPerlPackage: name -> (pname, version)volth1-3/+4
2019-04-26file-rename: don’t run tests on darwinMatthew Bauer1-0/+2
https://hydra.nixos.org/build/92527786
2018-12-15lib.makePerlPath -> perlPackages.makePerlPathvolth1-1/+1
2018-07-14perlPackages: remove search.cpan.org; add metacpan.org default homepageRyan Mulligan1-1/+0
https://www.perl.com/article/saying-goodbye-to-search-cpan-org/ maybe one operation less ..with unifying recursiveUpdate and first // although not tested fix whitespace
2018-02-12perl.FileRename: fixup metaGraham Christensen1-1/+1
2018-02-12perl.FileRename: init at 0.20Peter Hoeg1-0/+24