@@ -0,0 +1,44 @@
1+{ stdenv
2+, fetchurl
3+, cmake
4+, qtbase
5+, qtsvg
6+, qtmultimedia
7+, qttools
8+, kdnssd
9+, karchive
10+, libsodium
11+, libmicrohttpd
12+, giflib
13+, miniupnpc
14+}:
15+
16+stdenv.mkDerivation rec {
17+ name = "drawpile-${version}";
18+ version = "2.0.11";
19+ src = fetchurl {
20+ url = "https://drawpile.net/files/src/drawpile-${version}.tar.gz";
21+ sha256 = "0h018rxhc0lwpqwmlihalz634nd0xaafk4p2b782djjd87irnjpk";
22+ };
23+ buildInputs = [
24+ cmake
25+ qtbase qtsvg qtmultimedia qttools
26+ karchive
27+ # optional deps:
28+ libsodium # ext-auth support
29+ libmicrohttpd # HTTP admin api
30+ giflib # gif animation export support
31+ miniupnpc # automatic port forwarding
32+ kdnssd # local server discovery with Zeroconf
33+ ];
34+ configurePhase = "cmake -DCMAKE_INSTALL_PREFIX=$out .";
35+
36+ meta = with stdenv.lib; {
37+ description = "A collaborative drawing program that allows multiple users to sketch on the same canvas simultaneously";
38+ homepage = https://drawpile.net/;
39+ downloadPage = https://drawpile.net/download/;
40+ license = licenses.gpl3;
41+ maintainers = with maintainers; [ fgaz ];
42+ };
43+}
44+