mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
Add renameutils package.
This commit is contained in:
parent
67c9b39b60
commit
f85025a30e
19
pkgs/tools/misc/renameutils/default.nix
Normal file
19
pkgs/tools/misc/renameutils/default.nix
Normal file
@ -0,0 +1,19 @@
|
||||
{stdenv, fetchurl, readline}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "renameutils-0.12";
|
||||
|
||||
src = fetchurl {
|
||||
url = mirror://savannah/renameutils/renameutils-0.12.0.tar.gz;
|
||||
sha256 = "18xlkr56jdyajjihcmfqlyyanzyiqqlzbhrm6695mkvw081g1lnb";
|
||||
};
|
||||
|
||||
patches = [ ./install-exec.patch ];
|
||||
|
||||
nativeBuildInputs = [ readline ];
|
||||
|
||||
meta = {
|
||||
homepage = http://www.nongnu.org/renameutils/;
|
||||
description = "A set of programs to make renaming of files faster";
|
||||
};
|
||||
}
|
24
pkgs/tools/misc/renameutils/install-exec.patch
Normal file
24
pkgs/tools/misc/renameutils/install-exec.patch
Normal file
@ -0,0 +1,24 @@
|
||||
diff -Naur renameutils-0.12.0-orig/src/Makefile.am renameutils-0.12.0/src/Makefile.am
|
||||
--- renameutils-0.12.0-orig/src/Makefile.am 2012-04-23 12:10:43.000000000 +0100
|
||||
+++ renameutils-0.12.0/src/Makefile.am 2013-03-25 11:13:21.605447377 +0000
|
||||
@@ -49,7 +49,7 @@
|
||||
@[ -f icp ] || (echo $(LN_S) icmd icp ; $(LN_S) icmd icp)
|
||||
|
||||
install-exec-local:
|
||||
- $(mkdir_p) $(DESTDIR)($bindir)
|
||||
+ $(mkdir_p) $(DESTDIR)$(bindir)
|
||||
@[ -f $(DESTDIR)$(bindir)/qmv ] || (echo $(LN_S) qcmd $(DESTDIR)$(bindir)/qmv ; $(LN_S) qcmd $(DESTDIR)$(bindir)/qmv)
|
||||
@[ -f $(DESTDIR)$(bindir)/qcp ] || (echo $(LN_S) qcmd $(DESTDIR)$(bindir)/qcp ; $(LN_S) qcmd $(DESTDIR)$(bindir)/qcp)
|
||||
@[ -f $(DESTDIR)$(bindir)/imv ] || (echo $(LN_S) icmd $(DESTDIR)$(bindir)/imv ; $(LN_S) icmd $(DESTDIR)$(bindir)/imv)
|
||||
diff -Naur renameutils-0.12.0-orig/src/Makefile.in renameutils-0.12.0/src/Makefile.in
|
||||
--- renameutils-0.12.0-orig/src/Makefile.in 2012-04-23 12:24:10.000000000 +0100
|
||||
+++ renameutils-0.12.0/src/Makefile.in 2013-03-25 11:13:40.549847891 +0000
|
||||
@@ -1577,7 +1577,7 @@
|
||||
@[ -f icp ] || (echo $(LN_S) icmd icp ; $(LN_S) icmd icp)
|
||||
|
||||
install-exec-local:
|
||||
- $(mkdir_p) $(DESTDIR)($bindir)
|
||||
+ $(mkdir_p) $(DESTDIR)$(bindir)
|
||||
@[ -f $(DESTDIR)$(bindir)/qmv ] || (echo $(LN_S) qcmd $(DESTDIR)$(bindir)/qmv ; $(LN_S) qcmd $(DESTDIR)$(bindir)/qmv)
|
||||
@[ -f $(DESTDIR)$(bindir)/qcp ] || (echo $(LN_S) qcmd $(DESTDIR)$(bindir)/qcp ; $(LN_S) qcmd $(DESTDIR)$(bindir)/qcp)
|
||||
@[ -f $(DESTDIR)$(bindir)/imv ] || (echo $(LN_S) icmd $(DESTDIR)$(bindir)/imv ; $(LN_S) icmd $(DESTDIR)$(bindir)/imv)
|
@ -1476,6 +1476,8 @@ let
|
||||
|
||||
remmina = callPackage ../applications/networking/remote/remmina {};
|
||||
|
||||
renameutils = callPackage ../tools/misc/renameutils { };
|
||||
|
||||
replace = callPackage ../tools/text/replace { };
|
||||
|
||||
reptyr = callPackage ../os-specific/linux/reptyr {};
|
||||
|
Loading…
Reference in New Issue
Block a user