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 b3cffbb4c451..5b649d924f12 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -19096,6 +19096,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 { };