Merge master into staging-next

This commit is contained in:
Frederik Rietdijk
2019-08-31 09:50:38 +02:00
364 changed files with 8989 additions and 6877 deletions

View File

@@ -0,0 +1,23 @@
{ stdenv, buildGoPackage, fetchFromGitHub }:
buildGoPackage rec {
pname = "claws";
version = "0.3.2";
goPackagePath = "github.com/thehowl/${pname}";
src = fetchFromGitHub {
rev = version;
owner = "thehowl";
repo = pname;
sha256 = "0nl7xvdivnabqr98mh3m1pwqznprsaqpagny6zcwwmz480x4pmfz";
};
meta = with stdenv.lib; {
homepage = "https://github.com/thehowl/claws";
description = "Interactive command line client for testing websocket servers";
license = licenses.mit;
platforms = platforms.unix;
maintainers = with maintainers; [ petabyteboy ];
};
}

View File

@@ -16,16 +16,16 @@ with rustPlatform;
buildRustPackage rec {
pname = "ffsend";
version = "0.2.50";
version = "0.2.51";
src = fetchFromGitLab {
owner = "timvisee";
repo = "ffsend";
rev = "v${version}";
sha256 = "06virzmg3prvwk5gilr19qrpi93wvv7jq096kgsbn3rmnv3ys1zh";
sha256 = "1ckzgzbv2fh5y7c5r0b9n6y2migmsrnlwdg7dybr0c82s39swr7f";
};
cargoSha256 = "1g72nz3nha41cvsb514z4k78yw7xcsh3nm0bl2wqy9dvdzgp1lm1";
cargoSha256 = "1x4hxar60lwimldpsi0frdlssgsb72qahn3dmb980sj6cmbq3f0b";
nativeBuildInputs = [ cmake pkgconfig ];
buildInputs = [ openssl ]

View File

@@ -1,40 +1,33 @@
{ stdenv, fetchFromGitHub, rustPlatform, pkgconfig, udev }:
rustPlatform.buildRustPackage
{
pname = "kanshi-unstable";
version = "2019-02-02";
{ stdenv, fetchFromGitHub, meson, ninja, pkgconfig, scdoc, wayland }:
stdenv.mkDerivation rec {
pname = "kanshi";
version = "1.0.0";
src = fetchFromGitHub {
owner = "emersion";
repo = "kanshi";
rev = "970267e400c21a6bb51a1c80a0aadfd1e6660a7b";
sha256 = "10lfdan86bmwazpma6ixnv46z9cnf879gxln8gx87v7a1x3ss0bh";
rev = "v${version}";
sha256 = "0v50q1s105c2rar6mi1pijm8llsnsp62gv4swd3ddjn5rwallg46";
};
buildInputs = [ pkgconfig udev ];
nativeBuildInputs = [ meson ninja pkgconfig scdoc ];
buildInputs = [ wayland ];
cargoSha256 = "0pvkrdjrg9y38vsrqkrvsknzp78sknpmq14rskvij450a9mpihii";
meta = {
meta = with stdenv.lib; {
description = "Dynamic display configuration tool";
longDescription =
''
Kanshi uses a configuration file and a list of available displays to choose
the right settings for each display. It's useful if your window manager
doesn't support multiple display configurations (e.g. i3/Sway).
For now, it only supports:
- sysfs as backend
- udev as notifier (optional)
- Configuration file
- GNOME (~/.config/monitors.xml)
- Kanshi (see below)
- Sway as frontend
longDescription = ''
kanshi allows you to define output profiles that are automatically enabled
and disabled on hotplug. For instance, this can be used to turn a laptop's
internal screen off when docked.
kanshi can be used on Wayland compositors supporting the
wlr-output-management protocol.
'';
homepage = "https://github.com/emersion/kanshi";
downloadPage = "https://github.com/emersion/kanshi";
license = stdenv.lib.licenses.mit;
maintainers = [ stdenv.lib.maintainers.balsoft ];
platforms = stdenv.lib.platforms.linux;
license = licenses.mit;
maintainers = with maintainers; [ balsoft ];
platforms = platforms.linux;
};
}

View File

@@ -2,20 +2,20 @@
stdenv.mkDerivation rec {
pname = "neofetch";
version = "6.0.0";
version = "6.1.0";
src = fetchFromGitHub {
owner = "dylanaraps";
repo = "neofetch";
rev = version;
sha256 = "0j0r40llyry1sgc6p9wd7jrpydps2lnj4rwajjp37697g2bik89i";
sha256 = "022xzn9jk18k2f4b6011d8jk5nbl84i3mw3inlz4q52p2hvk8fch";
};
dontBuild = true;
makeFlags = [
"PREFIX=$(out)"
"SYSCONFDIR=$(out)/etc"
"PREFIX=${placeholder "out"}"
"SYSCONFDIR=${placeholder "out"}/etc"
];
meta = with stdenv.lib; {

View File

@@ -15,6 +15,11 @@ mkDerivation rec {
buildInputs = [ qtbase ];
# Wayland needs to know the desktop file name in order to show the app name and icon.
# Patch has been upstreamed and can be removed in the future.
# See: https://sourceforge.net/p/qt5ct/code/549/
patches = [ ./wayland.patch ];
qmakeFlags = [
"LRELEASE_EXECUTABLE=${getDev qttools}/bin/lrelease"
];

View File

@@ -0,0 +1,22 @@
--- a/src/qt5ct/main.cpp
+++ b/src/qt5ct/main.cpp
@@ -29,14 +29,18 @@
#include <QApplication>
#include <QLibraryInfo>
#include <QLocale>
-#include "qt5ct.h"
+#include <QtGlobal>
#include <QTranslator>
#include <QtDebug>
+#include "qt5ct.h"
#include "mainwindow.h"
int main(int argc, char **argv)
{
QApplication app(argc, argv);
+#if (QT_VERSION >= QT_VERSION_CHECK(5, 7, 0))
+ QGuiApplication::setDesktopFileName("qt5ct.desktop");
+#endif
QTranslator translator;
QString locale = Qt5CT::systemLanguageID();
translator.load(QString(":/qt5ct_") + locale);

View File

@@ -2,19 +2,19 @@
rustPlatform.buildRustPackage rec {
pname = "starship";
version = "0.12.0";
version = "0.13.1";
src = fetchFromGitHub {
owner = "starship";
repo = "starship";
rev = "v${version}";
sha256 = "0zq99ll0vyafr2piffazprhvbs3sxb6863cp2qw596ilqg7ffi04";
sha256 = "0y6ixl3i1brak226hh02da1zzlcv41f0kb648dqii6dzyhrwhrld";
};
buildInputs = [ openssl ] ++ stdenv.lib.optionals stdenv.isDarwin [ libiconv darwin.apple_sdk.frameworks.Security ];
nativeBuildInputs = [ pkgconfig ];
cargoSha256 = "0qlgng5j6l1r9j5vn3wnq25qr6f4nh10x90awiqyzz8jypb0ng2c";
cargoSha256 = "1xk4ngxhgww921fk40d4ziprnzgp927lhdwwzcifcb0hdyl0854p";
checkPhase = "cargo test -- --skip directory::home_directory --skip directory::directory_in_root";
meta = with stdenv.lib; {

View File

@@ -1,27 +1,24 @@
{ stdenv, fetchFromGitHub, makeWrapper, python3Packages, perl, zip
, rtmpdump, gitMinimal }:
, gitMinimal }:
let
inherit (python3Packages) python nose pycrypto pyyaml requests mock;
in stdenv.mkDerivation rec {
pname = "svtplay-dl";
version = "2.1";
version = "2.2";
src = fetchFromGitHub {
owner = "spaam";
repo = "svtplay-dl";
rev = version;
sha256 = "1cnc32gbhs955391hs1x1jpjsl3b6pqy7ysdydmp9q1i2rw105ln";
sha256 = "02yjz17x8dl5spn7mcbj1ji7vsyx0qwwa60zqyrdxpr03g1rnhdz";
};
pythonPaths = [ pycrypto pyyaml requests ];
buildInputs = [ python perl nose mock rtmpdump makeWrapper ] ++ pythonPaths;
buildInputs = [ python perl nose mock makeWrapper ] ++ pythonPaths;
nativeBuildInputs = [ gitMinimal zip ];
postPatch = ''
substituteInPlace lib/svtplay_dl/fetcher/rtmp.py \
--replace '"rtmpdump"' '"${rtmpdump}/bin/rtmpdump"'
substituteInPlace scripts/run-tests.sh \
--replace 'PYTHONPATH=lib' 'PYTHONPATH=lib:$PYTHONPATH'
'';