about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthieu Coudron <mattator@gmail.com>2017-09-28 16:25:36 +0900
committerMatthieu Coudron <mattator@gmail.com>2017-09-28 21:46:53 +0900
commit2a33aab60de16ac9ff86e89bac6e202c29ad7003 (patch)
tree17125a7d9273d754c8f6176aab6b55012af37596
parentd757d8142e88187388fbea4e884feadb0e33d36f (diff)
downloadnixlib-2a33aab60de16ac9ff86e89bac6e202c29ad7003.tar
nixlib-2a33aab60de16ac9ff86e89bac6e202c29ad7003.tar.gz
nixlib-2a33aab60de16ac9ff86e89bac6e202c29ad7003.tar.bz2
nixlib-2a33aab60de16ac9ff86e89bac6e202c29ad7003.tar.lz
nixlib-2a33aab60de16ac9ff86e89bac6e202c29ad7003.tar.xz
nixlib-2a33aab60de16ac9ff86e89bac6e202c29ad7003.tar.zst
nixlib-2a33aab60de16ac9ff86e89bac6e202c29ad7003.zip
rpl: init at 1.5.6
A python program that helps replacing string in files.
-rw-r--r--pkgs/tools/text/rpl/default.nix24
-rw-r--r--pkgs/top-level/all-packages.nix4
2 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/tools/text/rpl/default.nix b/pkgs/tools/text/rpl/default.nix
new file mode 100644
index 000000000000..bdbc97124433
--- /dev/null
+++ b/pkgs/tools/text/rpl/default.nix
@@ -0,0 +1,24 @@
+{ stdenv, fetchFromGitHub, pythonPackages }:
+
+pythonPackages.buildPythonApplication rec {
+  name = "${pname}-${version}";
+  pname = "rpl";
+  version = "1.5.7";
+
+  # Tests not included in pip package.
+  doCheck = false;
+
+  src = fetchFromGitHub {
+    owner  = "kcoyner";
+    repo   = "rpl";
+    rev    = "v${version}";
+    sha256 = "1xhpgcmq91ivy9ijfyz5ilg51m7fz8ar2077r7gq246j8gbf8ggr";
+  };
+
+  meta = with stdenv.lib; {
+    description = "Replace strings in files";
+    homepage    = "https://github.com/kcoyner/rpl";
+    license     = licenses.gpl2;
+    maintainers = with maintainers; [ teto ];
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 751aaf73216b..ad34fdeffe15 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -19064,6 +19064,10 @@ with pkgs;
 
   retrofe = callPackage ../misc/emulators/retrofe { };
 
+  rpl = callPackage ../tools/text/rpl {
+    pythonPackages = python3Packages;
+  };
+
   rss-glx = callPackage ../misc/screensavers/rss-glx { };
 
   runit = callPackage ../tools/system/runit { };