parent
71727f32a9
commit
7ba046d906
|
@ -1,48 +1,89 @@
|
||||||
{ stdenv
|
{ stdenv
|
||||||
, fetchurl
|
, fetchurl
|
||||||
, cmake
|
, cmake
|
||||||
, qtbase
|
|
||||||
, qtsvg
|
|
||||||
, qtmultimedia
|
|
||||||
, qttools
|
|
||||||
, kdnssd
|
|
||||||
, karchive
|
|
||||||
, libsodium
|
|
||||||
, libmicrohttpd
|
|
||||||
, giflib
|
|
||||||
, miniupnpc
|
|
||||||
, extra-cmake-modules
|
, extra-cmake-modules
|
||||||
|
|
||||||
|
# common deps
|
||||||
|
, karchive
|
||||||
|
|
||||||
|
# client deps
|
||||||
|
, qtbase
|
||||||
|
, qtmultimedia
|
||||||
|
, qtsvg
|
||||||
|
, qttools
|
||||||
|
|
||||||
|
# optional client deps
|
||||||
|
, giflib
|
||||||
|
, kdnssd
|
||||||
, libvpx
|
, libvpx
|
||||||
|
, miniupnpc
|
||||||
|
, qtx11extras # kis
|
||||||
|
|
||||||
|
# optional server deps
|
||||||
|
, libmicrohttpd
|
||||||
|
, libsodium
|
||||||
|
|
||||||
|
# options
|
||||||
|
, buildClient ? true
|
||||||
|
, buildServer ? true
|
||||||
|
, buildServerGui ? true # if false builds a headless server
|
||||||
|
, buildExtraTools ? false
|
||||||
|
, enableKisTablet ? false # enable improved graphics tablet support
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
with stdenv.lib;
|
||||||
|
|
||||||
|
let
|
||||||
|
commonDeps = [
|
||||||
|
karchive
|
||||||
|
];
|
||||||
|
clientDeps = [
|
||||||
|
qtbase
|
||||||
|
qtmultimedia
|
||||||
|
qtsvg
|
||||||
|
qttools
|
||||||
|
# optional:
|
||||||
|
giflib # gif animation export support
|
||||||
|
kdnssd # local server discovery with Zeroconf
|
||||||
|
libvpx # WebM video export
|
||||||
|
miniupnpc # automatic port forwarding
|
||||||
|
];
|
||||||
|
serverDeps = [
|
||||||
|
# optional:
|
||||||
|
libmicrohttpd # HTTP admin api
|
||||||
|
libsodium # ext-auth support
|
||||||
|
];
|
||||||
|
kisDeps = [
|
||||||
|
qtx11extras
|
||||||
|
];
|
||||||
|
|
||||||
|
in stdenv.mkDerivation rec {
|
||||||
name = "drawpile-${version}";
|
name = "drawpile-${version}";
|
||||||
version = "2.1.6";
|
version = "2.1.6";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://drawpile.net/files/src/drawpile-${version}.tar.gz";
|
url = "https://drawpile.net/files/src/drawpile-${version}.tar.gz";
|
||||||
sha256 = "0vwsdvphigrq1daiazi411qflahlvgx8x8ssp581bng2lbq1vrbd";
|
sha256 = "0vwsdvphigrq1daiazi411qflahlvgx8x8ssp581bng2lbq1vrbd";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
cmake
|
||||||
extra-cmake-modules
|
extra-cmake-modules
|
||||||
];
|
];
|
||||||
buildInputs = [
|
buildInputs =
|
||||||
# common deps:
|
commonDeps ++
|
||||||
cmake
|
optionals buildClient clientDeps ++
|
||||||
qtbase qtsvg qtmultimedia qttools
|
optionals buildServer serverDeps ++
|
||||||
karchive
|
optionals enableKisTablet kisDeps ;
|
||||||
# optional deps:
|
|
||||||
# server-specific:
|
|
||||||
libsodium # ext-auth support
|
|
||||||
libmicrohttpd # HTTP admin api
|
|
||||||
# client-specific:
|
|
||||||
giflib # gif animation export support
|
|
||||||
miniupnpc # automatic port forwarding
|
|
||||||
kdnssd # local server discovery with Zeroconf
|
|
||||||
libvpx # WebM video export
|
|
||||||
];
|
|
||||||
configurePhase = "cmake -DCMAKE_INSTALL_PREFIX=$out .";
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
cmakeFlags =
|
||||||
|
optional (!buildClient ) "-DCLIENT=off" ++
|
||||||
|
optional (!buildServer ) "-DSERVER=off" ++
|
||||||
|
optional (!buildServerGui ) "-DSERVERGUI=off" ++
|
||||||
|
optional ( buildExtraTools) "-DTOOLS=on" ++
|
||||||
|
optional ( enableKisTablet) "-DKIS_TABLET=on";
|
||||||
|
|
||||||
|
meta = {
|
||||||
description = "A collaborative drawing program that allows multiple users to sketch on the same canvas simultaneously";
|
description = "A collaborative drawing program that allows multiple users to sketch on the same canvas simultaneously";
|
||||||
homepage = https://drawpile.net/;
|
homepage = https://drawpile.net/;
|
||||||
downloadPage = https://drawpile.net/download/;
|
downloadPage = https://drawpile.net/download/;
|
||||||
|
|
|
@ -16990,6 +16990,10 @@ in
|
||||||
dragonfly-reverb = callPackage ../applications/audio/dragonfly-reverb { };
|
dragonfly-reverb = callPackage ../applications/audio/dragonfly-reverb { };
|
||||||
|
|
||||||
drawpile = libsForQt5.callPackage ../applications/graphics/drawpile { };
|
drawpile = libsForQt5.callPackage ../applications/graphics/drawpile { };
|
||||||
|
drawpile-server-headless = libsForQt5.callPackage ../applications/graphics/drawpile {
|
||||||
|
buildClient = false;
|
||||||
|
buildServerGui = false;
|
||||||
|
};
|
||||||
|
|
||||||
droopy = callPackage ../applications/networking/droopy {
|
droopy = callPackage ../applications/networking/droopy {
|
||||||
inherit (python3Packages) wrapPython;
|
inherit (python3Packages) wrapPython;
|
||||||
|
|
Loading…
Reference in New Issue