summary refs log tree commit diff
path: root/pkgs/applications/graphics/drawpile
diff options
context:
space:
mode:
authorFrancesco Gazzetta <francygazz@gmail.com>2018-06-13 14:37:53 +0200
committerFrancesco Gazzetta <francygazz@gmail.com>2018-08-26 21:00:39 +0200
commit62a2574eb30608dd1a11ff61f2b209eee134b33f (patch)
tree7c29aa3ff8f972c7cb6728449a88efbe6d391b04 /pkgs/applications/graphics/drawpile
parent4d3ce5ca36a145748a4938cb0127c115d8fbacf0 (diff)
downloadnixpkgs-62a2574eb30608dd1a11ff61f2b209eee134b33f.tar
nixpkgs-62a2574eb30608dd1a11ff61f2b209eee134b33f.tar.gz
nixpkgs-62a2574eb30608dd1a11ff61f2b209eee134b33f.tar.bz2
nixpkgs-62a2574eb30608dd1a11ff61f2b209eee134b33f.tar.lz
nixpkgs-62a2574eb30608dd1a11ff61f2b209eee134b33f.tar.xz
nixpkgs-62a2574eb30608dd1a11ff61f2b209eee134b33f.tar.zst
nixpkgs-62a2574eb30608dd1a11ff61f2b209eee134b33f.zip
drawpile: init at 2.0.11
Diffstat (limited to 'pkgs/applications/graphics/drawpile')
-rw-r--r--pkgs/applications/graphics/drawpile/default.nix44
1 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/drawpile/default.nix b/pkgs/applications/graphics/drawpile/default.nix
new file mode 100644
index 00000000000..fd8f88aa53a
--- /dev/null
+++ b/pkgs/applications/graphics/drawpile/default.nix
@@ -0,0 +1,44 @@
+{ stdenv
+, fetchurl
+, cmake
+, qtbase
+, qtsvg
+, qtmultimedia
+, qttools
+, kdnssd
+, karchive
+, libsodium
+, libmicrohttpd
+, giflib
+, miniupnpc
+}:
+
+stdenv.mkDerivation rec {
+  name = "drawpile-${version}";
+  version = "2.0.11";
+  src = fetchurl {
+    url = "https://drawpile.net/files/src/drawpile-${version}.tar.gz";
+    sha256 = "0h018rxhc0lwpqwmlihalz634nd0xaafk4p2b782djjd87irnjpk";
+  };
+  buildInputs = [
+    cmake
+    qtbase qtsvg qtmultimedia qttools
+    karchive
+    # optional deps:
+    libsodium # ext-auth support
+    libmicrohttpd # HTTP admin api
+    giflib # gif animation export support
+    miniupnpc # automatic port forwarding
+    kdnssd # local server discovery with Zeroconf
+  ];
+  configurePhase = "cmake -DCMAKE_INSTALL_PREFIX=$out .";
+
+  meta = with stdenv.lib; {
+    description = "A collaborative drawing program that allows multiple users to sketch on the same canvas simultaneously";
+    homepage = https://drawpile.net/;
+    downloadPage = https://drawpile.net/download/;
+    license = licenses.gpl3;
+    maintainers = with maintainers; [ fgaz ];
+  };
+}
+