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

54 lines
1.2 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-03-18 18:57:20 +00:00
version = "2.1.3";
2018-06-13 12:37:53 +00:00
src = fetchurl {
url = "https://drawpile.net/files/src/drawpile-${version}.tar.gz";
2019-03-18 18:57:20 +00:00
sha256 = "0fngj5hfinj66xpij2h3ag79mgmqcfrjpwynxdbjr5brch25ldwj";
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 ];
};
}