Merge staging-next into staging

This commit is contained in:
Frederik Rietdijk 2019-05-28 08:32:57 +02:00
commit 3685108787
153 changed files with 3462 additions and 1013 deletions

View File

@ -1769,7 +1769,7 @@
name = "Frede Emil";
};
freepotion = {
email = "freepotion@protonmail.com";
email = "free.potion@yandex.ru";
github = "freepotion";
name = "Free Potion";
};
@ -2609,6 +2609,15 @@
github = "kisonecat";
name = "Jim Fowler";
};
kiwi = {
email = "envy1988@gmail.com";
github = "Kiwi";
name = "Robert Djubek";
keys = [{
longkeyid = "rsa4096/0x156C88A5B0A04B2A";
fingerprint = "8992 44FC D291 5CA2 0A97 802C 156C 88A5 B0A0 4B2A";
}];
};
kjuvi = {
email = "quentin.vaucher@pm.me";
github = "kjuvi";
@ -3041,6 +3050,15 @@
github = "martingms";
name = "Martin Gammelsæter";
};
marzipankaiser = {
email = "nixos@gaisseml.de";
github = "marzipankaiser";
name = "Marcial Gaißert";
keys = [{
longkeyid = "rsa2048/0xB629036BE399EEE9";
fingerprint = "B573 5118 0375 A872 FBBF 7770 B629 036B E399 EEE9";
}];
};
matejc = {
email = "cotman.matej@gmail.com";
github = "matejc";
@ -3398,6 +3416,10 @@
email = "matthew@wellquite.org";
name = "Matthew Sackman";
};
mschneider = {
email = "markus.schneider.sic+nix@gmail.com";
name = "Markus Schneider";
};
mschristiansen = {
email = "mikkel@rheosystems.com";
github = "mschristiansen";
@ -5004,6 +5026,11 @@
github = "the-kenny";
name = "Moritz Ulrich";
};
thedavidmeister = {
email = "thedavidmeister@gmail.com";
github = "thedavidmeister";
name = "David Meister";
};
thesola10 = {
email = "thesola10@bobile.fr";
github = "thesola10";

View File

@ -24,7 +24,7 @@ with lib;
environment.extraSetup = ''
if [ -w $out/share/mime ] && [ -d $out/share/mime/packages ]; then
XDG_DATA_DIRS=$out/share ${pkgs.buildPackages.shared-mime-info}/bin/update-mime-database -V $out/share/mime > /dev/null
XDG_DATA_DIRS=$out/share PKGSYSTEM_ENABLE_FSYNC=0 ${pkgs.buildPackages.shared-mime-info}/bin/update-mime-database -V $out/share/mime > /dev/null
fi
if [ -w $out/share/applications ]; then

View File

@ -234,16 +234,19 @@ in
Type = "simple";
PIDFile = pidfile;
# Believe it or not, Tahoe is very brittle about the order of
# arguments to $(tahoe start). The node directory must come first,
# arguments to $(tahoe run). The node directory must come first,
# and arguments which alter Twisted's behavior come afterwards.
ExecStart = ''
${settings.package}/bin/tahoe start ${lib.escapeShellArg nodedir} -n -l- --pidfile=${lib.escapeShellArg pidfile}
${settings.package}/bin/tahoe run ${lib.escapeShellArg nodedir} --pidfile=${lib.escapeShellArg pidfile}
'';
};
preStart = ''
if [ ! -d ${lib.escapeShellArg nodedir} ]; then
mkdir -p /var/db/tahoe-lafs
tahoe create-introducer ${lib.escapeShellArg nodedir}
# See https://github.com/NixOS/nixpkgs/issues/25273
tahoe create-introducer \
--hostname="${config.networking.hostName}" \
${lib.escapeShellArg nodedir}
fi
# Tahoe has created a predefined tahoe.cfg which we must now
@ -334,10 +337,10 @@ in
Type = "simple";
PIDFile = pidfile;
# Believe it or not, Tahoe is very brittle about the order of
# arguments to $(tahoe start). The node directory must come first,
# arguments to $(tahoe run). The node directory must come first,
# and arguments which alter Twisted's behavior come afterwards.
ExecStart = ''
${settings.package}/bin/tahoe start ${lib.escapeShellArg nodedir} -n -l- --pidfile=${lib.escapeShellArg pidfile}
${settings.package}/bin/tahoe run ${lib.escapeShellArg nodedir} --pidfile=${lib.escapeShellArg pidfile}
'';
};
preStart = ''

View File

@ -245,7 +245,9 @@ let
path = with pkgs; [ kmod iproute wireguard-tools ];
serviceConfig = {
Type = "oneshot";
Type = "simple";
Restart = "on-failure";
RestartSec = "5s";
RemainAfterExit = true;
};
@ -301,8 +303,16 @@ in
networking.wireguard = {
enable = mkOption {
description = "Whether to enable WireGuard.";
type = types.bool;
# 2019-05-25: Backwards compatibility.
default = cfg.interfaces != {};
example = true;
};
interfaces = mkOption {
description = "Wireguard interfaces.";
description = "WireGuard interfaces.";
default = {};
example = {
wg0 = {
@ -325,7 +335,7 @@ in
###### implementation
config = mkIf (cfg.interfaces != {}) {
config = mkIf cfg.enable {
assertions = (attrValues (
mapAttrs (name: value: {

View File

@ -50,6 +50,13 @@ in
systemd.packages = [ cfg.package ];
# The upstream unit does not use StateDirectory, and will
# fail if the directory it needs is not present. Should be
# fixed when https://gitlab.freedesktop.org/libfprint/fprintd/merge_requests/5
# is merged.
systemd.services.fprintd.serviceConfig.StateDirectory = "fprint";
};
}

View File

@ -26,18 +26,13 @@ in
services.xserver.desktopManager.session = singleton {
name = "lumina";
start = ''
exec ${pkgs.lumina}/bin/start-lumina-desktop
exec ${pkgs.lumina.lumina}/bin/start-lumina-desktop
'';
};
environment.systemPackages = [
pkgs.fluxbox
pkgs.libsForQt5.kwindowsystem
pkgs.lumina
pkgs.numlockx
pkgs.qt5.qtsvg
pkgs.xscreensaver
];
environment.systemPackages =
pkgs.lumina.preRequisitePackages ++
pkgs.lumina.corePackages;
# Link some extra directories in /run/current-system/software/share
environment.pathsToLink = [

View File

@ -19,6 +19,7 @@ in
./herbstluftwm.nix
./i3.nix
./jwm.nix
./leftwm.nix
./metacity.nix
./mwm.nix
./openbox.nix

View File

@ -0,0 +1,25 @@
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.services.xserver.windowManager.leftwm;
in
{
###### interface
options = {
services.xserver.windowManager.leftwm.enable = mkEnableOption "leftwm";
};
###### implementation
config = mkIf cfg.enable {
services.xserver.windowManager.session = singleton {
name = "leftwm";
start = ''
${pkgs.leftwm}/bin/leftwm &
waitPID=$!
'';
};
environment.systemPackages = [ pkgs.leftwm ];
};
}

View File

@ -12,6 +12,7 @@ in
fileSystems."/" = {
fsType = "ext4";
device = "/dev/disk/by-label/nixos";
autoResize = true;
};

View File

@ -0,0 +1,78 @@
{ stdenv, lib, makeWrapper, fetchurl, unzip, glib, systemd, nss, nspr, gtk3-x11, gnome2,
atk, cairo, gdk_pixbuf, xorg, xorg_sys_opengl, utillinux, alsaLib, dbus, at-spi2-atk,
cups, vivaldi-ffmpeg-codecs, libpulseaudio }:
stdenv.mkDerivation rec {
pname = "exodus";
version = "19.5.24";
src = fetchurl {
url = "https://exodusbin.azureedge.net/releases/${pname}-linux-x64-${version}.zip";
sha256 = "1yx296i525qmpqh8f2vax7igffg826nr8cyq1l0if35374bdsqdw";
};
sourceRoot = ".";
unpackCmd = ''
${unzip}/bin/unzip "$src" -x "Exodus*/lib*so"
'';
installPhase = ''
mkdir -p $out/bin $out/share/applications
cd Exodus-linux-x64
cp -r . $out
ln -s $out/Exodus $out/bin/Exodus
ln -s $out/exodus.desktop $out/share/applications
substituteInPlace $out/share/applications/exodus.desktop \
--replace 'Exec=bash -c "cd `dirname %k` && ./Exodus"' "Exec=Exodus"
'';
dontPatchELF = true;
dontBuild = true;
preFixup = let
libPath = lib.makeLibraryPath [
glib
nss
nspr
gtk3-x11
gnome2.pango
atk
cairo
gdk_pixbuf
xorg.libX11
xorg.libxcb
xorg.libXcomposite
xorg.libXcursor
xorg.libXdamage
xorg.libXext
xorg.libXfixes
xorg.libXi
xorg.libXrender
xorg.libXtst
xorg_sys_opengl
utillinux
xorg.libXrandr
xorg.libXScrnSaver
alsaLib
dbus.lib
at-spi2-atk
cups.lib
libpulseaudio
systemd
vivaldi-ffmpeg-codecs
];
in ''
patchelf \
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
--set-rpath "${libPath}" \
$out/Exodus
'';
meta = with stdenv.lib; {
homepage = "https://www.exodus.io/";
description = "Top-rated cryptocurrency wallet with Trezor integration and built-in Exchange";
license = licenses.unfree;
platforms = platforms.linux;
maintainers = [ maintainers.mmahut ];
};
}

View File

@ -55,7 +55,7 @@ let
cp -r . $out
wrapProgram $out/bin/studio.sh \
--set ANDROID_EMULATOR_USE_SYSTEM_LIBS 1 \
--set PATH "${stdenv.lib.makeBinPath [
--prefix PATH : "${stdenv.lib.makeBinPath [
# Checked in studio.sh
coreutils

View File

@ -12,12 +12,16 @@ let
build = "183.5522156";
sha256Hash = "0y4l9d1yrvv1csx6vl4jnqgqy96y44rl6p8hcxrnbvrg61iqnj30";
};
betaVersion = latestVersion;
latestVersion = { # canary & dev
betaVersion = {
version = "3.5.0.14"; # "Android Studio 3.5 Beta 2"
build = "191.5549111";
sha256Hash = "1zy2x0m1nsx3yy64cp1jvgb9aqkribwm64mv50g9355sdz7qjhcf";
};
latestVersion = { # canary & dev
version = "3.6.0.1"; # "Android Studio 3.6 Canary 1"
build = "191.5595896";
sha256Hash = "1nd0xmq1aplznxbsnmzgszbblj6vdyhir708mks5ss6achn21xxc";
};
in rec {
# Attributes are named by their corresponding release channels

View File

@ -250,12 +250,12 @@ in
clion = buildClion rec {
name = "clion-${version}";
version = "2019.1.2"; /* updated by script */
version = "2019.1.3"; /* updated by script */
description = "C/C++ IDE. New. Intelligent. Cross-platform";
license = stdenv.lib.licenses.unfree;
src = fetchurl {
url = "https://download.jetbrains.com/cpp/CLion-${version}.tar.gz";
sha256 = "0x4fmbarckw60issrwk3cd65x5xjkxwrw4xq1qgfzmxfqhzbzvz8"; /* updated by script */
sha256 = "04ykwylg2h5l28h7wb7v41nslb82fvcm6p4d6f9k8aw3zhkaalv4"; /* updated by script */
};
wmClass = "jetbrains-clion";
update-channel = "CLion RELEASE"; # channel's id as in http://www.jetbrains.com/updates/updates.xml
@ -263,12 +263,12 @@ in
datagrip = buildDataGrip rec {
name = "datagrip-${version}";
version = "2019.1.2"; /* updated by script */
version = "2019.1.3"; /* updated by script */
description = "Your Swiss Army Knife for Databases and SQL";
license = stdenv.lib.licenses.unfree;
src = fetchurl {
url = "https://download.jetbrains.com/datagrip/${name}.tar.gz";
sha256 = "0157ccc94pwk4a8r1pvvjzd0g4liqqns6b0cmimfjhxsh6bnarww"; /* updated by script */
sha256 = "0syp0y4j40j72gql67g6r02n6kndsrz4nmh55ac5g9xs7s4rd5vq"; /* updated by script */
};
wmClass = "jetbrains-datagrip";
update-channel = "DataGrip RELEASE";
@ -276,12 +276,12 @@ in
goland = buildGoland rec {
name = "goland-${version}";
version = "2019.1.1"; /* updated by script */
version = "2019.1.2"; /* updated by script */
description = "Up and Coming Go IDE";
license = stdenv.lib.licenses.unfree;
src = fetchurl {
url = "https://download.jetbrains.com/go/${name}.tar.gz";
sha256 = "0b8msq0raczm657rhbyqi702zv4zs66yd6dcm7s0l54hnas5ia9r"; /* updated by script */
sha256 = "162mkjmbznxwn7z1zv3x4kik8wx0fvavcdfdmnn9pads5zg2s4b3"; /* updated by script */
};
wmClass = "jetbrains-goland";
update-channel = "GoLand RELEASE";
@ -289,12 +289,12 @@ in
idea-community = buildIdea rec {
name = "idea-community-${version}";
version = "2019.1.1"; /* updated by script */
version = "2019.1.2"; /* updated by script */
description = "Integrated Development Environment (IDE) by Jetbrains, community edition";
license = stdenv.lib.licenses.asl20;
src = fetchurl {
url = "https://download.jetbrains.com/idea/ideaIC-${version}.tar.gz";
sha256 = "0xbdn1q0a2ksb7z26n2l889m6z0lh3b45clya7rdfl4jv2gkiaaq"; /* updated by script */
sha256 = "01mlnjs7ak7xv9zk3v9r99chrcnw10qkv49gsydsm6a0wqac29xg"; /* updated by script */
};
wmClass = "jetbrains-idea-ce";
update-channel = "IntelliJ IDEA RELEASE";
@ -302,12 +302,12 @@ in
idea-ultimate = buildIdea rec {
name = "idea-ultimate-${version}";
version = "2019.1.1"; /* updated by script */
version = "2019.1.2"; /* updated by script */
description = "Integrated Development Environment (IDE) by Jetbrains, requires paid license";
license = stdenv.lib.licenses.unfree;
src = fetchurl {
url = "https://download.jetbrains.com/idea/ideaIU-${version}-no-jbr.tar.gz";
sha256 = "1pglvklbj4w6pmc7ffbjwwfqh7fad54yfx87m9plqk80rmpjzxfi"; /* updated by script */
sha256 = "09c8135rm45k7yyqadnf715i8k2jllqc1p5jdh6cnb29fwmyk5m5"; /* updated by script */
};
wmClass = "jetbrains-idea";
update-channel = "IntelliJ IDEA RELEASE";
@ -315,12 +315,12 @@ in
phpstorm = buildPhpStorm rec {
name = "phpstorm-${version}";
version = "2019.1.1"; /* updated by script */
version = "2019.1.2"; /* updated by script */
description = "Professional IDE for Web and PHP developers";
license = stdenv.lib.licenses.unfree;
src = fetchurl {
url = "https://download.jetbrains.com/webide/PhpStorm-${version}.tar.gz";
sha256 = "100whawwj1kiq870dsmkx33qv5ygjpr9977jkbavhqjnc1zhwl1r"; /* updated by script */
sha256 = "1mc7xma1ybp0h1654p10vgp84fnsgvwsvprm86pnmfgks8307860"; /* updated by script */
};
wmClass = "jetbrains-phpstorm";
update-channel = "PhpStorm RELEASE";
@ -328,12 +328,12 @@ in
pycharm-community = buildPycharm rec {
name = "pycharm-community-${version}";
version = "2019.1.1"; /* updated by script */
version = "2019.1.2"; /* updated by script */
description = "PyCharm Community Edition";
license = stdenv.lib.licenses.asl20;
src = fetchurl {
url = "https://download.jetbrains.com/python/${name}.tar.gz";
sha256 = "1zz579kmskvgsjv2lriglxkdlx33mmfv2liw1b9iilspga59izld"; /* updated by script */
sha256 = "05axjd2b2648sxs93d84va90373i8nma541c619xvb967kx1gzdh"; /* updated by script */
};
wmClass = "jetbrains-pycharm-ce";
update-channel = "PyCharm RELEASE";
@ -341,12 +341,12 @@ in
pycharm-professional = buildPycharm rec {
name = "pycharm-professional-${version}";
version = "2019.1.1"; /* updated by script */
version = "2019.1.2"; /* updated by script */
description = "PyCharm Professional Edition";
license = stdenv.lib.licenses.unfree;
src = fetchurl {
url = "https://download.jetbrains.com/python/${name}.tar.gz";
sha256 = "0hcij77j4zb1y1vls5nvxq3lmqrbppm3ml0p9nagbjipy2rmp838"; /* updated by script */
sha256 = "1s9llgjxdg99fql62kx6skpd545xqmrxwpbg19mjrjlz6pm71z3r"; /* updated by script */
};
wmClass = "jetbrains-pycharm";
update-channel = "PyCharm RELEASE";
@ -367,12 +367,12 @@ in
ruby-mine = buildRubyMine rec {
name = "ruby-mine-${version}";
version = "2019.1.1"; /* updated by script */
version = "2019.1.2"; /* updated by script */
description = "The Most Intelligent Ruby and Rails IDE";
license = stdenv.lib.licenses.unfree;
src = fetchurl {
url = "https://download.jetbrains.com/ruby/RubyMine-${version}.tar.gz";
sha256 = "0asg0x8xcjyydy0p1fdlhpcwfckdf9719460pv5zwc7yfd8z61yd"; /* updated by script */
sha256 = "1zhci8nkywv66bwc6hbyh4h3x61qhv2fbmfb5gkw9znkk1qa0q6v"; /* updated by script */
};
wmClass = "jetbrains-rubymine";
update-channel = "RubyMine RELEASE";
@ -380,12 +380,12 @@ in
webstorm = buildWebStorm rec {
name = "webstorm-${version}";
version = "2019.1.1"; /* updated by script */
version = "2019.1.2"; /* updated by script */
description = "Professional IDE for Web and JavaScript development";
license = stdenv.lib.licenses.unfree;
src = fetchurl {
url = "https://download.jetbrains.com/webstorm/WebStorm-${version}.tar.gz";
sha256 = "05lrsjk45l4xqjyinsqlnfr36qnv1nrgg2sskgi0bfjbdrfv9xrv"; /* updated by script */
sha256 = "198rbvhqjaix6qw36rlfafbv5aj0i6zr93adzgkilrn2l9v1jf07"; /* updated by script */
};
wmClass = "jetbrains-webstorm";
update-channel = "WebStorm RELEASE";

View File

@ -10,12 +10,12 @@ let
[ qscintilla-qt5 gdal jinja2 numpy psycopg2
chardet dateutil pyyaml pytz requests urllib3 pygments pyqt5 sip owslib six ];
in stdenv.mkDerivation rec {
version = "3.4.7";
version = "3.4.8";
name = "qgis-unwrapped-${version}";
src = fetchurl {
url = "http://qgis.org/downloads/qgis-${version}.tar.bz2";
sha256 = "15w2cb5ac0n3g3jbnbk6qyqs7kx3y64zbyvcsw09p0dn9rnw4hdr";
sha256 = "13dy9y7ipv25x3k31njhjljdav36xay6s82g6ywaqf1xxh3s567w";
};
passthru = {

View File

@ -1,5 +1,6 @@
{ stdenv, fetchurl, pkgconfig, autoconf, automake, gettext, intltool
, gtk3, lcms2, exiv2, libchamplain, clutter-gtk, ffmpegthumbnailer, fbida
, wrapGAppsHook
}:
stdenv.mkDerivation rec {
@ -16,7 +17,9 @@ stdenv.mkDerivation rec {
preConfigure = "./autogen.sh";
nativeBuildInputs = [ pkgconfig autoconf automake gettext intltool ];
nativeBuildInputs = [ pkgconfig autoconf automake gettext intltool
wrapGAppsHook
];
buildInputs = [
gtk3 lcms2 exiv2 libchamplain clutter-gtk ffmpegthumbnailer fbida
];

View File

@ -21,14 +21,14 @@
with python3Packages;
buildPythonApplication rec {
pname = "kitty";
version = "0.13.3";
version = "0.14.0";
format = "other";
src = fetchFromGitHub {
owner = "kovidgoyal";
repo = "kitty";
rev = "v${version}";
sha256 = "1y0vd75j8g61jdj8miml79w5ri3pqli5rv9iq6zdrxvzfa4b2rmb";
sha256 = "122573l7xirs9dsi5p8gra47qpgxb3vahqp2r0c043pgz4i22v5z";
};
buildInputs = [
@ -67,18 +67,6 @@ buildPythonApplication rec {
libstartup_notification = "${libstartup_notification}/lib/libstartup-notification-1.so";
})
] ++ stdenv.lib.optionals stdenv.isDarwin [
(fetchpatch {
name = "macos-symlink-1";
url = https://github.com/kovidgoyal/kitty/commit/bdeec612667f6976109247fe1750b10dda9c24c0.patch;
sha256 = "1d18x260w059qag80kgb2cgi2h4rricvqhwpbrw79s8yxzs7jhxk";
})
(fetchpatch {
# fixup of previous patch
name = "macos-symlink-2";
url = https://github.com/kovidgoyal/kitty/commit/af2c9a49b1ad31e94242295d88598591623fbf11.patch;
sha256 = "0k3dmgbvmh66j8k3h8dw6la6ma6f20fng6jjypy982kxvracsnl5";
})
./macos-10.11.patch
./no-lto.patch
./no-werror.patch
./png2icns.patch

View File

@ -12,15 +12,15 @@
--- a/docs/Makefile
+++ b/docs/Makefile
@@ -3,7 +3,7 @@
# Patching is needed here for the following reasons:
# * `sphinx-build` in nixpkgs is not a Python file but a wrapper shell script
# Patching is needed here for the following reason:
# * importing the `constants` package from Kitty has a side effect that it
# creates the user configuration directory. This package gets imported
# while sphinx scans the code for documentation strings.
#
# You can set these variables from the command line.
SPHINXOPTS = -T $(FAIL_WARN)
-SPHINXBUILD = python3 .. +launch :sphinx-build
SPHINXOPTS = -j auto -T $(FAIL_WARN)
-SPHINXBUILD = sphinx-build
+SPHINXBUILD = PYTHONPATH=${PYTHONPATH}:.. HOME=${TMPDIR}/kitty-build-home sphinx-build
SPHINXPROJ = kitty
SOURCEDIR = .

View File

@ -1,116 +0,0 @@
commit 749772b8b8179eb3b71e542fd9ed5621feb578f5
Author: Matthew Glazar <strager.nds@gmail.com>
Date: Thu Feb 28 22:01:32 2019 -0800
Support macOS 10.11
Allow Kitty to run on macOS 10.11 El Capitan.
diff --git a/glfw/cocoa_init.m b/glfw/cocoa_init.m
index 1e719d2e..05a680e4 100644
--- a/glfw/cocoa_init.m
+++ b/glfw/cocoa_init.m
@@ -30,6 +30,10 @@
#define NSEventMaskKeyUp NSKeyUpMask
#define NSEventMaskKeyDown NSKeyDownMask
#define NSEventModifierFlagCommand NSCommandKeyMask
+ #define NSEventModifierFlagControl NSControlKeyMask
+ #define NSEventModifierFlagDeviceIndependentFlagsMask NSDeviceIndependentModifierFlagsMask
+ #define NSEventModifierFlagShift NSShiftKeyMask
+ #define NSEventTypeApplicationDefined NSApplicationDefined
#endif
// Change to our application bundle's resources directory, if present
diff --git a/glfw/cocoa_window.m b/glfw/cocoa_window.m
index 1ce79b56..fd2255fc 100644
--- a/glfw/cocoa_window.m
+++ b/glfw/cocoa_window.m
@@ -41,6 +41,7 @@
#define NSWindowStyleMaskTitled NSTitledWindowMask
#define NSEventModifierFlagCommand NSCommandKeyMask
#define NSEventModifierFlagControl NSControlKeyMask
+ #define NSEventModifierFlagNumericPad NSNumericPadKeyMask
#define NSEventModifierFlagOption NSAlternateKeyMask
#define NSEventModifierFlagShift NSShiftKeyMask
#define NSEventModifierFlagCapsLock NSAlphaShiftKeyMask
diff --git a/kitty/cocoa_window.m b/kitty/cocoa_window.m
index 5e9252ba..99eb3352 100644
--- a/kitty/cocoa_window.m
+++ b/kitty/cocoa_window.m
@@ -15,6 +15,9 @@
#include <objc/runtime.h>
#if (MAC_OS_X_VERSION_MAX_ALLOWED < 101200)
+typedef NSUInteger NSWindowStyleMask;
+#define NSWindowStyleMaskBorderless NSBorderlessWindowMask
+#define NSWindowStyleMaskFullScreen NSFullScreenWindowMask
#define NSWindowStyleMaskResizable NSResizableWindowMask
#define NSEventModifierFlagOption NSAlternateKeyMask
#define NSEventModifierFlagCommand NSCommandKeyMask
diff --git a/kitty/logging.c b/kitty/logging.c
index 45c88174..1ec9f1b0 100644
--- a/kitty/logging.c
+++ b/kitty/logging.c
@@ -5,12 +5,21 @@
* Distributed under terms of the GPL3 license.
*/
+#ifdef __APPLE__
+#include <AvailabilityMacros.h>
+#endif
+#if defined(__APPLE__) && defined(MAC_OS_X_VERSION_10_12) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_12
+#define USE_APPLE_OS_LOG 1
+#else
+#define USE_APPLE_OS_LOG 0
+#endif
+
#include "data-types.h"
#include <stdlib.h>
#include <stdarg.h>
#include <time.h>
#include <sys/time.h>
-#ifdef __APPLE__
+#if USE_APPLE_OS_LOG
#include <os/log.h>
#endif
@@ -21,7 +30,7 @@ void
log_error(const char *fmt, ...) {
va_list ar;
struct timeval tv;
-#ifdef __APPLE__
+#if USE_APPLE_OS_LOG
// Apple does not provide a varargs style os_logv
char logbuf[16 * 1024] = {0};
#else
@@ -44,7 +53,7 @@ log_error(const char *fmt, ...) {
if (use_os_log) { bufprint(vsnprintf, fmt, ar); }
else vfprintf(stderr, fmt, ar);
va_end(ar);
-#ifdef __APPLE__
+#if USE_APPLE_OS_LOG
if (use_os_log) os_log(OS_LOG_DEFAULT, "%{public}s", logbuf);
#endif
if (!use_os_log) fprintf(stderr, "\n");
@@ -66,7 +75,7 @@ static PyMethodDef module_methods[] = {
bool
init_logging(PyObject *module) {
if (PyModule_AddFunctions(module, module_methods) != 0) return false;
-#ifdef __APPLE__
+#if USE_APPLE_OS_LOG
if (getenv("KITTY_LAUNCHED_BY_LAUNCH_SERVICES") != NULL) use_os_log = true;
#endif
return true;
diff --git a/setup.py b/setup.py
index f8643fce..55a96e73 100755
--- a/setup.py
+++ b/setup.py
@@ -711,7 +711,7 @@ Categories=System;TerminalEmulator;
CFBundlePackageType='APPL',
CFBundleSignature='????',
CFBundleExecutable=appname,
- LSMinimumSystemVersion='10.12.0',
+ LSMinimumSystemVersion='10.11.0',
LSRequiresNativeExecution=True,
NSAppleScriptEnabled=False,
# Needed for dark mode in Mojave when linking against older SDKs

View File

@ -1,6 +1,6 @@
--- a/setup.py
+++ b/setup.py
@@ -223,9 +223,6 @@ def init_env(
@@ -233,9 +233,6 @@ def init_env(
cppflags += shlex.split(os.environ.get('CPPFLAGS', ''))
cflags += shlex.split(os.environ.get('CFLAGS', ''))
ldflags += shlex.split(os.environ.get('LDFLAGS', ''))

View File

@ -1,9 +1,9 @@
--- a/setup.py
+++ b/setup.py
@@ -202,7 +202,7 @@ def init_env(
@@ -212,7 +212,7 @@
cflags = os.environ.get(
'OVERRIDE_CFLAGS', (
'-Wextra -Wno-missing-field-initializers -Wall -std=c11'
'-Wextra -Wno-missing-field-initializers -Wall -Wstrict-prototypes -std=c11'
- ' -pedantic-errors -Werror {} {} -fwrapv {} {} -pipe {} -fvisibility=hidden'
+ ' {} {} -fwrapv {} {} -pipe {} -fvisibility=hidden'
).format(

View File

@ -0,0 +1,178 @@
{ stdenv, pkgs, buildFHSUserEnv, makeDesktopItem, fetchFromGitHub, fetchpatch
, wrapGAppsHook, python2Packages, python3Packages }:
let
qt5Deps = with pkgs; with qt5; [ qtbase qtmultimedia ];
gnome3Deps = with pkgs; with gnome3; [ zenity gtksourceview gnome-desktop libgnome-keyring webkitgtk ];
python3Deps = with pkgs; with python3Packages; [
evdev pyyaml pyxdg pygobject3 pyqt5 dbus-python requests pillow
];
xorgDeps = with pkgs; with xorg; [
libX11 libXrender libXrandr libxcb libXmu libpthreadstubs libXext libXdmcp
libXxf86vm libXinerama libSM libXv libXaw libXi libXcursor libXcomposite
xrandr xdg_utils
];
gstDeps = with pkgs; with gst_all_1; [
gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly
gst-libav
];
deps = with pkgs; [
# Common
stdenv.cc.cc libGL libGLU_combined libsndfile libtheora libogg libvorbis
libopus libGLU libpcap libpulseaudio libao libusb libevdev libudev libgcrypt
libxml2 libusb libpng libmpeg2 libv4l libjpeg libxkbcommon libass libcdio
libjack2 libsamplerate libzip libmad libaio libcap libtiff libva libgphoto2
libxslt libtxc_dxtn libsndfile giflib zlib glib alsaLib zziplib bash dbus
keyutils zip cabextract freetype unzip coreutils readline gcc SDL SDL2 curl
graphite2 gtk2 gtk3 udev ncurses wayland libglvnd vulkan-loader
# Lutris
gobjectIntrospection gdk_pixbuf pango openssl sqlite xterm libnotify procps
# Adventure Game Studio
allegro dumb
# Desmume
lua agg soundtouch openal desktop-file-utils pangox_compat atk
# DGen // TODO: libarchive is broken
# Dolphin
bluez ffmpeg gettext portaudio wxGTK30 miniupnpc mbedtls lzo sfml gsm
wavpack gnutls-kdh orc nettle gmp pcre vulkan-loader
# DOSBox
SDL_net SDL_sound
# GOG
glib-networking
# Higan // TODO: "higan is not available for the x86_64 architecture"
# Libretro
fluidsynth hidapi mesa_noglu libdrm
# MAME
qt48 fontconfig SDL2_ttf
# Mednafen
freeglut mesa_glu
# MESS
expat
# Minecraft
nss
# Mupen64Plus
boost dash
# Osmose
qt4
# PCSX2 // TODO: "libgobject-2.0.so.0: wrong ELF class: ELFCLASS64"
# PPSSPP
glew snappy
# Redream // "redream is not available for the x86_64 architecture"
# ResidualVM
flac
# rpcs3 // TODO: "error while loading shared libraries: libz.so.1..."
llvm_4
# ScummVM
nasm sndio
# Snes9x
epoxy minizip
# Steam
steam
# Vice
bison flex
# WINE
perl which p7zip gnused gnugrep psmisc cups lcms2 mpg123 cairo unixODBC
samba4 sane-backends openldap opencl-headers ocl-icd utillinux
(wine.override { wineBuild = "wineWow"; })
# ZDOOM
soundfont-fluid bzip2 game-music-emu
] ++ qt5Deps
++ gnome3Deps
++ python3Deps
++ xorgDeps
++ gstDeps;
lutris = python3Packages.buildPythonApplication rec {
name = "lutris-original-${version}";
version = "0.5.2.1";
src = fetchFromGitHub {
owner = "lutris";
repo = "lutris";
rev = "v${version}";
sha256 = "023yqnzmnkfpq21r6ky6jzwbjxjcw1a5zqrrdl6fwwlr78fdhgpv";
};
enableParallelBuilding = true;
nativeBuildInputs = [ wrapGAppsHook ];
propagatedBuildInputs = deps;
fullPath = stdenv.lib.makeLibraryPath deps;
preConfigure = "export HOME=$PWD";
makeWrapperArgs = [
"--prefix LD_LIBRARY_PATH : ${fullPath}:$out/lib"
"--set GI_TYPELIB_PATH $GI_TYPELIB_PATH"
"--prefix XDG_DATA_DIRS : $out/share"
"--suffix XDG_DATA_DIRS : $XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH"
];
postInstall = ''
mkdir -p $out/lib
ln -sf ${pkgs.gsm}/lib/libgsm.so $out/lib/libgsm.so.1
mv $out/bin/lutris $out/bin/lutris-${version}
'';
meta = with stdenv.lib; {
homepage = "https://lutris.net";
description = "Open Source gaming platform for GNU/Linux";
license = licenses.gpl3;
maintainers = with maintainers; [ chiiruno ];
platforms = platforms.linux;
};
};
desktopItem = makeDesktopItem {
name = "Lutris";
exec = "lutris";
icon = "lutris";
comment = lutris.meta.description;
desktopName = "Lutris";
genericName = "Gaming Platform";
categories = "Network;Game;Emulator;";
startupNotify = "false";
};
in buildFHSUserEnv rec {
name = "lutris";
runScript = "lutris-${lutris.version}";
targetPkgs = pkgs: [ lutris pkgs.glxinfo pkgs.pciutils ];
passthru.lutris = lutris;
extraInstallCommands = ''
mkdir -p $out/share
cp -r ${desktopItem}/share/applications $out/share
ln -sf ${lutris}/share/icons $out/share
'';
}

View File

@ -0,0 +1,35 @@
{ stdenv, lib, fetchFromGitHub, cmake, ncurses }:
stdenv.mkDerivation rec {
pname = "tmatrix";
version = "1.0";
src = fetchFromGitHub {
owner = "M4444";
repo = "TMatrix";
rev = "v${version}";
sha256 = "1g0gn4p02vjc6l8lc78wlx4xkd74ha7ybx9fvvdr6mizk0cyjili";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ ncurses ];
postInstall = ''
mkdir -p $out/share/man/man6
install -m 0644 ../tmatrix.6 $out/share/man/man6
'';
meta = with lib; {
description = "Terminal based replica of the digital rain from The Matrix";
longDescription = ''
TMatrix is a program that simulates the digital rain form The Matrix.
It's focused on being the most accurate replica of the digital rain effect
achievable on a typical terminal, while also being customizable and
performant.
'';
homepage = "https://github.com/M4444/TMatrix";
license = licenses.gpl2;
platforms = platforms.all;
maintainers = with maintainers; [ infinisil ];
};
}

View File

@ -1,5 +1,5 @@
{ stdenv, fetchFromGitHub, meson, pkgconfig, ninja
, wayland, wlroots, gtkmm3, libinput, libsigcxx, jsoncpp, fmt
, wayland, wlroots, gtkmm3, libinput, libsigcxx, jsoncpp, fmt, spdlog
, traySupport ? true, libdbusmenu-gtk3
, pulseSupport ? false, libpulseaudio
, nlSupport ? true, libnl
@ -9,13 +9,13 @@
}:
stdenv.mkDerivation rec {
name = "waybar-${version}";
version = "0.6.5";
version = "0.6.6";
src = fetchFromGitHub {
owner = "Alexays";
repo = "Waybar";
rev = version;
sha256 = "1k3ynx5ssq7ji0nlx0n7zrgrshxv5abj8fa8c5lcyxr2wxffna9z";
sha256 = "0wxd03lkgssz0vsib9qc040vfg1i6nrg7ac2c6qwficx62j2zlm1";
};
nativeBuildInputs = [
@ -23,7 +23,7 @@
];
buildInputs = with stdenv.lib;
[ wayland wlroots gtkmm3 libinput libsigcxx jsoncpp fmt ]
[ wayland wlroots gtkmm3 libinput libsigcxx jsoncpp fmt spdlog ]
++ optional traySupport libdbusmenu-gtk3
++ optional pulseSupport libpulseaudio
++ optional nlSupport libnl

View File

@ -1,21 +1,21 @@
{ buildGoPackage
{ buildGoModule
, fetchFromGitHub
, lib
}:
buildGoPackage rec {
name = "wtf-${version}";
version = "0.4.0";
goPackagePath = "github.com/senorprogrammer/wtf";
buildGoModule rec {
pname = "wtf";
version = "0.10.3";
src = fetchFromGitHub {
owner = "senorprogrammer";
repo = "wtf";
rev = "${version}";
sha256 = "1vgjqmw27baiq9brmnafic3w3hw11p5qc6ahbdxi5n5n4bx7j6vn";
owner = "wtfutil";
repo = pname;
rev = "v${version}";
sha256 = "0ffpydxlc2c9rpr6rnlqk3ca8xc4hjl2107wzcxzx9id1hw8fb40";
};
modSha256 = "0as736nnx7ci4w9gdp27g55g6dny9bh1fryz3g89gxm2sa2nlb9l";
buildFlagsArray = [ "-ldflags=" "-X main.version=${version}" ];
meta = with lib; {

View File

@ -38,6 +38,25 @@ mkChromiumDerivation (base: rec {
mkdir -vp "$logo_output_path"
cp -v "$icon_file" "$logo_output_path/$packageName.png"
done
# Install Desktop Entry
install -D chrome/installer/linux/common/desktop.template \
$out/share/applications/chromium-browser.desktop
substituteInPlace $out/share/applications/chromium-browser.desktop \
--replace "@@MENUNAME@@" "Chromium" \
--replace "@@PACKAGE@@" "chromium" \
--replace "Exec=/usr/bin/@@USR_BIN_SYMLINK_NAME@@" "Exec=chromium"
# Append more mime types to the end
sed -i '/^MimeType=/ s,$,x-scheme-handler/webcal;x-scheme-handler/mailto;x-scheme-handler/about;x-scheme-handler/unknown,' \
$out/share/applications/chromium-browser.desktop
# See https://github.com/NixOS/nixpkgs/issues/12433
sed -i \
-e '/\[Desktop Entry\]/a\' \
-e 'StartupWMClass=chromium-browser' \
$out/share/applications/chromium-browser.desktop
'';
passthru = { inherit sandboxExecutableName; };

View File

@ -45,31 +45,6 @@ in let
};
};
desktopItem = makeDesktopItem {
name = "chromium-browser";
exec = "chromium %U";
icon = "chromium";
comment = "An open source web browser from Google";
desktopName = "Chromium";
genericName = "Web browser";
mimeType = stdenv.lib.concatStringsSep ";" [
"text/html"
"text/xml"
"application/xhtml+xml"
"x-scheme-handler/http"
"x-scheme-handler/https"
"x-scheme-handler/ftp"
"x-scheme-handler/mailto"
"x-scheme-handler/webcal"
"x-scheme-handler/about"
"x-scheme-handler/unknown"
];
categories = "Network;WebBrowser";
extraEntries = ''
StartupWMClass=chromium-browser
'';
};
suffix = if channel != "stable" then "-" + channel else "";
sandboxExecutableName = chromium.browser.passthru.sandboxExecutableName;
@ -131,11 +106,10 @@ in stdenv.mkDerivation {
ln -s "$out/bin/chromium" "$out/bin/chromium-browser"
mkdir -p "$out/share/applications"
mkdir -p "$out/share"
for f in '${chromium.browser}'/share/*; do # hello emacs */
ln -s -t "$out/share/" "$f"
done
cp -v "${desktopItem}/share/applications/"* "$out/share/applications"
'';
inherit (chromium.browser) packageName;

View File

@ -1,14 +1,13 @@
Forget about X11 in fb module.
This breaks w3mimgdisplay under X11, but removes X11 dependency it in pure fb.
diff --git a/w3mimg/fb/fb_imlib2.c b/w3mimg/fb/fb_imlib2.c
index ea36637..d3d7bc3 100644
index 1a5151c..d3d7bc3 100644
--- a/w3mimg/fb/fb_imlib2.c
+++ b/w3mimg/fb/fb_imlib2.c
@@ -3,7 +3,7 @@
@@ -3,6 +3,7 @@
fb_imlib2.c 0.3 Copyright (C) 2002, hito
**************************************************************************/
-#include <X11/Xlib.h>
+#define X_DISPLAY_MISSING
#include <Imlib2.h>
#include "fb.h"

View File

@ -24,6 +24,7 @@ let
};
in
{
elasticsearch = callPackage ./elasticsearch {};
gandi = callPackage ./gandi {};
ibm = callPackage ./ibm {};
libvirt = callPackage ./libvirt {};

View File

@ -0,0 +1,29 @@
{ stdenv, fetchFromGitHub, buildGoPackage }:
buildGoPackage rec {
name = "terraform-provider-elasticsearch-${version}";
version = "0.6.0";
goPackagePath = "github.com/phillbaker/terraform-provider-elasticsearch";
# ./deps.nix was generated using the work-around described in:
# https://github.com/kamilchm/go2nix/issues/19
goDeps = ./deps.nix;
src = fetchFromGitHub {
owner = "phillbaker";
repo = "terraform-provider-elasticsearch";
rev = "v${version}";
sha256 = "04i7jwhm1mg4m8p7y6yg83j76fx0ncallzbza1g1wc5cjjbkvgs2";
};
# Terraform allow checking the provider versions, but this breaks
# if the versions are not provided via file paths.
postBuild = "mv go/bin/terraform-provider-elasticsearch{,_v${version}}";
meta = with stdenv.lib; {
description = "Terraform provider for elasticsearch";
homepage = "https://github.com/phillbaker/terraform-provider-elasticsearch";
license = licenses.mpl20;
maintainers = with maintainers; [ basvandijk ];
};
}

View File

@ -0,0 +1,75 @@
# This file was generated by https://github.com/kamilchm/go2nix v1.3.0
[
{
goPackagePath = "github.com/aws/aws-sdk-go";
fetch = {
type = "git";
url = "https://github.com/aws/aws-sdk-go";
rev = "512bdaf8bec30abd545b440447cebb57b53d3af9";
sha256 = "1j7kjk6i8vg4nwlsxjypqz3gc9j1a9x8r3bg99w1x2ap3vrh7sl8";
};
}
{
goPackagePath = "github.com/deoxxa/aws_signing_client";
fetch = {
type = "git";
url = "https://github.com/deoxxa/aws_signing_client";
rev = "c20ee106809eacdffcc81ac7cb984261f8e3067e";
sha256 = "01cw1f6hzgx1df730vdwd7vhbn7yl6zv3sr42iz4sd1dcdqwzlkq";
};
}
{
goPackagePath = "github.com/hashicorp/terraform";
fetch = {
type = "git";
url = "https://github.com/hashicorp/terraform";
rev = "dbce85d85ff0beebc660b3d1805b4ef15361af00";
sha256 = "17kd3ln1i40qb8fll5918rvgackzf1ibmr7li1p9vky4ki3iwr0l";
};
}
{
goPackagePath = "github.com/mailru/easyjson";
fetch = {
type = "git";
url = "https://github.com/mailru/easyjson";
rev = "3fdea8d05856a0c8df22ed4bc71b3219245e4485";
sha256 = "0g3crph77yhv4ipdnwqc32z4cp87ahi4ikad5kyy6q4znnxliz74";
};
}
{
goPackagePath = "github.com/olivere/elastic";
fetch = {
type = "git";
url = "https://github.com/olivere/elastic";
rev = "2a5234d20b058173aaea6835e671fc83eee777b0";
sha256 = "08r62d29m6f7d5hwb9zm5b612wbvzd9sn97nb48q174gbk8685yw";
};
}
{
goPackagePath = "github.com/pkg/errors";
fetch = {
type = "git";
url = "https://github.com/pkg/errors";
rev = "816c9085562cd7ee03e7f8188a1cfd942858cded";
sha256 = "1ws5crb7c70wdicavl6qr4g03nn6m92zd6wwp9n2ygz5c8rmxh8k";
};
}
{
goPackagePath = "gopkg.in/olivere/elastic.v5";
fetch = {
type = "git";
url = "https://gopkg.in/olivere/elastic.v5";
rev = "b708306d715bea9b983685e94ab4602cdc9f988b";
sha256 = "0ks0h0ik0aqjm8dm2imbyd1z7rfmqiwilf3bc9nnplp9hc07471y";
};
}
{
goPackagePath = "gopkg.in/olivere/elastic.v6";
fetch = {
type = "git";
url = "https://gopkg.in/olivere/elastic.v6";
rev = "e6cae211ee802eab70248a68fe2cb03b616744c9";
sha256 = "0nbf4mr31gxm4zn5w362y22mh98ckl3d0bxli4f3rwx6zw12arfg";
};
}
]

View File

@ -1,14 +1,16 @@
{ autoconf, automake, boost, cbor-diag, cddl, fetchFromGitHub, file, libpcap, libtins, libtool, lzma, openssl, pkgconfig, stdenv, tcpdump, wireshark-cli }:
{ autoconf, automake, boost, cbor-diag, cddl, fetchFromGitHub, file, libctemplate, libmaxminddb
, libpcap, libtins, libtool, lzma, openssl, pkgconfig, stdenv, tcpdump, wireshark-cli
}:
stdenv.mkDerivation rec {
name = "compactor-${version}";
version = "0.11.1";
pname = "compactor";
version = "0.12.2";
src = fetchFromGitHub {
owner = "dns-stats";
repo = "compactor";
rev = "${version}";
sha256 = "0bd82956nkpdmfj8f05z37hy7f33cd2nfdxr7s9fgz1xi5flnzjc";
repo = pname;
rev = version;
sha256 = "17p9wsslsh6ifnadvyygr0cgir4q4iirxfz9zpkpbhh76cx2qnay";
};
# cbor-diag, cddl and wireshark-cli are only used for tests.
@ -19,14 +21,16 @@ stdenv.mkDerivation rec {
openssl
libtins
lzma
libctemplate
libmaxminddb
];
patchPhase = ''
prePatch = ''
patchShebangs test-scripts/
'';
preConfigure = ''
sh autogen.sh
${stdenv.shell} autogen.sh
substituteInPlace configure \
--replace "/usr/bin/file" "${file}/bin/file"
'';
@ -35,16 +39,19 @@ stdenv.mkDerivation rec {
"--with-boost-libdir=${boost.out}/lib"
"--with-boost=${boost.dev}"
];
enableParallelBuilding = true;
doCheck = true;
preCheck = ''
substituteInPlace test-scripts/check-live-pcap.sh \
--replace "/usr/sbin/tcpdump" "${tcpdump}/bin/tcpdump"
'';
rm test-scripts/same-tshark-output.sh
''; # TODO: https://github.com/dns-stats/compactor/issues/49 (failing test)
meta = with stdenv.lib; {
description = "Tools to capture DNS traffic and record it in C-DNS files";
homepage = http://dns-stats.org/;
homepage = "http://dns-stats.org/";
changelog = "https://github.com/dns-stats/${pname}/raw/${version}/ChangeLog.txt";
license = [ licenses.boost licenses.mpl20 licenses.openssl ];
maintainers = with maintainers; [ fdns ];
platforms = stdenv.lib.platforms.unix;

View File

@ -7,7 +7,7 @@ assert lib.elem stdenv.hostPlatform.system platforms;
# Dropbox client to bootstrap installation.
# The client is self-updating, so the actual version may be newer.
let
version = "63.4.107";
version = "73.4.118";
arch = {
"x86_64-linux" = "x86_64";

View File

@ -20,11 +20,11 @@
python3.pkgs.buildPythonApplication rec {
pname = "gajim";
majorVersion = "1.1";
version = "${majorVersion}.2";
version = "${majorVersion}.3";
src = fetchurl {
url = "https://gajim.org/downloads/${majorVersion}/gajim-${version}.tar.bz2";
sha256 = "1lx03cgi58z54xb7mhs6bc715lc00w5mpysf9n3q8zgn759fm0rj";
sha256 = "0bzxwcpdd4ydh6d6mzpr0gxwhcb0x9ympk55fpvm1hcw9d28a716";
};
postPatch = ''

View File

@ -1,11 +1,11 @@
{ darkMode ? false, stdenv, fetchurl, dpkg, makeWrapper , alsaLib, atk, cairo,
cups, curl, dbus, expat, fontconfig, freetype, glib , gnome2, gtk3, gdk_pixbuf,
libappindicator-gtk3, libnotify, libxcb, nspr, nss, pango , systemd, xorg,
at-spi2-atk }:
at-spi2-atk, libuuid }:
let
version = "3.4.0";
version = "3.4.2";
rpath = stdenv.lib.makeLibraryPath [
alsaLib
@ -30,6 +30,7 @@ let
nss
stdenv.cc.cc
systemd
libuuid
xorg.libxkbfile
xorg.libX11
@ -49,7 +50,7 @@ let
if stdenv.hostPlatform.system == "x86_64-linux" then
fetchurl {
url = "https://downloads.slack-edge.com/linux_releases/slack-desktop-${version}-amd64.deb";
sha256 = "0ld53gg0dbfpi79lz2sx5br29mlhwkfcypzf3iya4cm75a33hyw5";
sha256 = "0qbj41ymckz8w1p2pazyxg7pimgn9gmpvxz4ygcm0nyivfmw2crq";
}
else
throw "Slack is not supported on ${stdenv.hostPlatform.system}";

View File

@ -0,0 +1,32 @@
{ stdenv, fetchFromGitHub
, qtbase, qtmultimedia, qtsvg, qtx11extras
, pkgconfig, cmake, gettext
}:
stdenv.mkDerivation rec {
pname = "kvirc";
version = "5.0.0";
src = fetchFromGitHub {
owner = "kvirc";
repo = "KVIrc";
rev = version;
sha256 = "1dq7v6djw0gz56rvghs4r5gfhzx4sfg60rnv6b9zprw0vlvcxbn4";
};
buildInputs = [
qtbase qtmultimedia qtsvg qtx11extras
];
nativeBuildInputs = [
pkgconfig cmake gettext
];
meta = with stdenv.lib; {
description = "Advanced IRC Client";
homepage = "http://www.kvirc.net/";
license = licenses.gpl2;
maintainers = [ maintainers.suhr ];
platforms = platforms.linux;
};
}

View File

@ -27,11 +27,11 @@ with stdenv.lib;
stdenv.mkDerivation rec {
name = "mutt-${version}";
version = "1.11.4";
version = "1.12.0";
src = fetchurl {
url = "http://ftp.mutt.org/pub/mutt/${name}.tar.gz";
sha256 = "0098pr4anmq2a0id8wfi2vci3cgcfwf9k4q411w22xn8lrz3aldn";
sha256 = "13zr2fpql33sdbsjsiaa952js5bvphc1x4lqsj36qyzdhj3l84na";
};
patches = optional smimeSupport (fetchpatch {

View File

@ -0,0 +1,46 @@
{
stdenv,
appimage-run,
fetchurl,
runtimeShell,
gsettings-desktop-schemas,
gtk3,
gobject-introspection,
wrapGAppsHook,
}:
stdenv.mkDerivation rec {
# latest version that runs without errors
# https://github.com/ssbc/patchwork/issues/972
version = "3.11.4";
pname = "patchwork";
src = fetchurl {
url = "https://github.com/ssbc/patchwork/releases/download/v${version}/Patchwork-${version}-linux-x86_64.AppImage";
sha256 = "1blsprpkvm0ws9b96gb36f0rbf8f5jgmw4x6dsb1kswr4ysf591s";
};
nativeBuildInputs = [ wrapGAppsHook ];
buildInputs = [ appimage-run gtk3 gsettings-desktop-schemas gobject-introspection ];
unpackPhase = ":";
installPhase = ''
mkdir -p $out/{bin,share}
cp $src $out/share/${pname}
echo "#!${runtimeShell}" > $out/bin/${pname}
echo "${appimage-run}/bin/appimage-run $out/share/${pname}" >> $out/bin/${pname}
chmod +x $out/bin/${pname} $out/share/${pname}
'';
meta = with stdenv.lib; {
description = "A decentralized messaging and sharing app built on top of Secure Scuttlebutt (SSB).";
longDescription = ''
sea-slang for gossip - a scuttlebutt is basically a watercooler on a ship.
'';
homepage = https://www.scuttlebutt.nz/;
license = licenses.agpl3;
maintainers = with maintainers; [ thedavidmeister ];
platforms = [ "x86_64-linux" ];
};
}

View File

@ -57,6 +57,26 @@ in rec {
};
};
clientaway = zncDerivation rec {
name = "znc-clientaway-${version}";
version = "git-2017-04-28";
module_name = "clientaway";
src = fetchFromGitHub {
owner = "kylef";
repo = "znc-contrib";
rev = "f6724a4a3b16b050088adde0cbeed74f189e5044";
sha256 = "0ikd3dzjjlr0gs0ikqfk50msm6mij99ln2rjzqavh58iwzr7n5r8";
};
meta = with stdenv.lib; {
description = "ZNC clientaway module";
homepage = https://github.com/kylef/znc-contrib;
license = licenses.gpl2;
maintainers = with maintainers; [ kiwi ];
};
};
fish = zncDerivation rec {
name = "znc-fish-${version}";
version = "git-2014-10-10";
@ -77,6 +97,46 @@ in rec {
};
};
ignore = zncDerivation rec {
name = "znc-ignore-${version}";
version = "git-2017-04-28";
module_name = "ignore";
src = fetchFromGitHub {
owner = "kylef";
repo = "znc-contrib";
rev = "f6724a4a3b16b050088adde0cbeed74f189e5044";
sha256 = "0ikd3dzjjlr0gs0ikqfk50msm6mij99ln2rjzqavh58iwzr7n5r8";
};
meta = with stdenv.lib; {
description = "ZNC ignore module";
homepage = https://github.com/kylef/znc-contrib;
license = licenses.gpl2;
maintainers = with maintainers; [ kiwi ];
};
};
palaver = zncDerivation rec {
name = "znc-palaver-${version}";
version = "2018-09-18";
module_name = "palaver";
src = fetchFromGitHub {
owner = "cocodelabs";
repo = "znc-palaver";
rev = "c70e8112686f917d39197d582db36c3ea37a4cb6";
sha256 = "1gjr8yqgpkpcc18rf0zfgil3rcd1ihqk0q9f8rwbfvs5381h3c58";
};
meta = with stdenv.lib; {
description = "Palaver ZNC module";
homepage = "https://github.com/cocodelabs/znc-palaver";
license = licenses.mit;
maintainers = with maintainers; [ kiwi ];
};
};
playback = zncDerivation rec {
name = "znc-playback-${version}";
version = "git-2015-08-04";

View File

@ -1,12 +1,12 @@
{ stdenv, fetchFromGitHub, cmake, pkgconfig, boost, gnuradio
, makeWrapper, cppunit, gnuradio-osmosdr
, makeWrapper, cppunit, gr-osmosdr
, pythonSupport ? true, python, swig
}:
assert pythonSupport -> python != null && swig != null;
stdenv.mkDerivation rec {
name = "gnuradio-ais-${version}";
name = "gr-ais-${version}";
version = "2015-12-20";
src = fetchFromGitHub {
@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig ];
buildInputs = [
cmake boost gnuradio makeWrapper cppunit gnuradio-osmosdr
cmake boost gnuradio makeWrapper cppunit gr-osmosdr
] ++ stdenv.lib.optionals pythonSupport [ python swig ];
postInstall = ''

View File

@ -1,12 +1,12 @@
{ stdenv, fetchFromGitHub, cmake, pkgconfig, boost, gnuradio
, makeWrapper, cppunit, libosmocore, gnuradio-osmosdr
, makeWrapper, cppunit, libosmocore, gr-osmosdr
, pythonSupport ? true, python, swig
}:
assert pythonSupport -> python != null && swig != null;
stdenv.mkDerivation rec {
name = "gnuradio-gsm-${version}";
name = "gr-gsm-${version}";
version = "2016-08-25";
src = fetchFromGitHub {
@ -18,12 +18,12 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig ];
buildInputs = [
cmake boost gnuradio makeWrapper cppunit libosmocore gnuradio-osmosdr
cmake boost gnuradio makeWrapper cppunit libosmocore gr-osmosdr
] ++ stdenv.lib.optionals pythonSupport [ python swig ];
postInstall = ''
for prog in "$out"/bin/*; do
wrapProgram "$prog" --set PYTHONPATH $PYTHONPATH:${gnuradio-osmosdr}/lib/${python.libPrefix}/site-packages:$(toPythonPath "$out")
wrapProgram "$prog" --set PYTHONPATH $PYTHONPATH:${gr-osmosdr}/lib/${python.libPrefix}/site-packages:$(toPythonPath "$out")
done
'';

View File

@ -8,7 +8,7 @@ let
version = "2.0.0";
in stdenv.mkDerivation rec {
name = "gnuradio-limesdr-${version}";
name = "gr-limesdr-${version}";
src = fetchFromGitHub {
owner = "myriadrf";

View File

@ -6,7 +6,7 @@
assert pythonSupport -> python != null && swig != null;
stdenv.mkDerivation rec {
name = "gnuradio-nacl-${version}";
name = "gr-nacl-${version}";
version = "2017-04-10";
src = fetchFromGitHub {

View File

@ -13,7 +13,7 @@
assert pythonSupport -> python != null && swig != null;
stdenv.mkDerivation rec {
name = "gnuradio-osmosdr-${version}";
name = "gr-osmosdr-${version}";
version = "2018-08-15";
src = fetchgit {

View File

@ -5,7 +5,7 @@
assert pythonSupport -> python != null && swig != null;
stdenv.mkDerivation rec {
name = "gnuradio-rds-${version}";
name = "gr-rds-${version}";
version = "1.1.0";
src = fetchFromGitHub {

View File

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, cmake, qtbase, qtsvg, gnuradio, boost, gnuradio-osmosdr
{ stdenv, fetchFromGitHub, cmake, qtbase, qtsvg, gnuradio, boost, gr-osmosdr
# drivers (optional):
, rtl-sdr, hackrf
, pulseaudioSupport ? true, libpulseaudio
@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake ];
buildInputs = [
qtbase qtsvg gnuradio boost gnuradio-osmosdr rtl-sdr hackrf
qtbase qtsvg gnuradio boost gr-osmosdr rtl-sdr hackrf
] ++ stdenv.lib.optionals pulseaudioSupport [ libpulseaudio ];
enableParallelBuilding = true;

View File

@ -1,6 +1,6 @@
{ stdenv, fetchFromGitHub, alsaLib, boost
, qt4, libpulseaudio, codec2, libconfig
, gnuradio, gnuradio-osmosdr, gsm
, gnuradio, gr-osmosdr, gsm
, libopus, libjpeg, protobuf, qwt, speex
} :
@ -39,7 +39,7 @@ in stdenv.mkDerivation {
libconfig
gsm
gnuradio
gnuradio-osmosdr
gr-osmosdr
libopus
libjpeg
protobuf

View File

@ -21,8 +21,8 @@ let
buildType = "release";
# Remember to change the extpackRev and version in extpack.nix and
# guest-additions/default.nix as well.
main = "0lp584a350ya1zn03lhgmdbi91yp8yfja9hlg2jz1xyfj2dc869l";
version = "6.0.6";
main = "11sxx2zaablkvjiw0i5g5i5ibak6bsq6fldrcxwbcby6318shnhv";
version = "6.0.8";
in stdenv.mkDerivation {
name = "virtualbox-${version}";
@ -76,12 +76,6 @@ in stdenv.mkDerivation {
optional enableHardening ./hardened.patch
++ [
./qtx11extras.patch
# https://www.virtualbox.org/ticket/18620
./fix_kbuild.patch
# https://www.virtualbox.org/ticket/18621
./fix_module_makefile_sed.patch
# https://forums.virtualbox.org/viewtopic.php?f=7&t=92815
./fix_printk_test.patch
];
postPatch = ''

View File

@ -2,7 +2,7 @@
with lib;
let version = "6.0.6";
let version = "6.0.8";
in
fetchurl rec {
name = "Oracle_VM_VirtualBox_Extension_Pack-${version}.vbox-extpack";
@ -10,7 +10,7 @@ fetchurl rec {
sha256 =
# Manually sha256sum the extensionPack file, must be hex!
# Thus do not use `nix-prefetch-url` but instead plain old `sha256sum`.
let value = "794f023a186bd217c29c3d30bd1434b6e9de3b242c7bf740d06d10f2d3d981c6";
let value = "6d89127c7f043fa96592da96ca87ac5ee9a7afd347d788380f91b695b67d7954";
in assert (builtins.stringLength value) == 64; value;
meta = {

View File

@ -1,12 +0,0 @@
diff -urN a/src/VBox/HostDrivers/VBoxNetAdp/linux/Makefile b/src/VBox/HostDrivers/VBoxNetAdp/linux/Makefile
--- a/src/VBox/HostDrivers/VBoxNetAdp/linux/Makefile
+++ b/src/VBox/HostDrivers/VBoxNetAdp/linux/Makefile
@@ -58,7 +58,7 @@
RT_WITH_VBOX \
VBOX_WITH_HARDENING \
VBOX_WITH_64_BITS_GUESTS # <-- must be consistent with Config.kmk!
-VBOXMOD_CFLAGS = -include $(KBUILD_EXTMOD)/include/VBox/SUPDrvMangling.h -fno-pie -Wno-declaration-after-statement
+VBOXMOD_CFLAGS = -include $(VBOXNETADPT_DIR)include/VBox/SUPDrvMangling.h -fno-pie -Wno-declaration-after-statement
include $(obj)/Makefile-footer.gmk

View File

@ -1,36 +0,0 @@
diff -urN VirtualBox-6.0.6/src/VBox/HostDrivers/VBoxNetAdp/Makefile.kmk VirtualBox-6.0.6.new/src/VBox/HostDrivers/VBoxNetAdp/Makefile.kmk
--- VirtualBox-6.0.6/src/VBox/HostDrivers/VBoxNetAdp/Makefile.kmk 2019-04-16 12:16:38.000000000 +0200
+++ VirtualBox-6.0.6.new/src/VBox/HostDrivers/VBoxNetAdp/Makefile.kmk 2019-05-04 15:19:14.545497602 +0200
@@ -175,7 +175,7 @@
| $$(dir $$@)
$(QUIET)$(RM) -f -- $@
ifndef VBOX_WITH_HARDENING
- $(QUIET)$(SED) -e "s;-DVBOX_WITH_HARDENING;;g" --output $@ $<
+ $(QUIET)$(SED) -e "s;VBOX_WITH_HARDENING;;g" --output $@ $<
else
$(QUIET)$(CP) -f $< $@
endif
diff -urN VirtualBox-6.0.6/src/VBox/HostDrivers/VBoxNetFlt/Makefile.kmk VirtualBox-6.0.6.new/src/VBox/HostDrivers/VBoxNetFlt/Makefile.kmk
--- VirtualBox-6.0.6/src/VBox/HostDrivers/VBoxNetFlt/Makefile.kmk 2019-04-16 12:16:39.000000000 +0200
+++ VirtualBox-6.0.6.new/src/VBox/HostDrivers/VBoxNetFlt/Makefile.kmk 2019-05-04 15:19:13.809493324 +0200
@@ -525,7 +525,7 @@
| $$(dir $$@)
$(QUIET)$(RM) -f -- $@
ifndef VBOX_WITH_HARDENING
- $(QUIET)$(SED) -e "s;-DVBOX_WITH_HARDENING;;g" --output $@ $<
+ $(QUIET)$(SED) -e "s;VBOX_WITH_HARDENING;;g" --output $@ $<
else
$(QUIET)$(CP) -f $< $@
endif
diff -urN VirtualBox-6.0.6/src/VBox/HostDrivers/VBoxPci/Makefile.kmk VirtualBox-6.0.6.new/src/VBox/HostDrivers/VBoxPci/Makefile.kmk
--- VirtualBox-6.0.6/src/VBox/HostDrivers/VBoxPci/Makefile.kmk 2019-04-16 12:16:40.000000000 +0200
+++ VirtualBox-6.0.6.new/src/VBox/HostDrivers/VBoxPci/Makefile.kmk 2019-05-04 15:42:12.029664987 +0200
@@ -67,7 +67,7 @@
| $$(dir $$@)
$(QUIET)$(RM) -f -- $@
ifndef VBOX_WITH_HARDENING
- $(QUIET)$(SED) -e "s;-DVBOX_WITH_HARDENING;;g" --output $@ $<
+ $(QUIET)$(SED) -e "s;VBOX_WITH_HARDENING;;g" --output $@ $<
else
$(QUIET)$(CP) -f $< $@
endif

View File

@ -1,14 +0,0 @@
diff -urN VirtualBox-6.0.6/src/VBox/HostDrivers/Support/linux/SUPDrv-linux.c VirtualBox-6.0.6.new/src/VBox/HostDrivers/Support/linux/SUPDrv-linux.c
--- VirtualBox-6.0.6/src/VBox/HostDrivers/Support/linux/SUPDrv-linux.c 2019-04-16 12:16:37.000000000 +0200
+++ VirtualBox-6.0.6.new/src/VBox/HostDrivers/Support/linux/SUPDrv-linux.c 2019-05-04 15:59:44.439905223 +0200
@@ -426,10 +426,8 @@
int rc;
PSUPDRVSESSION pSession;
Log(("VBoxDrvLinuxCreate: pFilp=%p pid=%d/%d %s\n", pFilp, RTProcSelf(), current->pid, current->comm));
- printk("test1\n");
#ifdef VBOX_WITH_HARDENING
- printk("test2\n");
/*
* Only root is allowed to access the unrestricted device, enforce it!
*/

View File

@ -19,7 +19,7 @@ stdenv.mkDerivation {
src = fetchurl {
url = "http://download.virtualbox.org/virtualbox/${version}/VBoxGuestAdditions_${version}.iso";
sha256 = "1srcsf9264l5yxbq2x83z66j38blbfrywq5lkzwb5kih6sv548c3";
sha256 = "1njgxb18r8a1m8fk2b32mmnbwciip3wcxwyhza5k73bx4q2sifac";
};
KERN_DIR = "${kernel.dev}/lib/modules/${kernel.modDirVersion}/build";
@ -107,11 +107,17 @@ stdenv.mkDerivation {
wrapProgram $out/bin/VBoxClient-all \
--prefix PATH : "${which}/bin"
# Install OpenGL libraries
mkdir -p $out/lib
cp -v lib/VBoxOGL*.so $out/lib
mkdir -p $out/lib/dri
ln -s $out/lib/VBoxOGL.so $out/lib/dri/vboxvideo_dri.so
# Don't install VBoxOGL for now
# It seems to be broken upstream too, and fixing it is far down the priority list:
# https://www.virtualbox.org/pipermail/vbox-dev/2017-June/014561.html
# Additionally, 3d support seems to rely on VBoxOGL.so being symlinked from
# libGL.so (which we can't), and Oracle doesn't plan on supporting libglvnd
# either. (#18457)
## Install OpenGL libraries
#mkdir -p $out/lib
#cp -v lib/VBoxOGL*.so $out/lib
#mkdir -p $out/lib/dri
#ln -s $out/lib/VBoxOGL.so $out/lib/dri/vboxvideo_dri.so
# Install desktop file
mkdir -p $out/share/autostart

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,38 @@
{ stdenv, fetchFromGitHub, rustPlatform, libX11, libXinerama, makeWrapper }:
let
rpath = stdenv.lib.makeLibraryPath [ libXinerama libX11 ];
in
rustPlatform.buildRustPackage rec {
pname = "leftwm";
version = "0.1.9";
src = fetchFromGitHub {
owner = "leftwm";
repo = "leftwm";
rev = "${version}";
sha256 = "0ji7m2npkdg27gm33b19rxr50km0gm1h9czi1f425vxq65mlkl4y";
};
buildInputs = [ makeWrapper libX11 libXinerama ];
postInstall = ''
wrapProgram $out/bin/leftwm --prefix LD_LIBRARY_PATH : "${rpath}"
wrapProgram $out/bin/leftwm-state --prefix LD_LIBRARY_PATH : "${rpath}"
wrapProgram $out/bin/leftwm-worker --prefix LD_LIBRARY_PATH : "${rpath}"
'';
cargoSha256 = "0mpvfix7bvc84vanha474l4gaq97ac1zy5l77z83m9jg0246yxd6";
# https://github.com/leftwm/leftwm/pull/37
cargoPatches = [ ./cargo-lock.patch ];
meta = {
description = "Leftwm - A tiling window manager for the adventurer";
homepage = https://github.com/leftwm/leftwm;
license = stdenv.lib.licenses.mit;
platforms = stdenv.lib.platforms.linux;
maintainers = with stdenv.lib.maintainers; [ mschneider ];
};
}

View File

@ -19,6 +19,10 @@
#include <sys/types.h>
#include <sys/wait.h>
int min(int a, int b) {
return a > b ? b : a;
}
const gchar *bind_blacklist[] = {"bin", "etc", "host", "usr", "lib", "lib64", "lib32", "sbin", NULL};
void bind_mount(const gchar *source, const gchar *target) {
@ -126,7 +130,9 @@ int main(gint argc, gchar **argv) {
int status;
fail_if(waitpid(cpid, &status, 0) != cpid);
fail_if(nftw(prefix, nftw_remove, getdtablesize(),
// glibc 2.27 (and possibly other versions) can't handle
// an nopenfd value larger than 2^19
fail_if(nftw(prefix, nftw_remove, min(getdtablesize(), 1<<19),
FTW_DEPTH | FTW_MOUNT | FTW_PHYS));
if (WIFEXITED(status))

View File

@ -52,8 +52,8 @@ let
etcProfile = writeText "profile" ''
export PS1='${name}-chrootenv:\u@\h:\w\$ '
export LOCALE_ARCHIVE='/usr/lib/locale/locale-archive'
export LD_LIBRARY_PATH='/run/opengl-driver/lib:/run/opengl-driver-32/lib:/usr/lib:/usr/lib32'
export PATH='/run/wrappers/bin:/usr/bin:/usr/sbin'
export LD_LIBRARY_PATH="/run/opengl-driver/lib:/run/opengl-driver-32/lib:/usr/lib:/usr/lib32:$LD_LIBRARY_PATH"
export PATH="/run/wrappers/bin:/usr/bin:/usr/sbin:$PATH"
export TZDIR='/etc/zoneinfo'
# Force compilers and other tools to look in default search paths

View File

@ -1,12 +1,12 @@
{ stdenv, fetchurl, meson, ninja, pkgconfig, efl, pcre, mesa_noglu, makeWrapper }:
stdenv.mkDerivation rec {
name = "terminology-${version}";
version = "1.4.0";
pname = "terminology";
version = "1.4.1";
src = fetchurl {
url = "http://download.enlightenment.org/rel/apps/terminology/${name}.tar.xz";
sha256 = "0q1y7fadj42n23aspx9y8hm4w4xlc316wc3415wnf75ibsx08ngd";
url = "http://download.enlightenment.org/rel/apps/${pname}/${pname}-${version}.tar.xz";
sha256 = "0mm9v5a94369is3kaarnr3a28wy42wslzi1mcisaidlcldgv7f6p";
};
nativeBuildInputs = [

View File

@ -1,5 +1,6 @@
{ fetchFromGitLab
, stdenv
, fetchpatch
, meson
, ninja
, pkgconfig
@ -50,6 +51,15 @@ stdenv.mkDerivation rec {
sha256 = "1klq8j70q8r8hyqv1wi6jcx8g76yh46bh8614y82zzggn4cx6y3r";
};
patches = [
(fetchpatch {
name = "CVE-2019-11459.patch";
url = "https://gitlab.gnome.org/GNOME/evince/commit/3e38d5ad724a042eebadcba8c2d57b0f48b7a8c7.patch";
sha256 = "1ds6iwr2r9i86nwrly8cx7p1kbvf1gljjplcffa67znxqmwx4n74";
})
];
postPatch = ''
chmod +x meson_post_install.py
patchShebangs meson_post_install.py

View File

@ -1,84 +1,26 @@
{ stdenv, fetchFromGitHub, fluxbox, xscreensaver, desktop-file-utils,
numlockx, xorg, qtbase, qtsvg, qtmultimedia, qtx11extras, qmake,
qttools, poppler, wrapGAppsHook
}:
{ pkgs, libsForQt5 }:
stdenv.mkDerivation rec {
name = "lumina-${version}";
version = "1.4.0-p1";
let
packages = self: with self; {
lumina = callPackage ./lumina { };
lumina-calculator = callPackage ./lumina-calculator { };
lumina-pdf = callPackage ./lumina-pdf { };
preRequisitePackages = [
pkgs.fluxbox
pkgs.libsForQt5.kwindowsystem
pkgs.numlockx
pkgs.qt5.qtsvg
pkgs.xscreensaver
];
corePackages = [
lumina
lumina-calculator
lumina-pdf
];
src = fetchFromGitHub {
owner = "trueos";
repo = "lumina";
rev = "v${version}";
sha256 = "0jin0a2s6pjbpw7w1bz67dgqp0xlpw1a7nh8zv0qwdf954zczanp";
};
nativeBuildInputs = [
qmake
qttools
wrapGAppsHook
];
buildInputs = [
xorg.libxcb
xorg.libXdamage
xorg.xcbutilwm
xorg.xcbutilimage
qtbase
qtsvg
qtmultimedia
qtx11extras
poppler
fluxbox
xscreensaver
desktop-file-utils
numlockx
];
patches = [
./avoid-absolute-path-on-sessdir.patch
./LuminaOS-NixOS.cpp.patch
];
prePatch = ''
# Copy Gentoo setup as NixOS setup and then patch it
# TODO: write a complete NixOS setup?
cp -a src-qt5/core/libLumina/LuminaOS-Gentoo.cpp src-qt5/core/libLumina/LuminaOS-NixOS.cpp
'';
postPatch = ''
# Fix location of poppler-qt5.h
substituteInPlace src-qt5/desktop-utils/lumina-pdf/mainUI.h \
--replace '#include <poppler-qt5.h>' '#include <poppler/qt5/poppler-qt5.h>'
# Fix plugin dir
substituteInPlace src-qt5/core/lumina-theme-engine/lthemeengine.pri \
--replace "\$\$[QT_INSTALL_PLUGINS]" "$out/$qtPluginPrefix"
# Fix location of fluxbox styles
substituteInPlace src-qt5/core-utils/lumina-config/pages/page_fluxbox_settings.cpp \
--replace 'LOS::AppPrefix()+"share/fluxbox' "\"${fluxbox}/share/fluxbox"
'';
qmakeFlags = [
"LINUX_DISTRO=NixOS"
"CONFIG+=WITH_I18N"
"LRELEASE=${stdenv.lib.getDev qttools}/bin/lrelease"
];
enableParallelBuilding = true;
meta = with stdenv.lib; {
description = "A lightweight, portable desktop environment";
longDescription = ''
The Lumina Desktop Environment is a lightweight system interface
that is designed for use on any Unix-like operating system. It
is based on QT5.
'';
homepage = https://lumina-desktop.org;
license = licenses.bsd3;
platforms = platforms.unix;
maintainers = [ maintainers.romildo ];
};
}
in pkgs.lib.makeScope libsForQt5.newScope packages

View File

@ -0,0 +1,32 @@
{ stdenv, fetchFromGitHub, qmake, qtbase, qttools }:
stdenv.mkDerivation rec {
pname = "lumina-calculator";
version = "2019-04-27";
src = fetchFromGitHub {
owner = "lumina-desktop";
repo = pname;
rev = "ccb792fc713aa7163fffd37fc20c83ffe9ca7523";
sha256 = "0cdyz94znycsc3qxg5bmg51bwms7586d4ja1bsmj8cb9pd3lv980";
};
sourceRoot = "source/src-qt5";
nativeBuildInputs = [ qmake qttools ];
buildInputs = [ qtbase ];
qmakeFlags = [
"CONFIG+=WITH_I18N"
"LRELEASE=${stdenv.lib.getDev qttools}/bin/lrelease"
];
meta = with stdenv.lib; {
description = "Scientific calculator for the Lumina Desktop";
homepage = https://github.com/lumina-desktop/lumina-calculator;
license = licenses.bsd3;
platforms = platforms.unix;
maintainers = [ maintainers.romildo ];
};
}

View File

@ -0,0 +1,38 @@
{ stdenv, fetchFromGitHub, qmake, qtbase, qttools, poppler }:
stdenv.mkDerivation rec {
pname = "lumina-pdf";
version = "2019-04-27";
src = fetchFromGitHub {
owner = "lumina-desktop";
repo = pname;
rev = "645ed591ef91c3607d3ab87dd86f7acfd08b05c9";
sha256 = "0gl943jb9c9rcgb5wksx3946hwlifghfd27r97skm9is8ih6k0vn";
};
sourceRoot = "source/src-qt5";
nativeBuildInputs = [ qmake qttools ];
buildInputs = [ qtbase poppler ];
postPatch = ''
sed -i '1i\#include <memory>\' Renderer-poppler.cpp
'';
qmakeFlags = [
"CONFIG+=WITH_I18N"
"LRELEASE=${stdenv.lib.getDev qttools}/bin/lrelease"
];
enableParallelBuilding = false;
meta = with stdenv.lib; {
description = "PDF viewer for the Lumina Desktop";
homepage = https://github.com/lumina-desktop/lumina-pdf;
license = licenses.bsd3;
platforms = platforms.unix;
maintainers = [ maintainers.romildo ];
};
}

View File

@ -0,0 +1,89 @@
{ stdenv,
fetchFromGitHub,
desktop-file-utils,
fluxbox,
numlockx,
qmake,
qtbase,
qtmultimedia,
qtsvg,
qttools,
qtx11extras,
xorg,
xscreensaver,
wrapGAppsHook
}:
stdenv.mkDerivation rec {
pname = "lumina";
version = "1.5.0";
src = fetchFromGitHub {
owner = "lumina-desktop";
repo = pname;
rev = "v${version}";
sha256 = "0rj2gzifr98db7i82cg3hg7l5yfik810pjpawg6n54qbzq987z25";
};
nativeBuildInputs = [
qmake
qttools
wrapGAppsHook
];
buildInputs = [
xorg.libxcb
xorg.libXcursor
xorg.libXdamage
xorg.xcbutilwm
xorg.xcbutilimage
qtbase
qtsvg
qtmultimedia
qtx11extras
fluxbox
xscreensaver
desktop-file-utils
numlockx
];
patches = [
./avoid-absolute-path-on-sessdir.patch
./LuminaOS-NixOS.cpp.patch
];
prePatch = ''
# Copy Gentoo setup as NixOS setup and then patch it
# TODO: write a complete NixOS setup?
cp -a src-qt5/core/libLumina/LuminaOS-Gentoo.cpp src-qt5/core/libLumina/LuminaOS-NixOS.cpp
'';
postPatch = ''
# Fix plugin dir
substituteInPlace src-qt5/core/lumina-theme-engine/lthemeengine.pri \
--replace "\$\$[QT_INSTALL_PLUGINS]" "$out/$qtPluginPrefix"
# Fix location of fluxbox styles
substituteInPlace src-qt5/core-utils/lumina-config/pages/page_fluxbox_settings.cpp \
--replace 'LOS::AppPrefix()+"share/fluxbox' "\"${fluxbox}/share/fluxbox"
'';
qmakeFlags = [
"LINUX_DISTRO=NixOS"
"CONFIG+=WITH_I18N"
"LRELEASE=${stdenv.lib.getDev qttools}/bin/lrelease"
];
meta = with stdenv.lib; {
description = "A lightweight, portable desktop environment";
longDescription = ''
The Lumina Desktop Environment is a lightweight system interface
that is designed for use on any Unix-like operating system. It
is based on QT5.
'';
homepage = https://lumina-desktop.org;
license = licenses.bsd3;
platforms = platforms.unix;
maintainers = [ maintainers.romildo ];
};
}

View File

@ -2,11 +2,11 @@
stdenv.mkDerivation rec {
name = "colm-${version}";
version = "0.13.0.6";
version = "0.13.0.7";
src = fetchurl {
url = "https://www.colm.net/files/colm/${name}.tar.gz";
sha256 = "0jd3qmqdm8yszy0yysbp3syk7pcbxvwzv9mibdwz7v9bv1nrai26";
sha256 = "0f76iri173l2wja2v7qrwmf958cqwh5g9x4bhj2z8wknmlla6gz4";
};
nativeBuildInputs = [ makeWrapper asciidoc ];

View File

@ -7,13 +7,13 @@
with stdenv.lib;
stdenv.mkDerivation rec {
name = "heimdal-${version}";
version = "7.5.0";
version = "7.6.0";
src = fetchFromGitHub {
owner = "heimdal";
repo = "heimdal";
rev = "heimdal-${version}";
sha256 = "1j38wjj4k0q8vx168k3d3k0fwa8j1q5q8f2688nnx1b9qgjd6w1d";
sha256 = "1i70xas6wddkw2840lk0ah9w6ddx0dzrslby1ggxlwfmcax8rcgp";
};
outputs = [ "out" "dev" "man" "info" ];

View File

@ -0,0 +1,23 @@
{ stdenv, fetchFromGitHub, which }:
stdenv.mkDerivation rec {
pname = "l-smash";
version = "2.14.5";
src = fetchFromGitHub {
owner = "l-smash";
repo = pname;
rev = "v${version}";
sha256 = "0rcq9727im6kd8da8b7kzzbzxdldvmh5nsljj9pvr4m3lj484b02";
};
nativeBuildInputs = [ which ];
meta = with stdenv.lib; {
homepage = http://l-smash.github.io/l-smash/;
description = "MP4 container utilities";
license = licenses.isc;
maintainers = with maintainers; [ tadeokondrak ];
platforms = platforms.all;
};
}

View File

@ -0,0 +1,72 @@
From 77a34d31695e02bc3d06b68c7ca3ff9c3cb67844 Mon Sep 17 00:00:00 2001
From: Maximilian Bosch <maximilian@mbosch.me>
Date: Sun, 26 May 2019 19:46:27 +0200
Subject: [PATCH] Don't detect package version with Git
This will build in a Nix-based build environment. Instead we ismply
replace `@version@` using `substituteAll`.
---
dwarf/Makefile | 19 +++++++++----------
elf/Makefile | 15 +++++++--------
2 files changed, 16 insertions(+), 18 deletions(-)
diff --git a/dwarf/Makefile b/dwarf/Makefile
index 71456bd..f871227 100644
--- a/dwarf/Makefile
+++ b/dwarf/Makefile
@@ -43,16 +43,15 @@ CLEAN += libdwarf++.so
# Create pkg-config for local library and headers. This will be
# transformed in to the correct global pkg-config by install.
libdwarf++.pc: always
- @(VER=$$(git describe --match 'v*' | sed -e s/^v//); \
- echo "libdir=$$PWD"; \
- echo "includedir=$$PWD"; \
- echo ""; \
- echo "Name: libdwarf++"; \
- echo "Description: C++11 DWARF library"; \
- echo "Version: $$VER"; \
- echo "Requires: libelf++ = $$VER"; \
- echo "Libs: -L\$${libdir} -ldwarf++"; \
- echo "Cflags: -I\$${includedir}") > $@
+ @(echo "libdir=$$PWD"; \
+ echo "includedir=$$PWD"; \
+ echo ""; \
+ echo "Name: libdwarf++"; \
+ echo "Description: C++11 DWARF library"; \
+ echo "Version: @version@"; \
+ echo "Requires: libelf++ = @version@"; \
+ echo "Libs: -L\$${libdir} -ldwarf++"; \
+ echo "Cflags: -I\$${includedir}") > $@
CLEAN += libdwarf++.pc
.PHONY: always
diff --git a/elf/Makefile b/elf/Makefile
index 9c7c224..50630a7 100644
--- a/elf/Makefile
+++ b/elf/Makefile
@@ -42,15 +42,14 @@ CLEAN += libelf++.so
# Create pkg-config for local library and headers. This will be
# transformed in to the correct global pkg-config by install.
libelf++.pc: always
- @(VER=$$(git describe --match 'v*' | sed -e s/^v//); \
- echo "libdir=$$PWD"; \
+ @(echo "libdir=$$PWD"; \
echo "includedir=$$PWD"; \
- echo ""; \
- echo "Name: libelf++"; \
- echo "Description: C++11 ELF library"; \
- echo "Version: $$VER"; \
- echo "Libs: -L\$${libdir} -lelf++"; \
- echo "Cflags: -I\$${includedir}") > $@
+ echo ""; \
+ echo "Name: libelf++"; \
+ echo "Description: C++11 ELF library"; \
+ echo "Version: @version@"; \
+ echo "Libs: -L\$${libdir} -lelf++"; \
+ echo "Cflags: -I\$${includedir}") > $@
CLEAN += libelf++.pc
.PHONY: always
--
2.19.2

View File

@ -0,0 +1,32 @@
{ stdenv, fetchFromGitHub, python3, substituteAll }:
stdenv.mkDerivation rec {
pname = "libelfin";
version = "unstable-2018-08-25";
src = fetchFromGitHub {
owner = "aclements";
repo = pname;
rev = "ac45a094fadba77ad840063fb7aab82571546be0";
sha256 = "143x680c6hsy51kngs04ypg4ql3lp498llcwj4lh1v0qp5qvjhyz";
};
patches = [
(substituteAll {
src = ./0001-Don-t-detect-package-version-with-Git.patch;
inherit version;
})
];
nativeBuildInputs = [ python3 ];
makeFlags = [ "PREFIX=${placeholder "out"}" ];
meta = with stdenv.lib; {
homepage = https://github.com/aclements/libelfin/;
license = licenses.mit;
description = "C++11 ELF/DWARF parser";
maintainers = with maintainers; [ ma27 ];
platforms = platforms.linux;
};
}

View File

@ -2,13 +2,13 @@
stdenv.mkDerivation rec {
pname = "libpqxx";
version = "6.4.3";
version = "6.4.4";
src = fetchFromGitHub {
owner = "jtv";
repo = pname;
rev = version;
sha256 = "1h2gwns9mcdsrl8v203pq3r6jcydg3r5nihsl8s17lkfysizrqw8";
sha256 = "0l62qlln5q1qhapbnm8n1k0hbzf3287gld1jpcbwr0yj79l9j579";
};
nativeBuildInputs = [ gnused python2 ];

View File

@ -1,14 +1,14 @@
{ boost, cmake, fetchFromGitHub, gtest, libpcap, openssl, stdenv }:
stdenv.mkDerivation rec {
name = "libtins-${version}";
version = "4.0";
pname = "libtins";
version = "4.2";
src = fetchFromGitHub {
owner = "mfontanini";
repo = "libtins";
repo = pname;
rev = "v${version}";
sha256 = "13sdqad976j7gq2k1il6g51yxwr8rlqdkzf1kj9mzhihjq8541qs";
sha256 = "0gv661gdf018zk1sr6fnvcmd5akqjihs4h6zzxv6881v6yhhglrz";
};
postPatch = ''
@ -32,14 +32,15 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
doCheck = true;
preCheck = ''
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/lib
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$PWD/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD${placeholder "out"}/lib
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$PWD${placeholder "out"}/lib
'';
checkTarget = "tests test";
meta = with stdenv.lib; {
description = "High-level, multiplatform C++ network packet sniffing and crafting library";
homepage = https://libtins.github.io/;
homepage = "https://libtins.github.io/";
changelog = "https://raw.githubusercontent.com/mfontanini/${pname}/v${version}/CHANGES.md";
license = stdenv.lib.licenses.bsd2;
maintainers = with maintainers; [ fdns ];
platforms = stdenv.lib.platforms.unix;

View File

@ -12,13 +12,14 @@
stdenv.mkDerivation rec {
name = "${pname}-${version}";
pname = "linbox";
version = "1.6.1";
version = "1.6.2";
src = fetchFromGitHub {
owner = "linbox-team";
repo = "${pname}";
rev = "v${version}";
sha256 = "11mgj7pkppvzmhx5g6wfnzisk36z00gqzzq9p14hzh5dbdhk3693";
sha256 = "038br15hhc8dc1hq0pkv6vb1qx9hjr7hjv3w9fq9qwkd870h2v1q";
};
nativeBuildInputs = [
@ -61,7 +62,6 @@ stdenv.mkDerivation rec {
license = stdenv.lib.licenses.lgpl21Plus;
maintainers = [stdenv.lib.maintainers.timokau];
platforms = stdenv.lib.platforms.unix;
broken = stdenv.isDarwin || stdenv.isAarch64; # https://trac.sagemath.org/ticket/26932#comment:21
homepage = http://linalg.org/;
};
}

View File

@ -1,20 +1,20 @@
{ stdenv, fetchgit }:
stdenv.mkDerivation rec {
name = "nv-codec-headers-${version}";
version = "8.2.15.6";
pname = "nv-codec-headers";
version = "9.0.18.1";
src = fetchgit {
url = "https://git.videolan.org/git/ffmpeg/nv-codec-headers.git";
rev = "n${version}";
sha256 = "0216ww8byjxz639kagyw0mr9vxxwj89xdnj448d579vjr54jychv";
sha256 = "0354fivb92ix341jds7a7qn3mgwimrnxbganhlhr4vayj25c3hw5";
};
makeFlags = [ "PREFIX=$(out)" ];
meta = {
description = "FFmpeg version of headers for NVENC";
homepage = http://ffmpeg.org/;
homepage = "https://ffmpeg.org/";
license = stdenv.lib.licenses.mit;
maintainers = [ stdenv.lib.maintainers.MP2E ];
platforms = stdenv.lib.platforms.all;

View File

@ -11,11 +11,11 @@
stdenv.mkDerivation rec {
name = "ogre-${version}";
version = "1.11.5";
version = "1.12.0";
src = fetchurl {
url = "https://github.com/OGRECave/ogre/archive/v${version}.zip";
sha256 = "0hs7b81nr7i4wgsb603kkqw33m6cafjrj2zw4yhibwn8k7zzwddp";
sha256 = "1hkkg5prixppiq1p5jz7wz1npm5s7kwm1s86079280waccvr2v6x";
};
cmakeFlags = [ "-DOGRE_BUILD_SAMPLES=${toString withSamples}" ]

View File

@ -9,24 +9,16 @@
}:
let
version = "4.0.0";
version = "4.0.1";
in stdenv.mkDerivation rec {
name = "openmpi-${version}";
src = with stdenv.lib.versions; fetchurl {
url = "http://www.open-mpi.org/software/ompi/v${major version}.${minor version}/downloads/${name}.tar.bz2";
sha256 = "0srnjwzsmyhka9hhnmqm86qck4w3xwjm8g6sbns58wzbrwv8l2rg";
sha256 = "02cpzcp113gj5hb0j2xc0cqma2fn04i2i0bzf80r71120p9bdryc";
};
patches = [ (fetchpatch {
# Fix a bug that ignores OMPI_MCA_rmaps_base_oversubscribe (upstream patch).
# This bug breaks the test from libs, such as scalapack,
# on machines with less than 4 cores.
url = https://github.com/open-mpi/ompi/commit/98c8492057e6222af6404b352430d0dd7553d253.patch;
sha256 = "1mpd8sxxprgfws96qqlzvqf58pn2vv2d0qa8g8cpv773sgw3b3gj";
}) ];
postPatch = ''
patchShebangs ./
'';

View File

@ -30,6 +30,10 @@ stdenv.mkDerivation rec {
)
'';
# Increase individual test timeout from 1500s to 10000s because hydra's builds
# sometimes fail due to this
checkFlagsArray = [ "ARGS=--timeout 10000" ];
preCheck = ''
# make sure the test starts even if we have less than 4 cores
export OMPI_MCA_rmaps_base_oversubscribe=1

View File

@ -15,7 +15,7 @@ let
nativeBuildInputs = [ cmake ];
cmakeFlags = [ "-DSPDLOG_BUILD_EXAMPLES=OFF" ];
cmakeFlags = [ "-DSPDLOG_BUILD_EXAMPLES=OFF" "-DSPDLOG_BUILD_BENCH=OFF" ];
outputs = [ "out" "doc" ];
@ -35,8 +35,8 @@ let
in
{
spdlog_1 = generic {
version = "1.2.1";
sha256 = "0gdj8arfz4r9419zbcxk9y9nv47qr7kyjjzw9m3ijgmn2pmxk88n";
version = "1.3.1";
sha256 = "1rd4zmrlkcdjx0m0wpmjm1g9srj7jak6ai08qkhbn2lsn0niifzd";
};
spdlog_0 = generic {

View File

@ -20,6 +20,9 @@ stdenv.mkDerivation {
ln -s $out/bin/wish* $out/bin/wish
cp ../{unix,generic}/*.h $out/include
ln -s $out/lib/libtk${tcl.release}.so $out/lib/libtk.so
''
+ stdenv.lib.optionalString (stdenv.isDarwin) ''
cp ../macosx/*.h $out/include
'';
configureFlags = [

View File

@ -0,0 +1,26 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, nose
}:
buildPythonPackage rec {
version = "1.15.2";
pname = "annoy";
src = fetchPypi {
inherit pname version;
sha256 = "1i5bkf8mwd1pyrbhfwncir2r8yq8s9qz5j13vv2qz92n9g57sr3m";
};
checkInputs = [
nose
];
meta = with stdenv.lib; {
description = "Approximate Nearest Neighbors in C++/Python optimized for memory usage and loading/saving to disk";
homepage = https://github.com/spotify/annoy;
license = licenses.asl20;
maintainers = with maintainers; [ timokau ];
};
}

View File

@ -1,16 +1,16 @@
{ stdenv, buildPythonPackage
, fetchPypi, isPy3k, linuxPackages, gcc5
, fetchPypi, isPy3k, linuxPackages
, fastrlock, numpy, six, wheel, pytest, mock
, cudatoolkit, cudnn, nccl
}:
buildPythonPackage rec {
pname = "cupy";
version = "5.2.0";
version = "5.4.0";
src = fetchPypi {
inherit pname version;
sha256 = "664acff0e1094f0135acca8899318d300258b704e049b1ef0c59154912da53b2";
sha256 = "1qms1kmzr543hz30jmcmx20cf9xbgzl97a9k44xizsk785dwakbn";
};
checkInputs = [
@ -18,10 +18,6 @@ buildPythonPackage rec {
mock
];
nativeBuildInputs = [
gcc5
];
propagatedBuildInputs = [
cudatoolkit
cudnn

View File

@ -1,6 +1,7 @@
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, pytest
, numpy
, nbconvert
@ -8,21 +9,22 @@
, mock
, jinja2
, branca
, six
, requests
}:
buildPythonPackage rec {
pname = "folium";
version = "0.8.3";
version = "0.9.1";
src = fetchPypi {
inherit pname version;
sha256 = "b7a1e907caac6ddaf0614555f58ba9af2ed65356ccc77f6ba6fc3df202d8f146";
sha256 = "66901483808839ed895a685ca7bc4731379f4a627d73a83b77f0df1847b14892";
};
disabled = pythonOlder "3.5";
checkInputs = [ pytest nbconvert pandas mock ];
propagatedBuildInputs = [ jinja2 branca six requests numpy ];
propagatedBuildInputs = [ jinja2 branca requests numpy ];
# No tests in archive
doCheck = false;

View File

@ -5,13 +5,13 @@
buildPythonPackage rec {
pname = "hetzner";
version = "0.8.1";
version = "0.8.2";
src = fetchFromGitHub {
repo = "hetzner";
owner = "aszlig";
rev = "v${version}";
sha256 = "1xd1klvjskv0pg8ginih597jkk491a55b8dq80dsm61m5sbsx3vq";
sha256 = "152fklxff08s71v0b78yp5ajwpqyszm3sd7j0qsrwa2x9ik4968h";
};
meta = with stdenv.lib; {
@ -20,5 +20,4 @@ buildPythonPackage rec {
license = licenses.bsd3;
maintainers = with maintainers; [ aszlig ];
};
}

View File

@ -7,11 +7,11 @@
buildPythonPackage rec {
pname = "isbnlib";
version = "3.9.6";
version = "3.9.8";
src = fetchPypi {
inherit pname version;
sha256 = "d4ae098cb31d6c678a6eac074a24f8ba4adfe7df65db13b0b2ab7355f28d6e3b";
sha256 = "ca27dc15763759d038a22f4e05d849acc121ffcb8ffe008768f09a0d844f7172";
};
checkInputs = [

View File

@ -13,6 +13,12 @@ buildPythonPackage rec {
inherit mpi;
};
patches = [ ( fetchpatch {
# Upstream patch to ensure compatibility with openmpi-4.0.1
url = "https://github.com/mpi4py/mpi4py/commit/42f5e35a6a90454516c11131549a08cd766edbb0.patch";
sha256 = "1dm0i3amwj1cddzz1m9ssd7qp655c8rv1wzjs9ww3kzd90fm4w72";
})];
postPatch = ''
substituteInPlace test/test_spawn.py --replace \
"unittest.skipMPI('openmpi(<3.0.0)')" \

View File

@ -2,13 +2,13 @@
buildPythonPackage rec {
pname = "pyhomematic";
version = "0.1.58";
version = "0.1.59";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "b390400169a4d57b3ddc3bf2123d71f2c9ef9042a50906e13253aa67311f5183";
sha256 = "4406d9bf49d570ef0ba80be9cf8eb4bd75c08a2909369ebd90b8e94ff07f116e";
};
# PyPI tarball does not include tests/ directory

View File

@ -2,11 +2,11 @@
buildPythonPackage rec {
pname = "python-axolotl";
version = "0.2.2";
version = "0.2.3";
src = fetchPypi {
inherit pname version;
sha256 = "1had4dq4n26c3hp62rbmhvs1dj3j3z2jhcbddnbsmqmiky8dqs39";
sha256 = "1bwdp24fmriffwx91aigs9k162albb51iskp23nc939z893q23py";
};
propagatedBuildInputs = [ cryptography python-axolotl-curve25519 protobuf ];

View File

@ -17,7 +17,7 @@ buildPythonPackage rec {
meta = with lib; {
description = "Library to implement a well-behaved Unix daemon process";
homepage = https://alioth.debian.org/projects/python-daemon/;
homepage = "https://pagure.io/python-daemon/";
license = [ licenses.gpl3Plus licenses.asl20 ];
};
}

View File

@ -0,0 +1,98 @@
{ stdenv
, lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, tensorflow
, annoy
, pillow
, matplotlib
, numpy
, pandas
, pygame
, pyopengl
, scipy
, scikitimage
, gym
, bokeh
, kubernetes
, redis
, minio
, pytest
, psutil
}:
buildPythonPackage rec {
version = "0.12.0";
pname = "rl-coach";
src = fetchPypi {
inherit pname version;
sha256 = "0kfm699rsy63726hpz3fyppl7zbl0fzf0vk2kkfgg718mcjxmdnh";
};
propagatedBuildInputs = [
tensorflow
annoy
pillow
matplotlib
numpy
pandas
pygame
pyopengl
scipy
scikitimage
gym
bokeh
kubernetes
redis
minio
psutil
];
checkInputs = [
pytest
];
# run only some tests that do not need any optional dependencies
# available tests: https://github.com/NervanaSystems/coach/tree/master/rl_coach/tests
testsToRun = [
# test only the tensorflow backend (not mxnet)
"architectures/tensorflow_components"
"agents"
"exploration_policies"
"filters"
"memories"
"utils"
];
checkPhase = let
fullTestPaths = map (testfile: "rl_coach/tests/${testfile}") testsToRun;
escapedPaths = map lib.escapeShellArg fullTestPaths;
pytestArgs = builtins.concatStringsSep " " escapedPaths;
in
''
pytest ${pytestArgs}
'';
postPatch = ''
# pinned to 8.0.1 for unknown reason, at least basic functionallity seems to work without it
# https://github.com/NervanaSystems/coach/pull/149#issuecomment-495915804
sed -i '/kubernetes/d' requirements.txt
# this is just an "intel-optimized" version of tensorflow, e.g. an implementation detail
sed -i 's/intel-tensorflow/tensorflow/g' setup.py
# backports of python3 features not needed
# https://github.com/NervanaSystems/coach/issues/324
sed -i '/futures/d' requirements.txt
'';
disabled = pythonOlder "3.5"; # minimum required version
meta = with stdenv.lib; {
description = "Enables easy experimentation with state of the art Reinforcement Learning algorithms";
homepage = "https://nervanasystems.github.io/coach/";
license = licenses.asl20;
maintainers = with maintainers; [ timokau ];
};
}

View File

@ -1,24 +1,13 @@
{ lib
, python
, buildPythonPackage
, fetchPypi
, pytest
, boto3
, six
, pyyaml
, mock
}:
let
py = python.override {
packageOverrides = self: super: {
pyyaml = super.pyyaml.overridePythonAttrs (oldAttrs: rec {
version = "3.12";
src = oldAttrs.src.override {
inherit version;
sha256 = "592766c6303207a20efc445587778322d7f73b161bd994f227adaa341ba212ab";
};
});
};
};
in
with py.pkgs;
buildPythonPackage rec {
pname = "serverlessrepo";
version = "0.1.8";
@ -40,6 +29,10 @@ buildPythonPackage rec {
pytest tests/unit
'';
postPatch = ''
substituteInPlace setup.py --replace "pyyaml~=3.12" "pyyaml~=5.1"
'';
meta = with lib; {
homepage = https://github.com/awslabs/aws-serverlessrepo-python;
description = "Helpers for working with the AWS Serverless Application Repository";

View File

@ -4,12 +4,12 @@
}:
buildPythonPackage rec {
pname = "python-setproctitle";
version = "1.1.9";
pname = "setproctitle";
version = "1.1.10";
src = fetchPypi {
inherit pname version;
sha256 = "1mqadassxcm0m9r1l02m5vr4bbandn48xz8gifvxmb4wiz8i8d0w";
sha256 = "6283b7a58477dd8478fbb9e76defb37968ee4ba47b05ec1c053cb39638bd7398";
};
meta = with stdenv.lib; {

View File

@ -31,7 +31,8 @@ buildPythonPackage rec {
# Disable test_tcp_async because fails on sandbox build
checkPhase = ''
pytest --deselect=streamz/tests/test_sources.py::test_tcp_async
pytest --deselect=streamz/tests/test_sources.py::test_tcp_async \
--deselect=streamz/tests/test_sources.py::test_tcp
'';
meta = with lib; {

View File

@ -23,7 +23,7 @@
buildPythonPackage rec {
pname = "weasyprint";
version = "45";
version = "47";
disabled = !isPy3k;
# ignore failing pytest
@ -55,7 +55,7 @@ buildPythonPackage rec {
src = fetchPypi {
inherit version;
pname = "WeasyPrint";
sha256 = "04bf2p2x619g4q4scg8v6v57c24vwn7qckvz81rckj8clzifyr82";
sha256 = "0hd1zwrkfnj7g0jaaf6jvarlj6l5imar6ar78zxdgv17a3s3k3dg";
};
meta = with stdenv.lib; {

View File

@ -0,0 +1,28 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, pillow
, html5lib
, pypdf2
, reportlab
, six
}:
buildPythonPackage rec {
pname = "xhtml2pdf";
version = "0.2.3";
propagatedBuildInputs = [pillow html5lib pypdf2 reportlab six];
src = fetchPypi {
inherit pname version;
sha256 = "10kg8cmn7zgql2lb6cfmqj94sa0jkraksv3lc4kvpn58sxw7x8w6";
};
meta = with stdenv.lib; {
description = "A PDF generator using HTML and CSS";
homepage = https://github.com/xhtml2pdf/xhtml2pdf;
license = licenses.asl20;
};
}

View File

@ -59,6 +59,7 @@ buildPythonApplication rec {
postPatch = ''
substituteInPlace requirements/base.txt --replace "requests==2.20.1" "requests==2.21.0"
substituteInPlace requirements/base.txt --replace "six~=1.11.0" "six~=1.12.0"
substituteInPlace requirements/base.txt --replace "PyYAML~=3.12" "PyYAML~=5.1"
'';
meta = with lib; {

View File

@ -5,16 +5,16 @@
buildGoPackage rec {
name = "go-tools-${version}";
version = "2017.2.2";
version = "2019.1.1";
goPackagePath = "honnef.co/go/tools";
excludedPackages = ''\(simple\|ssa\|ssa/ssautil\|lint\|staticcheck\|unused\)/testdata'';
excludedPackages = ''\(simple\|ssa\|ssa/ssautil\|lint\|staticcheck\|stylecheck\|unused\)/testdata'';
src = fetchFromGitHub {
owner = "dominikh";
repo = "go-tools";
rev = "${version}";
sha256 = "1khl6szjj0skkfqp234p9rf3icik7fw2pk2x0wbj3wa9q3f84hb7";
sha256 = "1zwh64x3i32p6f6808q609n63xda3bq888n43wl4alpx1b08spha";
};
goDeps = ./deps.nix;
@ -23,7 +23,7 @@ buildGoPackage rec {
description = "A collection of tools and libraries for working with Go code, including linters and static analysis.";
homepage = https://staticcheck.io;
license = licenses.mit;
maintainers = with maintainers; [ kalbasit ];
maintainers = with maintainers; [ rvolosatovs kalbasit ];
platforms = platforms.linux ++ platforms.darwin;
};
}

View File

@ -1,4 +1,13 @@
[
{
goPackagePath = "github.com/BurntSushi/toml";
fetch = {
type = "git";
url = "https://github.com/BurntSushi/toml";
rev = "3012a1dbe2e4bd1391d42b32f0577cb7bbc7f005";
sha256 = "1fjdwwfzyzllgiwydknf1pwjvy49qxfsczqx5gz3y0izs7as99j6";
};
}
{
goPackagePath = "github.com/kisielk/gotool";
fetch = {
@ -13,8 +22,8 @@
fetch = {
type = "git";
url = "https://go.googlesource.com/tools";
rev = "96e9e165b75e735822645eff82850b08c377be36";
sha256 = "1zj9ck5sg9b0pphxybmvxf64hhcap7v7j37fx3v5aknf18crjjdg";
rev = "2c0ae70061356820330c96810d9483beb9a6da8e";
sha256 = "1lsi2ssxajclj3bciz2a41v1vjv768ja3v6wnbyhxy8xphwkp4fk";
};
}
]

View File

@ -1,7 +1,7 @@
{ stdenv, buildGoPackage, fetchFromGitHub }:
buildGoPackage rec {
name = "packer-${version}";
version = "1.4.0";
version = "1.4.1";
goPackagePath = "github.com/hashicorp/packer";
@ -11,7 +11,7 @@ buildGoPackage rec {
owner = "hashicorp";
repo = "packer";
rev = "v${version}";
sha256 = "0fpzmwh7vq8vc7gvlnpx4ji4yaxwi2h2ksz0z4782469pkcnbg56";
sha256 = "13pj48pbhl47rwyi6gd6dhq9wq0z2h8kzjkahhqhf62dfssv35db";
};
meta = with stdenv.lib; {

View File

@ -43,8 +43,8 @@ in
};
ragelDev = generic {
version = "7.0.0.11";
sha256 = "0h2k9bfz9i7x9mvr9rbsrzz8fk17756zwwrkf3fppvm9ivzwdfh8";
version = "7.0.0.12";
sha256 = "0x3si355lv6q051lgpg8bpclpiq5brpri5lv3p8kk2qhzfbyz69r";
license = stdenv.lib.licenses.mit;
};
}

View File

@ -2,7 +2,7 @@
rustPlatform.buildRustPackage rec {
pname = "cargo-make";
version = "0.19.1";
version = "0.19.2";
src =
let
@ -10,11 +10,11 @@ rustPlatform.buildRustPackage rec {
owner = "sagiegurari";
repo = pname;
rev = version;
sha256 = "1bv5gv5zd9h0yw7wb28r0c4z9wqa6n7ac4ipd855apwz1v7sm9n3";
sha256 = "175cflcm9k81fpp2pxz4hcaf8v3i7jqc9gcr4flnsqxjrh22vymp";
};
cargo-lock = fetchurl {
url = "https://gist.githubusercontent.com/xrelkd/e4c9c7738b21f284d97cb7b1d181317d/raw/8a12a07cafeff4ef4a01983f5243dd8c95d10c48/cargo-make-0.19.1-Cargo.lock";
sha256 = "0v2hygkpsyjcpzrgyzl5mah0y8gmprfbnz7kn4hh6zfhz2lhqqwm";
url = "https://gist.githubusercontent.com/xrelkd/e4c9c7738b21f284d97cb7b1d181317d/raw/f1e6360acfbe5ae573f8f31a82a5c881a6f0ed68/cargo-make-Cargo.lock";
sha256 = "004dx4gyby5smpvawqv946mambcg59zq6n8h89hz61mxkh7frmh4";
};
in
runCommand "cargo-make-src" {} ''
@ -25,7 +25,7 @@ rustPlatform.buildRustPackage rec {
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
cargoSha256 = "0j7gyg6l428gypjpfgdz082vz8m86cx1wy2r47az3sc3skl6dhkq";
cargoSha256 = "1hmfg3x9p5a2vz2r3v8m5wgyabbybl5lcjvi930b9wi5cnfm756g";
# Some tests fail because they need network access.
# However, Travis ensures a proper build.

View File

@ -135,6 +135,6 @@ in stdenv.mkDerivation rec {
'';
license = licenses.unfree;
platforms = [ "x86_64-linux" ];
maintainers = with maintainers; [ jb55 tesq0 ];
maintainers = with maintainers; [ tesq0 ];
};
}

Some files were not shown because too many files have changed in this diff Show More