nixpkgs/pkgs/applications/graphics/drawpile/default.nix

55 lines
1.3 KiB
Nix
Raw Normal View History

2018-06-13 12:37:53 +00: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 12:37:53 +00:00
}:
stdenv.mkDerivation rec {
name = "drawpile-${version}";
2019-04-09 08:53:41 +00:00
version = "2.1.6";
2018-06-13 12:37:53 +00:00
src = fetchurl {
url = "https://drawpile.net/files/src/drawpile-${version}.tar.gz";
2019-04-09 08:53:41 +00:00
sha256 = "0vwsdvphigrq1daiazi411qflahlvgx8x8ssp581bng2lbq1vrbd";
2018-06-13 12:37:53 +00:00
};
2019-03-13 10:29:56 +00:00
nativeBuildInputs = [
extra-cmake-modules
];
2018-06-13 12:37:53 +00:00
buildInputs = [
# common deps:
2018-06-13 12:37:53 +00:00
cmake
qtbase qtsvg qtmultimedia qttools
karchive
# optional deps:
# server-specific:
2018-06-13 12:37:53 +00:00
libsodium # ext-auth support
libmicrohttpd # HTTP admin api
# client-specific:
2018-06-13 12:37:53 +00: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 12:37:53 +00: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 ];
2019-04-11 04:27:17 +00:00
platforms = platforms.unix;
2018-06-13 12:37:53 +00:00
};
}