about summary refs log tree commit diff
path: root/pkgs/applications/networking/instant-messengers/pidgin/pidgin-plugins/otr/default.nix
diff options
context:
space:
mode:
authorlucasew <lucas59356@gmail.com>2023-07-15 13:21:47 -0300
committerAnderson Torres <torres.anderson.85@protonmail.com>2023-07-16 20:22:04 -0300
commitaf38d77aa7d0c9f1ed18528484313fb8b3f76948 (patch)
tree2975bff77c183691747902413bb84abde99f72c8 /pkgs/applications/networking/instant-messengers/pidgin/pidgin-plugins/otr/default.nix
parent99d417bab0b7dca7268d23c94c9bc0f839444b0a (diff)
pidgin: put packages in a different scope
Signed-off-by: lucasew <lucas59356@gmail.com>
Diffstat (limited to 'pkgs/applications/networking/instant-messengers/pidgin/pidgin-plugins/otr/default.nix')
-rw-r--r--pkgs/applications/networking/instant-messengers/pidgin/pidgin-plugins/otr/default.nix23
1 files changed, 23 insertions, 0 deletions
diff --git a/pkgs/applications/networking/instant-messengers/pidgin/pidgin-plugins/otr/default.nix b/pkgs/applications/networking/instant-messengers/pidgin/pidgin-plugins/otr/default.nix
new file mode 100644
index 0000000000000..aa871df5e8af2
--- /dev/null
+++ b/pkgs/applications/networking/instant-messengers/pidgin/pidgin-plugins/otr/default.nix
@@ -0,0 +1,23 @@
+{ lib, stdenv, fetchurl, libotr, pidgin, intltool } :
+
+stdenv.mkDerivation rec {
+  pname = "pidgin-otr";
+  version = "4.0.2";
+  src = fetchurl {
+    url = "https://otr.cypherpunks.ca/pidgin-otr-${version}.tar.gz";
+    sha256 = "1i5s9rrgbyss9rszq6c6y53hwqyw1k86s40cpsfx5ccl9bprxdgl";
+  };
+
+  postInstall = "ln -s \$out/lib/pidgin \$out/share/pidgin-otr";
+
+  nativeBuildInputs = [ intltool ];
+  buildInputs = [ libotr pidgin ];
+
+  meta = with lib; {
+    homepage = "https://otr.cypherpunks.ca/";
+    description = "Plugin for Pidgin 2.x which implements OTR Messaging";
+    license = licenses.gpl2;
+    platforms = platforms.linux;
+    maintainers = with maintainers; [ abbradar ];
+  };
+}