about summary refs log tree commit diff
path: root/pkgs/tools/misc/mktorrent
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@viric.name>2013-03-12 19:43:57 +0100
committerLluís Batlle i Rossell <viric@viric.name>2013-03-12 19:43:57 +0100
commit90bca24b383b0f4fc0d65d8cc4af5fb983937670 (patch)
tree764dc0e40e056ed9caa69e69e7bd4592f9311896 /pkgs/tools/misc/mktorrent
parent9ec69c077eaf438849f1a75128eb5e8c41daa21e (diff)
Adding mktorrent 1.0
Diffstat (limited to 'pkgs/tools/misc/mktorrent')
-rw-r--r--pkgs/tools/misc/mktorrent/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/tools/misc/mktorrent/default.nix b/pkgs/tools/misc/mktorrent/default.nix
new file mode 100644
index 0000000000000..e7104ce2aaf04
--- /dev/null
+++ b/pkgs/tools/misc/mktorrent/default.nix
@@ -0,0 +1,27 @@
+{stdenv, fetchurl, openssl}:
+
+stdenv.mkDerivation {
+  name = "mktorrent-1.0.0";
+
+  src = fetchurl {
+    url = mirror://sourceforge/mktorrent/mktorrent-1.0.tar.gz;
+    sha256 = "17qi3nfky240pq6qcmf5qg324mxm83vk9r3nvsdhsvinyqm5d3kg";
+  };
+
+  makeFlags = "USE_PTHREADS=1 USE_OPENSSL=1 USE_LONG_OPTIONS=1" +
+    stdenv.lib.optionalString stdenv.isi686 " USE_LARGE_FILES=1";
+
+  preInstall = ''
+    installFlags=PREFIX=$out
+  '';
+
+  buildInputs = [ openssl ];
+
+  meta = {
+    homepage = http://mktorrent.sourceforge.net/;
+    license = "GPLv2+";
+    description = "Command line utility to create BitTorrent metainfo files";
+    platforms = with stdenv.lib.platforms; linux;
+    maintainers = with stdenv.lib.maintainers; [viric];
+  };
+}