2018-06-13 13:37:53 +01:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
|
|
|
, cmake
|
|
|
|
, qtbase
|
|
|
|
, qtsvg
|
|
|
|
, qtmultimedia
|
|
|
|
, qttools
|
|
|
|
, kdnssd
|
|
|
|
, karchive
|
|
|
|
, libsodium
|
|
|
|
, libmicrohttpd
|
|
|
|
, giflib
|
|
|
|
, miniupnpc
|
2019-03-13 10:29:56 +00:00
|
|
|
, extra-cmake-modules
|
|
|
|
, libvpx
|
2018-06-13 13:37:53 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "drawpile-${version}";
|
2019-04-09 09:53:41 +01:00
|
|
|
version = "2.1.6";
|
2018-06-13 13:37:53 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://drawpile.net/files/src/drawpile-${version}.tar.gz";
|
2019-04-09 09:53:41 +01:00
|
|
|
sha256 = "0vwsdvphigrq1daiazi411qflahlvgx8x8ssp581bng2lbq1vrbd";
|
2018-06-13 13:37:53 +01:00
|
|
|
};
|
2019-03-13 10:29:56 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
extra-cmake-modules
|
|
|
|
];
|
2018-06-13 13:37:53 +01:00
|
|
|
buildInputs = [
|
2019-03-13 10:30:46 +00:00
|
|
|
# common deps:
|
2018-06-13 13:37:53 +01:00
|
|
|
cmake
|
|
|
|
qtbase qtsvg qtmultimedia qttools
|
|
|
|
karchive
|
|
|
|
# optional deps:
|
2019-03-13 10:30:46 +00:00
|
|
|
# server-specific:
|
2018-06-13 13:37:53 +01:00
|
|
|
libsodium # ext-auth support
|
|
|
|
libmicrohttpd # HTTP admin api
|
2019-03-13 10:30:46 +00:00
|
|
|
# client-specific:
|
2018-06-13 13:37:53 +01:00
|
|
|
giflib # gif animation export support
|
|
|
|
miniupnpc # automatic port forwarding
|
|
|
|
kdnssd # local server discovery with Zeroconf
|
2019-03-13 10:29:56 +00:00
|
|
|
libvpx # WebM video export
|
2018-06-13 13:37:53 +01:00
|
|
|
];
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|