mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 20:34:52 +03:00
Merge remote-tracking branch 'upstream/master' into HEAD
This commit is contained in:
commit
75d8096108
@ -299,6 +299,7 @@
|
|||||||
ivan-tkatchev = "Ivan Tkatchev <tkatchev@gmail.com>";
|
ivan-tkatchev = "Ivan Tkatchev <tkatchev@gmail.com>";
|
||||||
ixmatus = "Parnell Springmeyer <parnell@digitalmentat.com>";
|
ixmatus = "Parnell Springmeyer <parnell@digitalmentat.com>";
|
||||||
izorkin = "Yurii Izorkin <Izorkin@gmail.com>";
|
izorkin = "Yurii Izorkin <Izorkin@gmail.com>";
|
||||||
|
ixxie = "Matan Bendix Shenhav <matan@fluxcraft.net>";
|
||||||
j-keck = "Jürgen Keck <jhyphenkeck@gmail.com>";
|
j-keck = "Jürgen Keck <jhyphenkeck@gmail.com>";
|
||||||
jagajaga = "Arseniy Seroka <ars.seroka@gmail.com>";
|
jagajaga = "Arseniy Seroka <ars.seroka@gmail.com>";
|
||||||
jammerful = "jammerful <jammerful@gmail.com>";
|
jammerful = "jammerful <jammerful@gmail.com>";
|
||||||
|
@ -20,9 +20,19 @@ rec {
|
|||||||
|
|
||||||
# Helper for the common case where we have separate feature and
|
# Helper for the common case where we have separate feature and
|
||||||
# plugin JARs.
|
# plugin JARs.
|
||||||
buildEclipsePlugin = { name, srcFeature, srcPlugin, ... } @ attrs:
|
buildEclipsePlugin =
|
||||||
|
{ name, srcFeature, srcPlugin ? null, srcPlugins ? [], ... } @ attrs:
|
||||||
|
assert srcPlugin == null -> srcPlugins != [];
|
||||||
|
assert srcPlugin != null -> srcPlugins == [];
|
||||||
|
|
||||||
|
let
|
||||||
|
|
||||||
|
pSrcs = if (srcPlugin != null) then [ srcPlugin ] else srcPlugins;
|
||||||
|
|
||||||
|
in
|
||||||
|
|
||||||
buildEclipsePluginBase (attrs // {
|
buildEclipsePluginBase (attrs // {
|
||||||
srcs = [ srcFeature srcPlugin ];
|
srcs = [ srcFeature ] ++ pSrcs;
|
||||||
|
|
||||||
buildCommand = ''
|
buildCommand = ''
|
||||||
dropinDir="$out/eclipse/dropins/${name}"
|
dropinDir="$out/eclipse/dropins/${name}"
|
||||||
@ -31,7 +41,9 @@ rec {
|
|||||||
unzip ${srcFeature} -d $dropinDir/features/
|
unzip ${srcFeature} -d $dropinDir/features/
|
||||||
|
|
||||||
mkdir -p $dropinDir/plugins
|
mkdir -p $dropinDir/plugins
|
||||||
cp -v ${srcPlugin} $dropinDir/plugins/${name}.jar
|
for plugin in ${toString pSrcs}; do
|
||||||
|
cp -v $plugin $dropinDir/plugins/$(stripHash $plugin)
|
||||||
|
done
|
||||||
'';
|
'';
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -125,6 +137,29 @@ rec {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
antlr-runtime_4_5 = buildEclipsePluginBase rec {
|
||||||
|
name = "antlr-runtime-4.5.3";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "http://www.antlr.org/download/${name}.jar";
|
||||||
|
sha256 = "0lm78i2annlczlc2cg5xvby0g1dyl0sh1y5xc2pymjlmr67a1g4k";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildCommand = ''
|
||||||
|
dropinDir="$out/eclipse/dropins/"
|
||||||
|
mkdir -p $dropinDir
|
||||||
|
cp -v $src $dropinDir/${name}.jar
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "A powerful parser generator for processing structured text or binary files";
|
||||||
|
homepage = http://www.antlr.org/;
|
||||||
|
license = licenses.bsd3;
|
||||||
|
platforms = platforms.all;
|
||||||
|
maintainers = [ maintainers.rycee ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
anyedittools = buildEclipsePlugin rec {
|
anyedittools = buildEclipsePlugin rec {
|
||||||
name = "anyedit-${version}";
|
name = "anyedit-${version}";
|
||||||
version = "2.7.1.201709201439";
|
version = "2.7.1.201709201439";
|
||||||
@ -256,7 +291,7 @@ rec {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
cup = buildEclipsePluginBase rec {
|
cup = buildEclipsePlugin rec {
|
||||||
name = "cup-${version}";
|
name = "cup-${version}";
|
||||||
version = "1.1.0.201604221613";
|
version = "1.1.0.201604221613";
|
||||||
version_ = "1.0.0.201604221613";
|
version_ = "1.0.0.201604221613";
|
||||||
@ -266,31 +301,20 @@ rec {
|
|||||||
sha256 = "13nnsf0cqg02z3af6xg45rhcgiffsibxbx6h1zahjv7igvqgkyna";
|
sha256 = "13nnsf0cqg02z3af6xg45rhcgiffsibxbx6h1zahjv7igvqgkyna";
|
||||||
};
|
};
|
||||||
|
|
||||||
srcPlugin1 = fetchurl {
|
srcPlugins = [
|
||||||
|
(fetchurl {
|
||||||
url = "http://www2.in.tum.de/projects/cup/eclipse/plugins/CupReferencedLibraries_${version_}.jar";
|
url = "http://www2.in.tum.de/projects/cup/eclipse/plugins/CupReferencedLibraries_${version_}.jar";
|
||||||
sha256 = "0kif8kivrysprva1pxzajm88gi967qf7idhb6ga2xpvsdcris91j";
|
sha256 = "0kif8kivrysprva1pxzajm88gi967qf7idhb6ga2xpvsdcris91j";
|
||||||
};
|
})
|
||||||
|
|
||||||
srcPlugin2 = fetchurl {
|
(fetchurl {
|
||||||
url = "http://www2.in.tum.de/projects/cup/eclipse/plugins/de.tum.in.www2.CupPlugin_${version}.jar";
|
url = "http://www2.in.tum.de/projects/cup/eclipse/plugins/de.tum.in.www2.CupPlugin_${version}.jar";
|
||||||
sha256 = "022phbrsny3gb8npb6sxyqqxacx138q5bd7dq3gqxh3kprx5chbl";
|
sha256 = "022phbrsny3gb8npb6sxyqqxacx138q5bd7dq3gqxh3kprx5chbl";
|
||||||
};
|
})
|
||||||
|
];
|
||||||
srcs = [ srcFeature srcPlugin1 srcPlugin2 ];
|
|
||||||
|
|
||||||
propagatedBuildInputs = [ zest ];
|
propagatedBuildInputs = [ zest ];
|
||||||
|
|
||||||
phases = [ "installPhase" ];
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
dropinDir="$out/eclipse/dropins/${name}"
|
|
||||||
mkdir -p $dropinDir/features
|
|
||||||
unzip ${srcFeature} -d $dropinDir/features/
|
|
||||||
mkdir -p $dropinDir/plugins
|
|
||||||
cp -v ${srcPlugin1} $dropinDir/plugins/''${srcPlugin1#*-}
|
|
||||||
cp -v ${srcPlugin2} $dropinDir/plugins/''${srcPlugin2#*-}
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = http://www2.cs.tum.edu/projects/cup/eclipse.php;
|
homepage = http://www2.cs.tum.edu/projects/cup/eclipse.php;
|
||||||
description = "IDE for developing CUP based parsers";
|
description = "IDE for developing CUP based parsers";
|
||||||
@ -383,6 +407,44 @@ rec {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
jsonedit = buildEclipsePlugin rec {
|
||||||
|
name = "jsonedit-${version}";
|
||||||
|
version = "1.0.1";
|
||||||
|
|
||||||
|
srcFeature = fetchurl {
|
||||||
|
url = "https://boothen.github.io/Json-Eclipse-Plugin/features/jsonedit-feature_${version}.jar";
|
||||||
|
sha256 = "19221409wzcsrlm2fqf6mrxzb5ip1x6y5ba8anw788p7aaz1w30k";
|
||||||
|
};
|
||||||
|
|
||||||
|
srcPlugins =
|
||||||
|
let
|
||||||
|
fetch = { n, h }:
|
||||||
|
fetchurl {
|
||||||
|
url = "https://boothen.github.io/Json-Eclipse-Plugin/plugins/jsonedit-${n}_${version}.jar";
|
||||||
|
sha256 = h;
|
||||||
|
};
|
||||||
|
in
|
||||||
|
map fetch [
|
||||||
|
{ n = "core"; h = "05ipjbh9yz97zhqaqq6cja3zz44n0dn40ms13qnlgf4bxyaf0f6w"; }
|
||||||
|
{ n = "editor"; h = "1i71rh2fd5hsx6gygnafz2gjz4hlb0ckazxn0maxmnlx4p5apjql"; }
|
||||||
|
{ n = "folding"; h = "13p8vqdna23ln82w1jgchm59375f1ky0p2b1v7jih55yfhw1ymam"; }
|
||||||
|
{ n = "model"; h = "0llswhsd58f0rjb9canjncavq4z7q8zidn26yl5gradbbz580p6w"; }
|
||||||
|
{ n = "outline"; h = "1rs8g0iv2kklbl7j0p6nr26m6ii89yyr9bpi05mh21xva40pzkl5"; }
|
||||||
|
{ n = "preferences"; h = "0vs074ahhiba7if43ryf9m8xd81sqj9grppy0pzcnkkdkbk870n0"; }
|
||||||
|
{ n = "text"; h = "0nqpzjw8hhvh9jlpldpmcmg83a170wjdabgsvjq207j12jkvfiqq"; }
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ antlr-runtime_4_5 ];
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "Adds support for JSON files to Eclipse";
|
||||||
|
homepage = https://github.com/boothen/Json-Eclipse-Plugin;
|
||||||
|
license = licenses.epl10;
|
||||||
|
platforms = platforms.all;
|
||||||
|
maintainers = [ maintainers.rycee ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
jdt = buildEclipseUpdateSite rec {
|
jdt = buildEclipseUpdateSite rec {
|
||||||
name = "jdt-${version}";
|
name = "jdt-${version}";
|
||||||
version = "4.7.2";
|
version = "4.7.2";
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -1,13 +1,13 @@
|
|||||||
{ stdenv, fetchurl, dbus, gnutls, wxGTK30, libidn, tinyxml, gettext
|
{ stdenv, fetchurl, dbus, gnutls, wxGTK30, libidn, tinyxml, gettext
|
||||||
, pkgconfig, xdg_utils, gtk2, sqlite, pugixml, libfilezilla, nettle }:
|
, pkgconfig, xdg_utils, gtk2, sqlite, pugixml, libfilezilla, nettle }:
|
||||||
|
|
||||||
let version = "3.29.0"; in
|
let version = "3.30.0"; in
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "filezilla-${version}";
|
name = "filezilla-${version}";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://sourceforge/project/filezilla/FileZilla_Client/${version}/FileZilla_${version}_src.tar.bz2";
|
url = "mirror://sourceforge/project/filezilla/FileZilla_Client/${version}/FileZilla_${version}_src.tar.bz2";
|
||||||
sha256 = "0najf2w6p5j4qc8jmglx6j63mph749s5p90lz2nkmwwwy5sfvlga";
|
sha256 = "1w0zqkccbsbmnjc9pfd1i3ywzwrdp0pprryvdk4sfn5ms9nnf2wi";
|
||||||
};
|
};
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
|
@ -24,6 +24,7 @@ stdenv.mkDerivation rec {
|
|||||||
swig isocodes bzip2 makeWrapper libofx libglade libgsf libart_lgpl
|
swig isocodes bzip2 makeWrapper libofx libglade libgsf libart_lgpl
|
||||||
perlPackages.DateManip perlPackages.FinanceQuote aqbanking gwenhywfar
|
perlPackages.DateManip perlPackages.FinanceQuote aqbanking gwenhywfar
|
||||||
];
|
];
|
||||||
|
propagatedUserEnvPkgs = [ gconf ];
|
||||||
|
|
||||||
configureFlags = "CFLAGS=-O3 CXXFLAGS=-O3 --disable-dbi --enable-ofx --enable-aqbanking";
|
configureFlags = "CFLAGS=-O3 CXXFLAGS=-O3 --disable-dbi --enable-ofx --enable-aqbanking";
|
||||||
|
|
||||||
|
@ -2,13 +2,13 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "diff-so-fancy-${version}";
|
name = "diff-so-fancy-${version}";
|
||||||
version = "1.1.1";
|
version = "1.2.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "so-fancy";
|
owner = "so-fancy";
|
||||||
repo = "diff-so-fancy";
|
repo = "diff-so-fancy";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "1hgppp8ngjbjzbi96529p36hzi0ysdndrh6d6m71gs21am8v4m9r";
|
sha256 = "0j8dxfl4js7agwdpcvxwigzpp0lik33h7s3vsjg0pd413h2j4mvz";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Perl is needed here for patchShebangs
|
# Perl is needed here for patchShebangs
|
||||||
|
@ -11,6 +11,12 @@ stdenv.mkDerivation rec {
|
|||||||
buildInputs = [ openssl qtbase ];
|
buildInputs = [ openssl qtbase ];
|
||||||
nativeBuildInputs = [ cmake pkgconfig ];
|
nativeBuildInputs = [ cmake pkgconfig ];
|
||||||
|
|
||||||
|
# tells CMake to use this CA bundle file if it is accessible
|
||||||
|
preConfigure = ''export QC_CERTSTORE_PATH=/etc/ssl/certs/ca-certificates.crt'';
|
||||||
|
|
||||||
|
# tricks CMake into using this CA bundle file if it is not accessible (in a sandbox)
|
||||||
|
cmakeFlags = [ "-Dqca_CERTSTORE=/etc/ssl/certs/ca-certificates.crt" ];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Qt 5 Cryptographic Architecture";
|
description = "Qt 5 Cryptographic Architecture";
|
||||||
homepage = http://delta.affinix.com/qca;
|
homepage = http://delta.affinix.com/qca;
|
||||||
|
@ -14,6 +14,12 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
# tells CMake to use this CA bundle file if it is accessible
|
||||||
|
preConfigure = ''export QC_CERTSTORE_PATH=/etc/ssl/certs/ca-certificates.crt'';
|
||||||
|
|
||||||
|
# tricks CMake into using this CA bundle file if it is not accessible (in a sandbox)
|
||||||
|
cmakeFlags = [ "-Dqca_CERTSTORE=/etc/ssl/certs/ca-certificates.crt" ];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Qt Cryptographic Architecture";
|
description = "Qt Cryptographic Architecture";
|
||||||
license = "LGPL";
|
license = "LGPL";
|
||||||
|
@ -24,7 +24,7 @@ top-level attribute to `top-level/all-packages.nix`.
|
|||||||
# options
|
# options
|
||||||
developerBuild ? false,
|
developerBuild ? false,
|
||||||
decryptSslTraffic ? false,
|
decryptSslTraffic ? false,
|
||||||
debug ? null,
|
debug ? false,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
@ -37,7 +37,7 @@ let
|
|||||||
srcs = import ./srcs.nix { inherit fetchurl; inherit mirror; };
|
srcs = import ./srcs.nix { inherit fetchurl; inherit mirror; };
|
||||||
|
|
||||||
patches = {
|
patches = {
|
||||||
qtbase = [ ./qtbase.patch ];
|
qtbase = [ ./qtbase.patch ] ++ optional stdenv.isDarwin ./qtbase-darwin.patch;
|
||||||
qtdeclarative = [ ./qtdeclarative.patch ];
|
qtdeclarative = [ ./qtdeclarative.patch ];
|
||||||
qtscript = [ ./qtscript.patch ];
|
qtscript = [ ./qtscript.patch ];
|
||||||
qtserialport = [ ./qtserialport.patch ];
|
qtserialport = [ ./qtserialport.patch ];
|
||||||
|
57
pkgs/development/libraries/qt-5/5.10/qtbase-darwin.patch
Normal file
57
pkgs/development/libraries/qt-5/5.10/qtbase-darwin.patch
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
diff --git a/src/plugins/bearer/corewlan/qcorewlanengine.mm b/src/plugins/bearer/corewlan/qcorewlanengine.mm
|
||||||
|
index 341d3bccf2..3368234c26 100644
|
||||||
|
--- a/src/plugins/bearer/corewlan/qcorewlanengine.mm
|
||||||
|
+++ b/src/plugins/bearer/corewlan/qcorewlanengine.mm
|
||||||
|
@@ -287,7 +287,7 @@ void QScanThread::getUserConfigurations()
|
||||||
|
QMacAutoReleasePool pool;
|
||||||
|
userProfiles.clear();
|
||||||
|
|
||||||
|
- NSArray<NSString *> *wifiInterfaces = [CWWiFiClient interfaceNames];
|
||||||
|
+ NSArray *wifiInterfaces = [CWWiFiClient interfaceNames];
|
||||||
|
for (NSString *ifName in wifiInterfaces) {
|
||||||
|
|
||||||
|
CWInterface *wifiInterface = [[CWWiFiClient sharedWiFiClient] interfaceWithName:ifName];
|
||||||
|
@@ -602,7 +602,7 @@ void QCoreWlanEngine::doRequestUpdate()
|
||||||
|
|
||||||
|
QMacAutoReleasePool pool;
|
||||||
|
|
||||||
|
- NSArray<NSString *> *wifiInterfaces = [CWWiFiClient interfaceNames];
|
||||||
|
+ NSArray *wifiInterfaces = [CWWiFiClient interfaceNames];
|
||||||
|
for (NSString *ifName in wifiInterfaces) {
|
||||||
|
scanThread->interfaceName = QString::fromNSString(ifName);
|
||||||
|
scanThread->start();
|
||||||
|
diff --git a/src/plugins/platforms/cocoa/qcocoawindow.mm b/src/plugins/platforms/cocoa/qcocoawindow.mm
|
||||||
|
index d1f19f2..1ac2cf1 100644
|
||||||
|
--- a/src/plugins/platforms/cocoa/qcocoawindow.mm
|
||||||
|
+++ b/src/plugins/platforms/cocoa/qcocoawindow.mm
|
||||||
|
@@ -1699,7 +1699,7 @@ void QCocoaWindow::applyContentBorderThickness(NSWindow *window)
|
||||||
|
|
||||||
|
if (!m_drawContentBorderGradient) {
|
||||||
|
window.styleMask = window.styleMask & ~NSTexturedBackgroundWindowMask;
|
||||||
|
- [window.contentView.superview setNeedsDisplay:YES];
|
||||||
|
+ [[window.contentView superview] setNeedsDisplay:YES];
|
||||||
|
window.titlebarAppearsTransparent = NO;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
diff --git a/src/plugins/platforms/cocoa/qnswindow.mm b/src/plugins/platforms/cocoa/qnswindow.mm
|
||||||
|
index e846fa0..4171cd4 100644
|
||||||
|
--- a/src/plugins/platforms/cocoa/qnswindow.mm
|
||||||
|
+++ b/src/plugins/platforms/cocoa/qnswindow.mm
|
||||||
|
@@ -224,7 +224,7 @@ static bool isMouseEvent(NSEvent *ev)
|
||||||
|
if (pw->frameStrutEventsEnabled() && isMouseEvent(theEvent)) {
|
||||||
|
NSPoint loc = [theEvent locationInWindow];
|
||||||
|
NSRect windowFrame = [self convertRectFromScreen:self.frame];
|
||||||
|
- NSRect contentFrame = self.contentView.frame;
|
||||||
|
+ NSRect contentFrame = [self.contentView frame];
|
||||||
|
if (NSMouseInRect(loc, windowFrame, NO) && !NSMouseInRect(loc, contentFrame, NO))
|
||||||
|
[qnsview_cast(pw->view()) handleFrameStrutMouseEvent:theEvent];
|
||||||
|
}
|
||||||
|
@@ -253,7 +253,7 @@ static bool isMouseEvent(NSEvent *ev)
|
||||||
|
+ (void)applicationActivationChanged:(NSNotification*)notification
|
||||||
|
{
|
||||||
|
const id sender = self;
|
||||||
|
- NSEnumerator<NSWindow*> *windowEnumerator = nullptr;
|
||||||
|
+ NSEnumerator *windowEnumerator = nullptr;
|
||||||
|
NSApplication *application = [NSApplication sharedApplication];
|
||||||
|
|
||||||
|
#if QT_MACOS_PLATFORM_SDK_EQUAL_OR_ABOVE(__MAC_10_12)
|
@ -33,7 +33,7 @@ existing packages here and modify it as necessary.
|
|||||||
# options
|
# options
|
||||||
developerBuild ? false,
|
developerBuild ? false,
|
||||||
decryptSslTraffic ? false,
|
decryptSslTraffic ? false,
|
||||||
debug ? null,
|
debug ? false,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
|
@ -24,7 +24,7 @@ top-level attribute to `top-level/all-packages.nix`.
|
|||||||
# options
|
# options
|
||||||
developerBuild ? false,
|
developerBuild ? false,
|
||||||
decryptSslTraffic ? false,
|
decryptSslTraffic ? false,
|
||||||
debug ? null,
|
debug ? false,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
|
@ -11,17 +11,18 @@ let
|
|||||||
|
|
||||||
qmakeFlags =
|
qmakeFlags =
|
||||||
(args.qmakeFlags or [])
|
(args.qmakeFlags or [])
|
||||||
++ optional (debug != null)
|
++ [ ("CONFIG+=" + (if debug then "debug" else "release")) ];
|
||||||
(if debug then "CONFIG+=debug" else "CONFIG+=release");
|
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = optional (debug != null) "-DQT_NO_DEBUG";
|
NIX_CFLAGS_COMPILE =
|
||||||
|
optional (!debug) "-DQT_NO_DEBUG"
|
||||||
|
++ lib.toList (args.NIX_CFLAGS_COMPILE or []);
|
||||||
|
|
||||||
cmakeFlags =
|
cmakeFlags =
|
||||||
(args.cmakeFlags or [])
|
(args.cmakeFlags or [])
|
||||||
++ [ "-DBUILD_TESTING=OFF" ]
|
++ [
|
||||||
++ optional (debug != null)
|
"-DBUILD_TESTING=OFF"
|
||||||
(if debug then "-DCMAKE_BUILD_TYPE=Debug"
|
("-DCMAKE_BUILD_TYPE=" + (if debug then "Debug" else "Release"))
|
||||||
else "-DCMAKE_BUILD_TYPE=Release");
|
];
|
||||||
|
|
||||||
enableParallelBuilding = args.enableParallelBuilding or true;
|
enableParallelBuilding = args.enableParallelBuilding or true;
|
||||||
|
|
||||||
|
@ -6,8 +6,10 @@
|
|||||||
, "bower2nix"
|
, "bower2nix"
|
||||||
, "browserify"
|
, "browserify"
|
||||||
, "castnow"
|
, "castnow"
|
||||||
|
, "clean-css"
|
||||||
, "coffee-script"
|
, "coffee-script"
|
||||||
, "coinmon"
|
, "coinmon"
|
||||||
|
, "configurable-http-proxy"
|
||||||
, "cordova"
|
, "cordova"
|
||||||
, "csslint"
|
, "csslint"
|
||||||
, "dat"
|
, "dat"
|
||||||
@ -48,6 +50,8 @@
|
|||||||
, "karma"
|
, "karma"
|
||||||
, { "kibana-authentication-proxy": "git://github.com/fangli/kibana-authentication-proxy.git" }
|
, { "kibana-authentication-proxy": "git://github.com/fangli/kibana-authentication-proxy.git" }
|
||||||
, "lerna"
|
, "lerna"
|
||||||
|
, "less"
|
||||||
|
, "less-plugin-clean-css"
|
||||||
, "lcov-result-merger"
|
, "lcov-result-merger"
|
||||||
, "livedown"
|
, "livedown"
|
||||||
, "live-server"
|
, "live-server"
|
||||||
|
File diff suppressed because it is too large
Load Diff
122
pkgs/development/python-modules/jupyterhub/default.nix
Normal file
122
pkgs/development/python-modules/jupyterhub/default.nix
Normal file
@ -0,0 +1,122 @@
|
|||||||
|
{ lib
|
||||||
|
, python
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, fetchzip
|
||||||
|
, alembic
|
||||||
|
, ipython
|
||||||
|
, jinja2
|
||||||
|
, python-oauth2
|
||||||
|
, pamela
|
||||||
|
, sqlalchemy
|
||||||
|
, tornado
|
||||||
|
, traitlets
|
||||||
|
, requests
|
||||||
|
, pythonOlder
|
||||||
|
, nodejs-8_x
|
||||||
|
, nodePackages
|
||||||
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
# js/css assets that setup.py tries to fetch via `npm install` when building
|
||||||
|
# from source.
|
||||||
|
bootstrap =
|
||||||
|
fetchzip {
|
||||||
|
url = "https://registry.npmjs.org/bootstrap/-/bootstrap-3.3.7.tgz";
|
||||||
|
sha256 = "0r7s54bbf68ri1na9bbabyf12mcpb6zk5ja2q6z82aw1fa4xi3yd";
|
||||||
|
};
|
||||||
|
font-awesome =
|
||||||
|
fetchzip {
|
||||||
|
url = "https://registry.npmjs.org/font-awesome/-/font-awesome-4.7.0.tgz";
|
||||||
|
sha256 = "1xnxbdlfdd60z5ix152m8r2kk9dkwlqwpypky1mm3dv64ajnzdbk";
|
||||||
|
};
|
||||||
|
jquery =
|
||||||
|
fetchzip {
|
||||||
|
url = "https://registry.npmjs.org/jquery/-/jquery-3.2.1.tgz";
|
||||||
|
sha256 = "1j6y18miwzafdj8kfpwbmbn9qvgnbnpc7l4arqrhqj33m04xrlgi";
|
||||||
|
};
|
||||||
|
moment =
|
||||||
|
fetchzip {
|
||||||
|
url = "https://registry.npmjs.org/moment/-/moment-2.18.1.tgz";
|
||||||
|
sha256 = "1b4vyvs24v6y92pf2iqjm5aa7jg7khcpspn00girc7lpi917f9vw";
|
||||||
|
};
|
||||||
|
requirejs =
|
||||||
|
fetchzip {
|
||||||
|
url = "https://registry.npmjs.org/requirejs/-/requirejs-2.3.4.tgz";
|
||||||
|
sha256 = "0q6mkj0iv341kks06dya6lfs2kdw0n6vc7n4a7aa3ia530fk9vja";
|
||||||
|
};
|
||||||
|
|
||||||
|
in
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "jupyterhub";
|
||||||
|
version = "0.8.1";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "100cf18d539802807a45450d38fefbb376cf1c810f3b1b31be31638829a5c69c";
|
||||||
|
};
|
||||||
|
|
||||||
|
# Most of this only applies when building from source (e.g. js/css assets are
|
||||||
|
# pre-built and bundled in the official release tarball on pypi).
|
||||||
|
#
|
||||||
|
# Stuff that's always needed:
|
||||||
|
# * At runtime, we need configurable-http-proxy, so we substitute the store
|
||||||
|
# path.
|
||||||
|
#
|
||||||
|
# Other stuff that's only needed when building from source:
|
||||||
|
# * js/css assets are fetched from npm.
|
||||||
|
# * substitute store path for `lessc` commmand.
|
||||||
|
# * set up NODE_PATH so `lessc` can find `less-plugin-clean-css`.
|
||||||
|
# * don't run `npm install`.
|
||||||
|
preBuild = ''
|
||||||
|
export NODE_PATH=${nodePackages.less-plugin-clean-css}/lib/node_modules
|
||||||
|
|
||||||
|
substituteInPlace jupyterhub/proxy.py --replace \
|
||||||
|
"'configurable-http-proxy'" \
|
||||||
|
"'${nodePackages.configurable-http-proxy}/bin/configurable-http-proxy'"
|
||||||
|
|
||||||
|
substituteInPlace jupyterhub/tests/test_proxy.py --replace \
|
||||||
|
"'configurable-http-proxy'" \
|
||||||
|
"'${nodePackages.configurable-http-proxy}/bin/configurable-http-proxy'"
|
||||||
|
|
||||||
|
substituteInPlace setup.py --replace \
|
||||||
|
"'npm', 'run', 'lessc', '--'" \
|
||||||
|
"'${nodePackages.less}/bin/lessc'"
|
||||||
|
|
||||||
|
substituteInPlace setup.py --replace \
|
||||||
|
"'npm', 'install', '--progress=false'" \
|
||||||
|
"'true'"
|
||||||
|
|
||||||
|
declare -A deps
|
||||||
|
deps[bootstrap]=${bootstrap}
|
||||||
|
deps[font-awesome]=${font-awesome}
|
||||||
|
deps[jquery]=${jquery}
|
||||||
|
deps[moment]=${moment}
|
||||||
|
deps[requirejs]=${requirejs}
|
||||||
|
|
||||||
|
mkdir -p share/jupyter/hub/static/components
|
||||||
|
for dep in "''${!deps[@]}"; do
|
||||||
|
if [ ! -e share/jupyter/hub/static/components/$dep ]; then
|
||||||
|
cp -r ''${deps[$dep]} share/jupyter/hub/static/components/$dep
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
'';
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
alembic ipython jinja2 pamela python-oauth2 requests sqlalchemy tornado
|
||||||
|
traitlets
|
||||||
|
];
|
||||||
|
|
||||||
|
# Disable tests because they take an excessive amount of time to complete.
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.4";
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Serves multiple Jupyter notebook instances";
|
||||||
|
homepage = http://jupyter.org/;
|
||||||
|
license = licenses.bsd3;
|
||||||
|
maintainers = with maintainers; [ ixxie cstrahan ];
|
||||||
|
};
|
||||||
|
}
|
24
pkgs/development/python-modules/python-oauth2/default.nix
Normal file
24
pkgs/development/python-modules/python-oauth2/default.nix
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
{ lib
|
||||||
|
, python
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "python-oauth2";
|
||||||
|
version = "1.0.1";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "0a1d0qnlgm07wq9r9bbm5jqkqry73w34m87p0141bk76lg7bb0sm";
|
||||||
|
};
|
||||||
|
# attempts to run mysql
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Framework that aims at making it easy to provide authentication via OAuth 2.0 within an application stack";
|
||||||
|
homepage = https://github.com/wndhydrnt/python-oauth2;
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ ixxie ];
|
||||||
|
};
|
||||||
|
}
|
29
pkgs/development/python-modules/us/default.nix
Normal file
29
pkgs/development/python-modules/us/default.nix
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, jellyfish
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "us";
|
||||||
|
version = "1.0.0";
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ jellyfish ];
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "1niglalkp7pinibzbxjdz9mxx9qmwkrh8884dag3kr72cfkrpp09";
|
||||||
|
};
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "A package for easily working with US and state metadata";
|
||||||
|
longDescription = ''
|
||||||
|
all US states and territories, postal abbreviations, Associated Press style
|
||||||
|
abbreviations, FIPS codes, capitals, years of statehood, time zones, phonetic
|
||||||
|
state name lookup, is contiguous or continental, URLs to shapefiles for state,
|
||||||
|
census, congressional districts, counties, and census tracts
|
||||||
|
'';
|
||||||
|
homepage = https://github.com/unitedstates/python-us/;
|
||||||
|
license = lib.licenses.bsd3;
|
||||||
|
};
|
||||||
|
}
|
@ -3,13 +3,13 @@
|
|||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "sysdig-${version}";
|
name = "sysdig-${version}";
|
||||||
version = "0.19.1";
|
version = "0.20.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "draios";
|
owner = "draios";
|
||||||
repo = "sysdig";
|
repo = "sysdig";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "04bsb7g6mh6dwk023v1rbdcjwp898y6ixdvrd7nxzm186qpycpnn";
|
sha256 = "0nbsfm2jh5gjy2wh79f35rqk3c3z15lymmcz3gviw0jaxdv6drzw";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
|
@ -2,13 +2,13 @@
|
|||||||
|
|
||||||
buildGoPackage rec {
|
buildGoPackage rec {
|
||||||
name = "matterbridge-${version}";
|
name = "matterbridge-${version}";
|
||||||
version = "1.4.1";
|
version = "1.6.3";
|
||||||
|
|
||||||
goPackagePath = "github.com/42wim/matterbridge";
|
goPackagePath = "github.com/42wim/matterbridge";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/42wim/matterbridge/archive/v${version}.tar.gz";
|
url = "https://github.com/42wim/matterbridge/archive/v${version}.tar.gz";
|
||||||
sha256 = "0m0phv8rngrp9gfn71gd2z184n60rng1fmvmv5nkmzsclr2y7x8b";
|
sha256 = "1d2wrfq07kk5l19w2d6yyjcdvn9b39cji1k5vzsfq0xkdb6b8spb";
|
||||||
};
|
};
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
@ -3,18 +3,19 @@
|
|||||||
, gnupg ? null
|
, gnupg ? null
|
||||||
, goobook ? null
|
, goobook ? null
|
||||||
, khard ? null
|
, khard ? null
|
||||||
|
, mu ? null
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
version = "0.45.3";
|
version = "0.46";
|
||||||
in
|
in
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
with perlPackages;
|
with perlPackages;
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "lbdb-${version}";
|
name = "lbdb-${version}";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://www.spinnaker.de/debian/lbdb_${version}.tar.gz";
|
url = "http://www.spinnaker.de/lbdb/download/lbdb_${version}.tar.gz";
|
||||||
sha256 = "01lx1nb5nlhwz663v35gg7crd36c78hnipq4z0dqyb9wjigwwg9k";
|
sha256 = "16fx02xk98k3friigq2lcgk535xagp3kfnmngni5kw61f7yj6gxi";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ goobook makeWrapper perl ConvertASN1 NetLDAP AuthenSASL ]
|
buildInputs = [ goobook makeWrapper perl ConvertASN1 NetLDAP AuthenSASL ]
|
||||||
@ -22,12 +23,14 @@ stdenv.mkDerivation {
|
|||||||
++ optional (abook != null) abook
|
++ optional (abook != null) abook
|
||||||
++ optional (gnupg != null) gnupg
|
++ optional (gnupg != null) gnupg
|
||||||
++ optional (goobook != null) goobook
|
++ optional (goobook != null) goobook
|
||||||
++ optional (khard != null) khard;
|
++ optional (khard != null) khard
|
||||||
|
++ optional (mu != null) mu;
|
||||||
configureFlags = [ ]
|
configureFlags = [ ]
|
||||||
++ optional (abook != null) "--with-abook"
|
++ optional (abook != null) "--with-abook"
|
||||||
++ optional (gnupg != null) "--with-gpg"
|
++ optional (gnupg != null) "--with-gpg"
|
||||||
++ optional (goobook != null) "--with-goobook"
|
++ optional (goobook != null) "--with-goobook"
|
||||||
++ optional (khard != null) "--with-khard";
|
++ optional (khard != null) "--with-khard"
|
||||||
|
++ optional (mu != null) "--with-mu";
|
||||||
|
|
||||||
patches = [ ./add-methods-to-rc.patch ];
|
patches = [ ./add-methods-to-rc.patch ];
|
||||||
postFixup = "wrapProgram $out/lib/mutt_ldap_query --prefix PERL5LIB : "
|
postFixup = "wrapProgram $out/lib/mutt_ldap_query --prefix PERL5LIB : "
|
||||||
|
@ -15853,7 +15853,7 @@ with pkgs;
|
|||||||
|
|
||||||
lastfmsubmitd = callPackage ../applications/audio/lastfmsubmitd { };
|
lastfmsubmitd = callPackage ../applications/audio/lastfmsubmitd { };
|
||||||
|
|
||||||
lbdb = callPackage ../tools/misc/lbdb { abook = null; gnupg = null; goobook = null; khard = null; };
|
lbdb = callPackage ../tools/misc/lbdb { abook = null; gnupg = null; goobook = null; khard = null; mu = null; };
|
||||||
|
|
||||||
lbzip2 = callPackage ../tools/compression/lbzip2 { };
|
lbzip2 = callPackage ../tools/compression/lbzip2 { };
|
||||||
|
|
||||||
|
@ -8068,10 +8068,10 @@ let self = _self // overrides; _self = with self; {
|
|||||||
};
|
};
|
||||||
|
|
||||||
LogContextual = buildPerlPackage rec {
|
LogContextual = buildPerlPackage rec {
|
||||||
name = "Log-Contextual-0.008000";
|
name = "Log-Contextual-0.008001";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://cpan/authors/id/F/FR/FREW/${name}.tar.gz";
|
url = "mirror://cpan/authors/id/F/FR/FREW/${name}.tar.gz";
|
||||||
sha256 = "acd804508740e35c208e0cff575f3dbca2e01b8e64ec00eec3f88c7c4e3d656c";
|
sha256 = "b93cbcfbb8796d51c836e3b00243cda5630808c152c14eee5f20ca09c9451993";
|
||||||
};
|
};
|
||||||
buildInputs = [ TestFatal ];
|
buildInputs = [ TestFatal ];
|
||||||
propagatedBuildInputs = [ DataDumperConcise ExporterDeclare Moo ];
|
propagatedBuildInputs = [ DataDumperConcise ExporterDeclare Moo ];
|
||||||
|
@ -5844,6 +5844,12 @@ in {
|
|||||||
sha256 = "0ssxbqsshrm8p642g3h6wsq20z1fsqhpdvqdm827gn6dlr38868y";
|
sha256 = "0ssxbqsshrm8p642g3h6wsq20z1fsqhpdvqdm827gn6dlr38868y";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
postUnpack = ''
|
||||||
|
substituteInPlace $sourceRoot/pamela.py --replace \
|
||||||
|
'find_library("pam")' \
|
||||||
|
'"${getLib pkgs.pam}/lib/libpam.so"'
|
||||||
|
'';
|
||||||
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
@ -9394,6 +9400,8 @@ in {
|
|||||||
|
|
||||||
jupyter_core = callPackage ../development/python-modules/jupyter_core { };
|
jupyter_core = callPackage ../development/python-modules/jupyter_core { };
|
||||||
|
|
||||||
|
jupyterhub = callPackage ../development/python-modules/jupyterhub { };
|
||||||
|
|
||||||
jsonpath_rw = buildPythonPackage rec {
|
jsonpath_rw = buildPythonPackage rec {
|
||||||
name = "jsonpath-rw-${version}";
|
name = "jsonpath-rw-${version}";
|
||||||
version = "1.4.0";
|
version = "1.4.0";
|
||||||
@ -9650,6 +9658,8 @@ in {
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
python-oauth2 = callPackage ../development/python-modules/python-oauth2 { };
|
||||||
|
|
||||||
python-Levenshtein = buildPythonPackage rec {
|
python-Levenshtein = buildPythonPackage rec {
|
||||||
name = "python-Levenshtein-${version}";
|
name = "python-Levenshtein-${version}";
|
||||||
version = "0.12.0";
|
version = "0.12.0";
|
||||||
@ -13573,11 +13583,6 @@ in {
|
|||||||
export PYCURL_SSL_LIBRARY=openssl
|
export PYCURL_SSL_LIBRARY=openssl
|
||||||
'';
|
'';
|
||||||
|
|
||||||
#TODO no idea why this is needed
|
|
||||||
postInstall = ''
|
|
||||||
ln -s ${pkgs.openssl.out}/lib/libcrypto* $out/lib/
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = http://pycurl.sourceforge.net/;
|
homepage = http://pycurl.sourceforge.net/;
|
||||||
description = "Python wrapper for libcurl";
|
description = "Python wrapper for libcurl";
|
||||||
@ -22403,6 +22408,8 @@ EOF
|
|||||||
voluptuous = callPackage ../development/python-modules/voluptuous { };
|
voluptuous = callPackage ../development/python-modules/voluptuous { };
|
||||||
|
|
||||||
pysigset = callPackage ../development/python-modules/pysigset { };
|
pysigset = callPackage ../development/python-modules/pysigset { };
|
||||||
|
|
||||||
|
us = callPackage ../development/python-modules/us { };
|
||||||
});
|
});
|
||||||
|
|
||||||
in fix' (extends overrides packages)
|
in fix' (extends overrides packages)
|
||||||
|
Loading…
Reference in New Issue
Block a user