Merge remote-tracking branch 'origin/master' into haskell-updates.

This commit is contained in:
Peter Simons 2020-08-21 21:19:32 +02:00
commit 94d0521989
39 changed files with 664 additions and 190 deletions

View File

@ -5206,6 +5206,12 @@
githubId = 35892750; githubId = 35892750;
name = "Maxine Aubrey"; name = "Maxine Aubrey";
}; };
maxxk = {
email = "maxim.krivchikov@gmail.com";
github = "maxxk";
githubId = 1191859;
name = "Maxim Krivchikov";
};
mbakke = { mbakke = {
email = "mbakke@fastmail.com"; email = "mbakke@fastmail.com";
github = "mbakke"; github = "mbakke";
@ -6359,6 +6365,12 @@
githubId = 157610; githubId = 157610;
name = "Piotr Bogdan"; name = "Piotr Bogdan";
}; };
pblkt = {
email = "pebblekite@gmail.com";
github = "pblkt";
githubId = 6498458;
name = "pebble kite";
};
pcarrier = { pcarrier = {
email = "pc@rrier.ca"; email = "pc@rrier.ca";
github = "pcarrier"; github = "pcarrier";

View File

@ -26,7 +26,7 @@ with lib;
####### implementation ####### implementation
config = mkIf config.hardware.onlykey.enable { config = mkIf config.hardware.onlykey.enable {
services.udev.extraRules = builtin.readFile ./onlykey.udev; services.udev.extraRules = builtins.readFile ./onlykey.udev;
}; };

View File

@ -54,7 +54,7 @@ let
'') gitlabConfig.production.repositories.storages))} '') gitlabConfig.production.repositories.storages))}
''; '';
gitlabShellConfig = { gitlabShellConfig = flip recursiveUpdate cfg.extraShellConfig {
user = cfg.user; user = cfg.user;
gitlab_url = "http+unix://${pathUrlQuote gitlabSocket}"; gitlab_url = "http+unix://${pathUrlQuote gitlabSocket}";
http_settings.self_signed_cert = false; http_settings.self_signed_cert = false;
@ -517,6 +517,12 @@ in {
''; '';
}; };
extraShellConfig = mkOption {
type = types.attrs;
default = {};
description = "Extra configuration to merge into shell-config.yml";
};
extraConfig = mkOption { extraConfig = mkOption {
type = types.attrs; type = types.attrs;
default = {}; default = {};

View File

@ -20,13 +20,13 @@
python3.pkgs.buildPythonApplication rec { python3.pkgs.buildPythonApplication rec {
pname = "gSpeech"; pname = "gSpeech";
version = "0.9.2"; version = "0.10.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "mothsart"; owner = "mothsart";
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "11pvdpb9jjssp8nmlj21gs7ncgfm89kw26mfc8c2x8w2q4h92ja3"; sha256 = "1i0jwgxcn94nsi7c0ad0w77y04g04ka2szijzfqzqfnacdmdyrfc";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
@ -56,8 +56,8 @@ python3.pkgs.buildPythonApplication rec {
]; ];
postFixup = '' postFixup = ''
wrapProgram $out/bin/gspeech --prefix PATH : ${lib.makeBinPath [ picotts ]} wrapProgram $out/bin/gspeech --prefix PATH : ${lib.makeBinPath [ picotts sox ]}
wrapProgram $out/bin/gspeech-cli --prefix PATH : ${lib.makeBinPath [ picotts ]} wrapProgram $out/bin/gspeech-cli --prefix PATH : ${lib.makeBinPath [ picotts sox ]}
''; '';
strictDeps = false; strictDeps = false;

View File

@ -2,13 +2,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "parlatype"; pname = "parlatype";
version = "2.0"; version = "2.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "gkarsay"; owner = "gkarsay";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "026i19vkdq35rldbjp1wglamr22a1330iv736mmgbd8fs7vz22nx"; sha256 = "1k53q0kbwpnbgyr0lmfzf5sm4f93d8nbjrzdz9pdhzpxgihndg25";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View File

@ -8,7 +8,6 @@
, gobject-introspection , gobject-introspection
, gst_all_1 , gst_all_1
, gtk3 , gtk3
, libgnome-keyring
, libnotify , libnotify
, pango , pango
, webkitgtk , webkitgtk
@ -22,6 +21,7 @@
, pygobject3 , pygobject3
, pyyaml , pyyaml
, requests , requests
, keyring
# commands that lutris needs # commands that lutris needs
, xrandr , xrandr
@ -71,13 +71,13 @@ let
in buildPythonApplication rec { in buildPythonApplication rec {
pname = "lutris-original"; pname = "lutris-original";
version = "0.5.6"; version = "0.5.7.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "lutris"; owner = "lutris";
repo = "lutris"; repo = "lutris";
rev = "v${version}"; rev = "v${version}";
sha256 = "1f78qhyy8xqdg0rhxcwkap1bmg5mfxhb8qw1vbpxr6g62ajpwksa"; sha256 = "12ispwkbbm5aq263n3bdjmjfkpwplizacnqs2c0wnag4zj4kpm29";
}; };
nativeBuildInputs = [ wrapGAppsHook ]; nativeBuildInputs = [ wrapGAppsHook ];
@ -88,14 +88,13 @@ in buildPythonApplication rec {
gnome-desktop gnome-desktop
gobject-introspection gobject-introspection
gtk3 gtk3
libgnome-keyring
libnotify libnotify
pango pango
webkitgtk webkitgtk
] ++ gstDeps; ] ++ gstDeps;
propagatedBuildInputs = [ propagatedBuildInputs = [
evdev distro pyyaml pygobject3 requests pillow dbus-python evdev distro pyyaml pygobject3 requests pillow dbus-python keyring
]; ];
# avoid double wrapping # avoid double wrapping

View File

@ -119,9 +119,13 @@ in stdenv.mkDerivation {
--replace /opt $out/share \ --replace /opt $out/share \
--replace $out/share/google/$appname/google-$appname $exe --replace $out/share/google/$appname/google-$appname $exe
for icon_file in $out/share/google/chrome*/product_logo_*[0-9].png; do for icon_file in $out/share/google/chrome*/product_logo_[0-9]*.png; do
num_and_suffix="''${icon_file##*logo_}" num_and_suffix="''${icon_file##*logo_}"
icon_size="''${num_and_suffix%.*}" if [ $dist = "stable" ]; then
icon_size="''${num_and_suffix%.*}"
else
icon_size="''${num_and_suffix%_*}"
fi
logo_output_prefix="$out/share/icons/hicolor" logo_output_prefix="$out/share/icons/hicolor"
logo_output_path="$logo_output_prefix/''${icon_size}x''${icon_size}/apps" logo_output_path="$logo_output_prefix/''${icon_size}x''${icon_size}/apps"
mkdir -p "$logo_output_path" mkdir -p "$logo_output_path"

View File

@ -1,4 +1,4 @@
{ buildGoModule, fetchFromGitHub, lib }: { buildGoModule, fetchFromGitHub, lib, installShellFiles }:
buildGoModule rec { buildGoModule rec {
pname = "tanka"; pname = "tanka";
@ -17,6 +17,13 @@ buildGoModule rec {
buildFlagsArray = [ "-ldflags=-s -w -X main.Version=${version}" ]; buildFlagsArray = [ "-ldflags=-s -w -X main.Version=${version}" ];
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
echo "complete -C $out/bin/tk tk" > tk.bash
installShellCompletion tk.bash
'';
meta = with lib; { meta = with lib; {
description = "Flexible, reusable and concise configuration for Kubernetes"; description = "Flexible, reusable and concise configuration for Kubernetes";
homepage = "https://github.com/grafana/tanka/"; homepage = "https://github.com/grafana/tanka/";

View File

@ -0,0 +1,45 @@
{
stdenv,
fetchurl,
appimageTools,
libsecret
}:
let
version = "3.4.1";
pname = "timeular";
name = "${pname}-${version}";
src = fetchurl {
url = "https://s3.amazonaws.com/timeular-desktop-packages/linux/production/Timeular-${version}.AppImage";
sha256 = "1s5jjdl1nzq9yd582lqs904yl10mp0s25897zmifmcbw1vz38bar";
};
appimageContents = appimageTools.extractType2 {
inherit name src;
};
in appimageTools.wrapType2 rec {
inherit name src;
extraPkgs = pkgs: with pkgs; [
libsecret
];
extraInstallCommands = ''
mv $out/bin/{${name},${pname}}
install -m 444 -D ${appimageContents}/timeular.desktop $out/share/applications/timeular.desktop
install -m 444 -D ${appimageContents}/timeular.png $out/share/icons/hicolor/512x512/apps/timeular.png
substituteInPlace $out/share/applications/timeular.desktop --replace 'Exec=AppRun' 'Exec=${pname}'
'';
meta = with stdenv.lib; {
description = "Timetracking by flipping 8-sided dice";
longDescription = ''
The Timeular Tracker is an 8-sided dice that sits on your desk.
Assign an activity to each side and flip to start tracking your time.
The desktop app tell you where every minute of your day is spent.
'';
homepage = https://timeular.com;
license = licenses.unfree;
maintainers = with maintainers; [ ktor ];
platforms = [ "x86_64-linux" ];
};
}

View File

@ -0,0 +1,34 @@
{ stdenv, fetchFromGitHub, fetchurl }:
stdenv.mkDerivation rec {
pname = "whisper";
version = "2.0.1";
src = fetchFromGitHub {
owner = "refresh-bio";
repo = pname;
rev = "v${version}";
sha256 = "0wpx1w1mar2d6zq2v14vy6nn896ds1n3zshxhhrrj5d528504iyw";
};
preConfigure = ''
cd src
# disable default static linking
sed -i 's/ -static / /' makefile
'';
installPhase = ''
runHook preInstall
install -Dt $out/bin whisper whisper-index
runHook postInstall
'';
meta = with stdenv.lib; {
description = "Short read sequence mapper";
license = licenses.gpl3;
homepage = "https://github.com/refresh-bio/whisper";
maintainers = with maintainers; [ jbedo ];
platforms = platforms.x86_64;
};
}

View File

@ -0,0 +1,30 @@
{ stdenv, fetchurl, lib, autoPatchelfHook }:
stdenv.mkDerivation rec {
pname = "p4";
version = "2020.1.1991450";
src = fetchurl {
url = "https://cdist2.perforce.com/perforce/r20.1/bin.linux26x86_64/helix-core-server.tgz";
sha256 = "0nhcxhwx3scx6vf7i2bc8j0b1l57lmq9bfy1cfbfbqasd3an721k";
};
sourceRoot = ".";
dontBuild = true;
nativeBuildInputs = [ autoPatchelfHook ];
installPhase = ''
mkdir -p $out/bin
cp p4 p4broker p4d p4p $out/bin
'';
meta = {
description = "Perforce Command-Line Client";
homepage = "https://www.perforce.com";
license = lib.licenses.unfree;
platforms = [ "x86_64-linux" ];
maintainers = with lib.maintainers; [ corngood ];
};
}

View File

@ -105,81 +105,81 @@ let
"disabled" "checkPhase" "checkInputs" "doCheck" "doInstallCheck" "dontWrapPythonPrograms" "catchConflicts" "format" "disabled" "checkPhase" "checkInputs" "doCheck" "doInstallCheck" "dontWrapPythonPrograms" "catchConflicts" "format"
]) // { ]) // {
name = namePrefix + name; name = namePrefix + name;
nativeBuildInputs = [ nativeBuildInputs = [
python python
wrapPython wrapPython
ensureNewerSourcesForZipFilesHook # move to wheel installer (pip) or builder (setuptools, flit, ...)? ensureNewerSourcesForZipFilesHook # move to wheel installer (pip) or builder (setuptools, flit, ...)?
pythonRecompileBytecodeHook # Remove when solved https://github.com/NixOS/nixpkgs/issues/81441 pythonRecompileBytecodeHook # Remove when solved https://github.com/NixOS/nixpkgs/issues/81441
pythonRemoveTestsDirHook pythonRemoveTestsDirHook
] ++ lib.optionals catchConflicts [ ] ++ lib.optionals catchConflicts [
setuptools pythonCatchConflictsHook setuptools pythonCatchConflictsHook
] ++ lib.optionals removeBinBytecode [ ] ++ lib.optionals removeBinBytecode [
pythonRemoveBinBytecodeHook pythonRemoveBinBytecodeHook
] ++ lib.optionals (lib.hasSuffix "zip" (attrs.src.name or "")) [ ] ++ lib.optionals (lib.hasSuffix "zip" (attrs.src.name or "")) [
unzip unzip
] ++ lib.optionals (format == "setuptools") [ ] ++ lib.optionals (format == "setuptools") [
setuptoolsBuildHook setuptoolsBuildHook
] ++ lib.optionals (format == "flit") [ ] ++ lib.optionals (format == "flit") [
flitBuildHook flitBuildHook
] ++ lib.optionals (format == "pyproject") [ ] ++ lib.optionals (format == "pyproject") [
pipBuildHook pipBuildHook
] ++ lib.optionals (format == "wheel") [ ] ++ lib.optionals (format == "wheel") [
wheelUnpackHook wheelUnpackHook
] ++ lib.optionals (format == "egg") [ ] ++ lib.optionals (format == "egg") [
eggUnpackHook eggBuildHook eggInstallHook eggUnpackHook eggBuildHook eggInstallHook
] ++ lib.optionals (!(format == "other") || dontUsePipInstall) [ ] ++ lib.optionals (!(format == "other") || dontUsePipInstall) [
pipInstallHook pipInstallHook
] ++ lib.optionals (stdenv.buildPlatform == stdenv.hostPlatform) [ ] ++ lib.optionals (stdenv.buildPlatform == stdenv.hostPlatform) [
# This is a test, however, it should be ran independent of the checkPhase and checkInputs # This is a test, however, it should be ran independent of the checkPhase and checkInputs
pythonImportsCheckHook pythonImportsCheckHook
] ++ lib.optionals (python.pythonAtLeast "3.3") [ ] ++ lib.optionals (python.pythonAtLeast "3.3") [
# Optionally enforce PEP420 for python3 # Optionally enforce PEP420 for python3
pythonNamespacesHook pythonNamespacesHook
] ++ nativeBuildInputs; ] ++ nativeBuildInputs;
buildInputs = buildInputs ++ pythonPath; buildInputs = buildInputs ++ pythonPath;
propagatedBuildInputs = propagatedBuildInputs ++ [ python ]; propagatedBuildInputs = propagatedBuildInputs ++ [ python ];
inherit strictDeps; inherit strictDeps;
LANG = "${if python.stdenv.isDarwin then "en_US" else "C"}.UTF-8"; LANG = "${if python.stdenv.isDarwin then "en_US" else "C"}.UTF-8";
# Python packages don't have a checkPhase, only an installCheckPhase # Python packages don't have a checkPhase, only an installCheckPhase
doCheck = false; doCheck = false;
doInstallCheck = attrs.doCheck or true; doInstallCheck = attrs.doCheck or true;
installCheckInputs = [ installCheckInputs = [
] ++ lib.optionals (format == "setuptools") [ ] ++ lib.optionals (format == "setuptools") [
# Longer-term we should get rid of this and require # Longer-term we should get rid of this and require
# users of this function to set the `installCheckPhase` or # users of this function to set the `installCheckPhase` or
# pass in a hook that sets it. # pass in a hook that sets it.
setuptoolsCheckHook setuptoolsCheckHook
] ++ checkInputs; ] ++ checkInputs;
postFixup = lib.optionalString (!dontWrapPythonPrograms) '' postFixup = lib.optionalString (!dontWrapPythonPrograms) ''
wrapPythonPrograms wrapPythonPrograms
'' + attrs.postFixup or ''''; '' + attrs.postFixup or '''';
# Python packages built through cross-compilation are always for the host platform. # Python packages built through cross-compilation are always for the host platform.
disallowedReferences = lib.optionals (python.stdenv.hostPlatform != python.stdenv.buildPlatform) [ python.pythonForBuild ]; disallowedReferences = lib.optionals (python.stdenv.hostPlatform != python.stdenv.buildPlatform) [ python.pythonForBuild ];
# For now, revert recompilation of bytecode. # For now, revert recompilation of bytecode.
dontUsePythonRecompileBytecode = true; dontUsePythonRecompileBytecode = true;
meta = { meta = {
# default to python's platforms # default to python's platforms
platforms = python.meta.platforms; platforms = python.meta.platforms;
isBuildPythonPackage = python.meta.platforms; isBuildPythonPackage = python.meta.platforms;
} // meta; } // meta;
} // lib.optionalAttrs (attrs?checkPhase) { } // lib.optionalAttrs (attrs?checkPhase) {
# If given use the specified checkPhase, otherwise use the setup hook. # If given use the specified checkPhase, otherwise use the setup hook.
# Longer-term we should get rid of `checkPhase` and use `installCheckPhase`. # Longer-term we should get rid of `checkPhase` and use `installCheckPhase`.
installCheckPhase = attrs.checkPhase; installCheckPhase = attrs.checkPhase;
})); }));
passthru.updateScript = let passthru.updateScript = let
filename = builtins.head (lib.splitString ":" self.meta.position); filename = builtins.head (lib.splitString ":" self.meta.position);
in attrs.passthru.updateScript or [ update-python-libraries filename ]; in attrs.passthru.updateScript or [ update-python-libraries filename ];
in lib.extendDerivation true passthru self in lib.extendDerivation true passthru self

View File

@ -5,13 +5,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "duckdb"; pname = "duckdb";
version = "0.1.7"; version = "0.1.8";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "cwida"; owner = "cwida";
repo = "duckdb"; repo = "duckdb";
rev = "v${version}"; rev = "v${version}";
sha256 = "1pz2q9c3803w8vbqiz9lag4g1kgl4ff9xca0kpcz72ap39pbp5jk"; sha256 = "15qn967q9v23l0sgb2jqb77z4qdkyn1zwdpj4b0rd9zk5h3fzj55";
}; };
nativeBuildInputs = [ cmake ]; nativeBuildInputs = [ cmake ];

View File

@ -97,8 +97,10 @@ let
url = "https://git.archlinux.org/svntogit/packages.git/plain/trunk/qtbug-77037-workaround.patch?h=packages/qt5-webengine&id=fc77d6b3d5ec74e421b58f199efceb2593cbf951"; url = "https://git.archlinux.org/svntogit/packages.git/plain/trunk/qtbug-77037-workaround.patch?h=packages/qt5-webengine&id=fc77d6b3d5ec74e421b58f199efceb2593cbf951";
sha256 = "1gv733qfdn9746nbqqxzyjx4ijjqkkb7zb71nxax49nna5bri3am"; sha256 = "1gv733qfdn9746nbqqxzyjx4ijjqkkb7zb71nxax49nna5bri3am";
}) })
] ] ++ optionals stdenv.isDarwin [
++ optional stdenv.isDarwin ./qtwebengine-darwin-no-platform-check.patch; ./qtwebengine-darwin-no-platform-check.patch
./qtwebengine-darwin-fix-failed-static-assertion.patch
];
qtwebkit = [ ./qtwebkit.patch ] qtwebkit = [ ./qtwebkit.patch ]
++ optionals stdenv.isDarwin [ ++ optionals stdenv.isDarwin [
./qtwebkit-darwin-no-readline.patch ./qtwebkit-darwin-no-readline.patch

View File

@ -0,0 +1,31 @@
Fix a following build error:
In file included from ../../3rdparty/chromium/device/bluetooth/bluetooth_remote_gatt_characteristic_mac.mm:7:
../../3rdparty/chromium/base/bind.h:59:3: error: static_assert failed "Bound argument |i| of type |Arg| cannot be forwarded as |Unwrapped| to the bound functor, which declares it as |Param|."
static_assert(
^
../../3rdparty/chromium/base/bind.h:91:7: note: in instantiation of template class 'base::internal::AssertConstructible<1, long, long, const long &, NSError *>' requested here
: AssertConstructible<Ns, Args, std::decay_t<Args>, Unwrapped, Params>... {
^
../../3rdparty/chromium/base/bind.h:213:27: note: in instantiation of template class 'base::internal::AssertBindArgsValidity<std::__1::integer_sequence<unsigned long, 0, 1>, base::internal::TypeList<base::WeakPtr<device::BluetoothRemoteGattCharacteristicMac>, long>, base::internal::TypeList<device::BluetoothRemoteGattCharacteristicMac *, const long &>, base::internal::TypeList<device::BluetoothRemoteGattCharacteristicMac *, NSError *> >' requested here
static_assert(internal::AssertBindArgsValidity<
^
../../3rdparty/chromium/base/bind.h:242:16: note: in instantiation of function template specialization 'base::BindRepeating<void (device::BluetoothRemoteGattCharacteristicMac::*)(NSError *), base::WeakPtr<device::BluetoothRemoteGattCharacteristicMac>, long>' requested here
return base::BindRepeating(std::forward<Functor>(functor),
^
../../3rdparty/chromium/device/bluetooth/bluetooth_remote_gatt_characteristic_mac.mm:211:15: note: in instantiation of function template specialization 'base::Bind<void (device::BluetoothRemoteGattCharacteristicMac::*)(NSError *), base::WeakPtr<device::BluetoothRemoteGattCharacteristicMac>, long>' requested here
base::Bind(&BluetoothRemoteGattCharacteristicMac::DidWriteValue,
^
Resurrected from https://github.com/NixOS/nixpkgs/blob/ddcf01bca6c7a7a7f096bec836a1e6a707ad473d/pkgs/development/libraries/qt-5/5.11/qtwebengine-clang-fix.patch because the same problem is present in 5.12 when compiling on macOS.
--- a/src/3rdparty/chromium/device/bluetooth/bluetooth_remote_gatt_characteristic_mac.mm
+++ b/src/3rdparty/chromium/device/bluetooth/bluetooth_remote_gatt_characteristic_mac.mm
@@ -209,7 +209,7 @@ void BluetoothRemoteGattCharacteristicMac::WriteRemoteCharacteristic(
base::ThreadTaskRunnerHandle::Get()->PostTask(
FROM_HERE,
base::Bind(&BluetoothRemoteGattCharacteristicMac::DidWriteValue,
- weak_ptr_factory_.GetWeakPtr(), nil));
+ weak_ptr_factory_.GetWeakPtr(), nullptr));
}
}

View File

@ -1,4 +1,18 @@
diff --git a/configure.pri b/configure.pri
index 897bea54..6f834c20 100644
--- a/configure.pri
+++ b/configure.pri
@@ -269,7 +269,7 @@ defineReplace(webEngineGetMacOSVersion) {
}
defineReplace(webEngineGetMacOSSDKVersion) {
- value = $$system("/usr/bin/xcodebuild -sdk $$QMAKE_MAC_SDK -version ProductVersion 2>/dev/null")
+ value = $$system("xcrun --show-sdk-version")
return($$value)
}
diff --git a/mkspecs/features/platform.prf b/mkspecs/features/platform.prf diff --git a/mkspecs/features/platform.prf b/mkspecs/features/platform.prf
index 35eb6b89..7eed640a 100644
--- a/mkspecs/features/platform.prf --- a/mkspecs/features/platform.prf
+++ b/mkspecs/features/platform.prf +++ b/mkspecs/features/platform.prf
@@ -40,8 +40,6 @@ defineTest(isPlatformSupported) { @@ -40,8 +40,6 @@ defineTest(isPlatformSupported) {
@ -19,15 +33,39 @@ diff --git a/mkspecs/features/platform.prf b/mkspecs/features/platform.prf
} }
} else { } else {
skipBuild("Unknown platform. Qt WebEngine only supports Linux, Windows, and macOS.") skipBuild("Unknown platform. Qt WebEngine only supports Linux, Windows, and macOS.")
@@ -111,7 +107,7 @@ defineTest(isMinOSXSDKVersion) {
requested_minor = $$2
requested_patch = $$3
isEmpty(requested_patch): requested_patch = 0
- WEBENGINE_OSX_SDK_PRODUCT_VERSION = $$system("/usr/bin/xcodebuild -sdk $$QMAKE_MAC_SDK -version ProductVersion 2>/dev/null")
+ WEBENGINE_OSX_SDK_PRODUCT_VERSION = $$system("xcrun --show-sdk-version")
export(WEBENGINE_OSX_SDK_PRODUCT_VERSION)
isEmpty(WEBENGINE_OSX_SDK_PRODUCT_VERSION) {
skipBuild("Could not resolve SDK product version for \'$$QMAKE_MAC_SDK\'.")
diff --git a/src/core/config/mac_osx.pri b/src/core/config/mac_osx.pri diff --git a/src/core/config/mac_osx.pri b/src/core/config/mac_osx.pri
index 4426901c..3aa6057e 100644
--- a/src/core/config/mac_osx.pri --- a/src/core/config/mac_osx.pri
+++ b/src/core/config/mac_osx.pri +++ b/src/core/config/mac_osx.pri
@@ -5,8 +5,6 @@ load(functions) @@ -5,16 +5,16 @@ load(functions)
# otherwise query for it. # otherwise query for it.
QMAKE_MAC_SDK_VERSION = $$eval(QMAKE_MAC_SDK.$${QMAKE_MAC_SDK}.SDKVersion) QMAKE_MAC_SDK_VERSION = $$eval(QMAKE_MAC_SDK.$${QMAKE_MAC_SDK}.SDKVersion)
isEmpty(QMAKE_MAC_SDK_VERSION) { isEmpty(QMAKE_MAC_SDK_VERSION) {
- QMAKE_MAC_SDK_VERSION = $$system("/usr/bin/xcodebuild -sdk $${QMAKE_MAC_SDK} -version SDKVersion 2>/dev/null") - QMAKE_MAC_SDK_VERSION = $$system("/usr/bin/xcodebuild -sdk $${QMAKE_MAC_SDK} -version SDKVersion 2>/dev/null")
- isEmpty(QMAKE_MAC_SDK_VERSION): error("Could not resolve SDK version for \'$${QMAKE_MAC_SDK}\'") + QMAKE_MAC_SDK_VERSION = $$system("xcrun --show-sdk-version")
isEmpty(QMAKE_MAC_SDK_VERSION): error("Could not resolve SDK version for \'$${QMAKE_MAC_SDK}\'")
} }
QMAKE_CLANG_DIR = "/usr" QMAKE_CLANG_DIR = "/usr"
-QMAKE_CLANG_PATH = $$eval(QMAKE_MAC_SDK.macx-clang.$${QMAKE_MAC_SDK}.QMAKE_CXX)
-!isEmpty(QMAKE_CLANG_PATH) {
- clang_dir = $$clean_path("$$dirname(QMAKE_CLANG_PATH)/../")
- exists($$clang_dir): QMAKE_CLANG_DIR = $$clang_dir
-}
+# QMAKE_CLANG_PATH = $$eval(QMAKE_MAC_SDK.macx-clang.$${QMAKE_MAC_SDK}.QMAKE_CXX)
+# !isEmpty(QMAKE_CLANG_PATH) {
+# clang_dir = $$clean_path("$$dirname(QMAKE_CLANG_PATH)/../")
+# exists($$clang_dir): QMAKE_CLANG_DIR = $$clang_dir
+# }
QMAKE_CLANG_PATH = "$${QMAKE_CLANG_DIR}/bin/clang++"
message("Using clang++ from $${QMAKE_CLANG_PATH}")

View File

@ -13,7 +13,7 @@
, systemd , systemd
, enableProprietaryCodecs ? true , enableProprietaryCodecs ? true
, gn , gn
, cups, darwin, openbsm, runCommand, xcbuild , cups, darwin, openbsm, runCommand, xcbuild, writeScriptBin
, ffmpeg_3 ? null , ffmpeg_3 ? null
, lib, stdenv , lib, stdenv
}: }:
@ -51,6 +51,13 @@ qtModule {
substituteInPlace ./src/3rdparty/chromium/v8/gypfiles/standalone.gypi \ substituteInPlace ./src/3rdparty/chromium/v8/gypfiles/standalone.gypi \
--replace /bin/echo ${coreutils}/bin/echo --replace /bin/echo ${coreutils}/bin/echo
'' ''
# Prevent Chromium build script from making the path to `clang` relative to
# the build directory. `clang_base_path` is the value of `QMAKE_CLANG_DIR`
# from `src/core/config/mac_osx.pri`.
+ optionalString stdenv.isDarwin ''
substituteInPlace ./src/3rdparty/chromium/build/toolchain/mac/BUILD.gn \
--replace 'prefix = rebase_path("$clang_base_path/bin/", root_build_dir)' 'prefix = "$clang_base_path/bin/"'
''
# Patch library paths in Qt sources # Patch library paths in Qt sources
+ '' + ''
sed -i \ sed -i \
@ -69,32 +76,15 @@ qtModule {
'' ''
+ optionalString stdenv.isDarwin ('' + optionalString stdenv.isDarwin (''
substituteInPlace src/core/config/mac_osx.pri \ substituteInPlace src/core/config/mac_osx.pri \
--replace /usr ${stdenv.cc} --replace 'QMAKE_CLANG_DIR = "/usr"' 'QMAKE_CLANG_DIR = "${stdenv.cc}"'
'' ''
# Following is required to prevent a build error:
# ninja: error: '/nix/store/z8z04p0ph48w22rqzx7ql67gy8cyvidi-SDKs/MacOSX10.12.sdk/usr/include/mach/exc.defs', needed by 'gen/third_party/crashpad/crashpad/util/mach/excUser.c', missing and no known rule to make it
+ (optionalString (lib.versionAtLeast qtCompatVersion "5.11") '' + (optionalString (lib.versionAtLeast qtCompatVersion "5.11") ''
substituteInPlace src/3rdparty/chromium/third_party/crashpad/crashpad/util/BUILD.gn \ substituteInPlace src/3rdparty/chromium/third_party/crashpad/crashpad/util/BUILD.gn \
--replace '$sysroot/usr' "${darwin.xnu}" --replace '$sysroot/usr' "${darwin.xnu}"
'') '')
+ '' + ''
cat <<EOF > src/3rdparty/chromium/build/mac/find_sdk.py
#!/usr/bin/env python
print("${darwin.apple_sdk.sdk}")
print("10.12.0")
EOF
cat <<EOF > src/3rdparty/chromium/build/config/mac/sdk_info.py
#!/usr/bin/env python
print('xcode_version="0910"')
print('xcode_version_int=910')
print('xcode_build="9B55"')
print('machine_os_build="17E199"')
print('sdk_path=""')
print('sdk_version="10.10"')
print('sdk_platform_path=""')
print('sdk_build="17B41"')
EOF
# Apple has some secret stuff they don't share with OpenBSM # Apple has some secret stuff they don't share with OpenBSM
substituteInPlace src/3rdparty/chromium/base/mac/mach_port_broker.mm \ substituteInPlace src/3rdparty/chromium/base/mac/mach_port_broker.mm \
--replace "audit_token_to_pid(msg.trailer.msgh_audit)" "msg.trailer.msgh_audit.val[5]" --replace "audit_token_to_pid(msg.trailer.msgh_audit)" "msg.trailer.msgh_audit.val[5]"
@ -111,8 +101,8 @@ EOF
# TODO: investigate and fix properly # TODO: investigate and fix properly
"-march=westmere" "-march=westmere"
] ++ lib.optionals stdenv.isDarwin [ ] ++ lib.optionals stdenv.isDarwin [
"-DMAC_OS_X_VERSION_MAX_ALLOWED=MAC_OS_X_VERSION_10_10" "-DMAC_OS_X_VERSION_MAX_ALLOWED=MAC_OS_X_VERSION_10_12"
"-DMAC_OS_X_VERSION_MIN_REQUIRED=MAC_OS_X_VERSION_10_10" "-DMAC_OS_X_VERSION_MIN_REQUIRED=MAC_OS_X_VERSION_10_12"
# #
# Prevent errors like # Prevent errors like
@ -189,6 +179,7 @@ EOF
CoreWLAN CoreWLAN
Quartz Quartz
Cocoa Cocoa
LocalAuthentication
openbsm openbsm
libunwind libunwind
@ -197,6 +188,21 @@ EOF
buildInputs = optionals stdenv.isDarwin (with darwin; [ buildInputs = optionals stdenv.isDarwin (with darwin; [
cups cups
# `sw_vers` is used by `src/3rdparty/chromium/build/config/mac/sdk_info.py`
# to get some information about the host platform.
(writeScriptBin "sw_vers" ''
#!${stdenv.shell}
while [ $# -gt 0 ]; do
case "$1" in
-buildVersion) echo "17E199";;
*) break ;;
esac
shift
done
'')
# For sandbox.h include # For sandbox.h include
(runCommand "MacOS_SDK_sandbox.h" {} '' (runCommand "MacOS_SDK_sandbox.h" {} ''
install -Dm444 "${lib.getDev darwin.apple_sdk.sdk}"/include/sandbox.h "$out"/include/sandbox.h install -Dm444 "${lib.getDev darwin.apple_sdk.sdk}"/include/sandbox.h "$out"/include/sandbox.h

View File

@ -0,0 +1,30 @@
{ lib, buildDunePackage, fetchFromGitHub, alcotest, cryptokit, fmt, yojson
, base64, re, ppx_deriving }:
buildDunePackage rec {
pname = "jwto";
version = "0.3.0";
minimumOCamlVersion = "4.05";
src = fetchFromGitHub {
owner = "sporto";
repo = "jwto";
rev = version;
sha256 = "1p799zk8j9c0002xzi2x7ndj1bzqf14744ampcqndrjnsi7mq71s";
};
propagatedBuildInputs =
[ cryptokit fmt yojson base64 re ppx_deriving ];
checkInputs = [ alcotest ];
doCheck = true;
meta = {
homepage = "https://github.com/sporto/jwto";
description = "JSON Web Tokens (JWT) for OCaml";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ Zimmi48 jtcoolen ];
};
}

View File

@ -1,20 +1,30 @@
{ stdenv, buildPythonPackage, fetchPypi, isPy3k, pycodestyle, isort }: { stdenv, buildPythonPackage, isPy3k, fetchPypi, pycodestyle, isort }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "avro"; pname = "avro";
version = "1.9.2"; version = "1.10.0";
disabled = isPy3k;
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "4487f0e91d0d44142bd08b3c6da57073b720c3effb02eeb4e2e822804964c56b"; sha256 = "00rg1nn9szwm0p1lcda0w3iyqy9mx2y9zv0hdwaz6k0bsagziydv";
}; };
patchPhase = ''
# this test requires network access
sed -i 's/test_server_with_path/noop/' avro/test/test_ipc.py
'' + (stdenv.lib.optionalString isPy3k ''
# these files require twisted, which is not python3 compatible
rm avro/txipc.py
rm avro/test/txsample*
'');
nativeBuildInputs = [ pycodestyle ]; nativeBuildInputs = [ pycodestyle ];
propagatedBuildInputs = [ isort ]; propagatedBuildInputs = [ isort ];
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "A serialization and RPC framework"; description = "A serialization and RPC framework";
homepage = "https://pypi.python.org/pypi/avro/"; homepage = "https://pypi.python.org/pypi/avro/";
license = licenses.asl20;
maintainers = [ maintainers.zimbatm ];
}; };
} }

View File

@ -1,30 +1,24 @@
{ stdenv, fetchPypi, fetchpatch { stdenv, fetchFromGitHub
, buildPythonApplication, python, pythonOlder , buildPythonApplication, python
, mock, nose, pathpy, pyhamcrest, pytest_4 , mock, pathpy, pyhamcrest, pytest, pytest-html
, glibcLocales, parse, parse-type, six , glibcLocales
, traceback2 , colorama, cucumber-tag-expressions, parse, parse-type, six
}: }:
buildPythonApplication rec { buildPythonApplication rec {
pname = "behave"; pname = "behave";
version = "1.2.6"; version = "1.2.7.dev1";
src = fetchPypi { src = fetchFromGitHub {
inherit pname version; owner = "behave";
sha256 = "11hsz365qglvpp1m1w16239c3kiw15lw7adha49lqaakm8kj6rmr"; repo = pname;
rev = "v${version}";
sha256 = "1ssgixmqlg8sxsyalr83a1970njc2wg3zl8idsmxnsljwacv7qwv";
}; };
patches = [ checkInputs = [ mock pathpy pyhamcrest pytest pytest-html ];
# Fix tests on Python 2.7
(fetchpatch {
url = "https://github.com/behave/behave/commit/0a9430a94881cd18437deb03d2ae23afea0f009c.patch";
sha256 = "1nrh9ii6ik6gw2kjh8a6jk4mg5yqw3jfjfllbyxardclsab62ydy";
})
];
checkInputs = [ mock nose pathpy pyhamcrest pytest_4 ];
buildInputs = [ glibcLocales ]; buildInputs = [ glibcLocales ];
propagatedBuildInputs = [ parse parse-type six ] ++ stdenv.lib.optional (pythonOlder "3.0") traceback2; propagatedBuildInputs = [ colorama cucumber-tag-expressions parse parse-type six ];
postPatch = '' postPatch = ''
patchShebangs bin patchShebangs bin
@ -36,7 +30,7 @@ buildPythonApplication rec {
export LANG="en_US.UTF-8" export LANG="en_US.UTF-8"
export LC_ALL="en_US.UTF-8" export LC_ALL="en_US.UTF-8"
pytest test tests pytest tests
${python.interpreter} bin/behave -f progress3 --stop --tags='~@xfail' features/ ${python.interpreter} bin/behave -f progress3 --stop --tags='~@xfail' features/
${python.interpreter} bin/behave -f progress3 --stop --tags='~@xfail' tools/test-features/ ${python.interpreter} bin/behave -f progress3 --stop --tags='~@xfail' tools/test-features/
@ -47,6 +41,6 @@ buildPythonApplication rec {
homepage = "https://github.com/behave/behave"; homepage = "https://github.com/behave/behave";
description = "behaviour-driven development, Python style"; description = "behaviour-driven development, Python style";
license = licenses.bsd2; license = licenses.bsd2;
maintainers = with maintainers; [ alunduil ]; maintainers = with maintainers; [ alunduil maxxk ];
}; };
} }

View File

@ -73,6 +73,13 @@ let
# This patch disables the test that tries to read /etc/os-release which # This patch disables the test that tries to read /etc/os-release which
# is not accessible in sandboxed builds. # is not accessible in sandboxed builds.
./skip_test_linux_distro.patch ./skip_test_linux_distro.patch
# fix compatibility with the latest SQLAlchemy
(fetchpatch {
url = "https://github.com/buildbot/buildbot/commit/96f3cd1c5f5c82b733baecb133576366ecf544fc.patch";
sha256 = "0n1jm13h08j7ksbs8ixayn3wziq5hzyp3kscz9fpgxd8gl885y5n";
stripLen = 1;
})
]; ];
postPatch = '' postPatch = ''

View File

@ -0,0 +1,21 @@
{ lib, fetchPypi, buildPythonPackage, pytest, pytest-html }:
buildPythonPackage rec {
pname = "cucumber-tag-expressions";
version = "3.0.0";
src = fetchPypi {
inherit pname version;
sha256 = "0kb8dq458sflwl2agb2v9hp04qwygslrhdps819vq27wc44jabxw";
};
checkInputs = [ pytest pytest-html ];
checkPhase = "pytest tests/*/*.py";
meta = with lib; {
homepage = "https://github.com/cucumber/tag-expressions-python";
description = "Provides tag-expression parser for cucumber/behave";
license = licenses.mit;
maintainers = with maintainers; [ maxxk ];
};
}

View File

@ -0,0 +1,25 @@
{ buildPythonPackage, fetchFromGitHub, python, stdenv, django }:
buildPythonPackage rec {
pname = "django-widget-tweaks";
version = "1.4.8";
src = fetchFromGitHub { # package from Pypi missing runtests.py
owner = "jazzband";
repo = pname;
rev = version;
sha256 = "00w1ja56dc7cyw7a3mph69ax6mkch1lsh4p98ijdhzfpjdy36rbg";
};
checkPhase = "${python.interpreter} runtests.py";
propagatedBuildInputs = [ django ];
meta = with stdenv.lib; {
description = "Tweak the form field rendering in templates, not in python-level form definitions.";
homepage = "https://github.com/jazzband/django-widget-tweaks";
license = licenses.mit;
maintainers = with maintainers; [
maxxk
];
};
}

View File

@ -8,11 +8,11 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "mocket"; pname = "mocket";
version = "3.8.7"; version = "3.8.8";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "1zj2p20blf4p071kcs86h2c9sc964x6sahff60gg7y4d2c0iq3rs"; sha256 = "0yqls2hqmfs6i4p2nb89j5icyrqwabalsmwfixfvbjir4fmgad2l";
}; };
patchPhase = '' patchPhase = ''

View File

@ -0,0 +1,46 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, isPy27
, future
, pytestCheckHook
, pytorch
, pyyaml
, tensorflow-tensorboard
, tqdm }:
buildPythonPackage rec {
pname = "pytorch-lightning";
version = "0.8.5";
disabled = isPy27;
src = fetchFromGitHub {
owner = "PyTorchLightning";
repo = pname;
rev = version;
sha256 = "12zhq4pnfcwbgcx7cs99c751gp3w0ysaf5ykv2lv8f4i360w3r5a";
};
propagatedBuildInputs = [
future
pytorch
pyyaml
tensorflow-tensorboard
tqdm
];
checkInputs = [ pytestCheckHook ];
# Some packages are not in NixPkgs; other tests try to build distributed
# models, which doesn't work in the sandbox.
doCheck = false;
pythonImportsCheck = [ "pytorch_lightning" ];
meta = with lib; {
description = "Lightweight PyTorch wrapper for machine learning researchers";
homepage = "https://pytorch-lightning.readthedocs.io";
license = licenses.asl20;
maintainers = with maintainers; [ tbenst ];
};
}

View File

@ -0,0 +1,27 @@
{ stdenv, fetchFromGitHub, cmake, asciidoc }:
stdenv.mkDerivation rec {
pname = "mkrom";
version = "unstable-2020-06-11";
src = fetchFromGitHub {
owner = "KnightOS";
repo = "mkrom";
rev = "7a735ecbe09409e74680a9dc1c50dd4db99a409f";
sha256 = "18h7a0fb5zb991iy9ljpknmk9qvl9nz3yh1zh5bm399rpxn4nzx3";
};
nativeBuildInputs = [
asciidoc
cmake
];
hardeningDisable = [ "format" ];
meta = with stdenv.lib; {
homepage = "https://knightos.org/";
description = "Packages KnightOS distribution files into a ROM";
license = licenses.mit;
maintainers = with maintainers; [ siraben ];
};
}

View File

@ -1,18 +1,23 @@
{ stdenv, fetchurl, fetchzip, sconsPackages, zlib }: { stdenv
, fetchurl
, fetchzip
, sconsPackages
, zlib
}:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "nsis"; pname = "nsis";
version = "3.05"; version = "3.06.1";
src = src =
fetchurl { fetchurl {
url = "mirror://sourceforge/project/nsis/NSIS%203/${version}/nsis-${version}-src.tar.bz2"; url = "mirror://sourceforge/project/nsis/NSIS%203/${version}/nsis-${version}-src.tar.bz2";
sha256 = "1sbwx5vzpddharkb7nj4q5z3i5fbg4lan63ng738cw4hmc4v7qdn"; sha256 = "1w1z2m982l6j8lw8hy91c3979wbnqglcf4148f9v79vl32znhpcv";
}; };
srcWinDistributable = srcWinDistributable =
fetchzip { fetchzip {
url = "mirror://sourceforge/project/nsis/NSIS%203/${version}/nsis-${version}.zip"; url = "mirror://sourceforge/project/nsis/NSIS%203/${version}/nsis-${version}.zip";
sha256 = "0i3pzdilyy5g0r2c92pd2jl92ji9f75vv98mndzq8vw03a34yh3q"; sha256 = "04qm9jqbcybpwcrjlksggffdyafzwxxcaz9xhjw8w5rb95x7lw5q";
}; };
postUnpack = '' postUnpack = ''

View File

@ -9,13 +9,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "osslsigncode"; pname = "osslsigncode";
version = "unstable-2019-07-25"; version = "unstable-2020-08-02";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "mtrojnar"; owner = "mtrojnar";
repo = pname; repo = pname;
rev = "18810b7e0bb1d8e0d25b6c2565a065cf66bce5d7"; rev = "01b3fb5b542ed0b41e3860aeee7a85b735491ff2";
sha256 = "02jnbr3xdsb5dpll3k65080ryrfr7agawmjavwxd0v40w0an5yq8"; sha256 = "03ynm1ycbi86blglma3xiwadck8kc5yb0gawjzlhyv90jidn680l";
}; };
nativeBuildInputs = [ autoreconfHook libgsf pkgconfig openssl curl ]; nativeBuildInputs = [ autoreconfHook libgsf pkgconfig openssl curl ];
@ -24,8 +24,7 @@ stdenv.mkDerivation rec {
homepage = "https://github.com/mtrojnar/osslsigncode"; homepage = "https://github.com/mtrojnar/osslsigncode";
description = "OpenSSL based Authenticode signing for PE/MSI/Java CAB files"; description = "OpenSSL based Authenticode signing for PE/MSI/Java CAB files";
license = licenses.gpl3Plus; license = licenses.gpl3Plus;
maintainers = [ maintainers.mmahut ]; maintainers = with maintainers; [ mmahut ];
platforms = platforms.all; platforms = platforms.all;
}; };
} }

View File

@ -0,0 +1,21 @@
{ lib, rustPlatform, fetchFromGitHub }:
rustPlatform.buildRustPackage rec {
pname = "rebazel";
version = "0.1.4";
src = fetchFromGitHub {
owner = "meetup";
repo = "rebazel";
rev = "v${version}";
hash = "sha256-v84ZXhtJpejQmP61NmP06+qrtMu/0yb7UyD7U12xlME=";
};
cargoSha256 = "sha256-2FmtbvtNfNoocj3Ly553KBLfOgBAa/eAxOrfZ3NGzzw=";
meta = with lib; {
description = "tool for expediting bazel build workflows";
homepage = "https://github.com/meetup/rebazel";
license = licenses.mit;
maintainers = with maintainers; [ zimbatm ];
};
}

View File

@ -2,13 +2,13 @@
crystal.buildCrystalPackage rec { crystal.buildCrystalPackage rec {
pname = "lucky-cli"; pname = "lucky-cli";
version = "0.21.0"; version = "0.23.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "luckyframework"; owner = "luckyframework";
repo = "lucky_cli"; repo = "lucky_cli";
rev = "v${version}"; rev = "v${version}";
sha256 = "0g0arf13brh6g0hynxs8bsp8jh3dd66rmf2d3qh2qjvk10101g0r"; sha256 = "1qggbczrnrfjba6ipzjkqp6ni4rjc79pxy3vhgd7nq88ipa1sygk";
}; };
# the integration tests will try to clone a remote repos # the integration tests will try to clone a remote repos

View File

@ -1,7 +1,22 @@
{ python3Packages, fetchurl }: { python3Packages, fetchurl, fetchFromGitHub }:
rec { rec {
ansible = ansible_2_9; ansible = ansible_2_10;
# The python module stays at v2.9.x until the related package set has caught up. Therefore v2.10 gets an override
# for now.
ansible_2_10 = python3Packages.toPythonApplication (python3Packages.ansible.overridePythonAttrs (old: rec {
pname = "ansible";
version = "2.10.0";
# TODO: migrate to fetchurl, when release becomes available on releases.ansible.com
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
sha256 = "0k9rs5ajx0chaq0xr1cj4x7fr5n8kd4y856miss6k01iv2m7yx42";
};
}));
ansible_2_9 = python3Packages.toPythonApplication python3Packages.ansible; ansible_2_9 = python3Packages.toPythonApplication python3Packages.ansible;
@ -14,14 +29,4 @@ rec {
sha256 = "19ga0c9qs2b216qjg5k2yknz8ksjn8qskicqspg2d4b8x2nr1294"; sha256 = "19ga0c9qs2b216qjg5k2yknz8ksjn8qskicqspg2d4b8x2nr1294";
}; };
})); }));
ansible_2_7 = python3Packages.toPythonApplication (python3Packages.ansible.overridePythonAttrs (old: rec {
pname = "ansible";
version = "2.7.18";
src = fetchurl {
url = "https://releases.ansible.com/ansible/${pname}-${version}.tar.gz";
sha256 = "0sgshaaqyjq3i035yi5hivmrrwrq05hxrbjrv1w3hfzmvljn41d1";
};
}));
} }

View File

@ -0,0 +1,26 @@
{ buildPythonApplication
, fetchPypi
, pandocfilters
, lib
}:
buildPythonApplication rec {
pname = "pandoc-plantuml-filter";
version = "0.1.2";
src = fetchPypi {
inherit pname version;
sha256 = "08673mfwxsw6s52mgglbdz7ybb68svqyr3s9w97d7rifbwvvc9ia";
};
propagatedBuildInputs = [
pandocfilters
];
meta = with lib; {
homepage = "https://github.com/timofurrer/pandoc-plantuml-filter";
description = "Pandoc filter which converts PlantUML code blocks to PlantUML images.";
license = licenses.mit;
maintainers = with maintainers; [ cmcdragonkai ];
};
}

View File

@ -2,34 +2,29 @@
python3Packages.buildPythonApplication rec { python3Packages.buildPythonApplication rec {
pname = "pubs"; pname = "pubs";
version = "0.8.2"; version = "0.8.3";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "pubs"; owner = "pubs";
repo = "pubs"; repo = "pubs";
rev = "v${version}"; rev = "v${version}";
sha256 = "16zwdqfbmlla6906g3a57a4nj8wnl11fq78r20qms717bzv211j0"; sha256 = "0npgsyxj7kby5laznk5ilkrychs3i68y57gphwk48w8k9fvnl3zc";
}; };
patches = [
# Fix for bibtexparser 1.1.0
(fetchpatch {
url = "https://github.com/pubs/pubs/pull/185/commits/e58ae98b93b8364a07fd5f5f452ba88ad332c948.patch";
sha256 = "1n7zrk119v395jj8wqg8wlymc9l9pq3v752yy3kam9kflc0aashp";
})
# Fix test broken by PyYAML 5.1
(fetchpatch {
url = "https://github.com/pubs/pubs/pull/194/commits/c3cb713ae76528eeeaaeb948fe319a76ab3934d8.patch";
sha256 = "05as418m7wzs65839bb91b2jrs8l68z8ldcjcd9cn4b9fcgsf3rk";
})
];
propagatedBuildInputs = with python3Packages; [ propagatedBuildInputs = with python3Packages; [
argcomplete dateutil configobj feedparser bibtexparser pyyaml requests six beautifulsoup4 argcomplete dateutil configobj feedparser bibtexparser pyyaml requests six
beautifulsoup4
]; ];
checkInputs = with python3Packages; [ pyfakefs mock ddt ]; checkInputs = with python3Packages; [ pyfakefs mock ddt ];
# Disabling git tests because they expect git to be preconfigured
# with the user's details. See
# https://github.com/NixOS/nixpkgs/issues/94663
preCheck = ''
rm tests/test_git.py
'';
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Command-line bibliography manager"; description = "Command-line bibliography manager";
homepage = "https://github.com/pubs/pubs"; homepage = "https://github.com/pubs/pubs";

View File

@ -0,0 +1,24 @@
{ stdenv, rustPlatform, fetchFromGitHub }:
rustPlatform.buildRustPackage rec {
pname = "rargs";
version = "0.3.0";
src = fetchFromGitHub {
owner = "lotabout";
repo = pname;
rev = "v${version}";
sha256 = "188gj05rbivci1z4z29vwdwxlj2w01v5i4avwrxjnj1dd6mmlbxd";
};
cargoSha256 = "0qzkhx0n28f5wy4fral3adn499q3f10q71cd544s4ghqwqn4khc9";
doCheck=false; # `rargs`'s test depends on the deprecated `assert_cli` crate, which in turn is not in Nixpkgs
meta = with stdenv.lib; {
description = "xargs + awk with pattern matching support";
homepage = "https://github.com/lolabout/rargs";
license = with licenses; [ mit ];
maintainers = with maintainers; [ pblkt ];
};
}

View File

@ -1,19 +1,20 @@
{ stdenv, fetchurl, pkgconfig, libusb1 { stdenv, fetchurl, pkgconfig, cryptopp
, qtbase, qttools, makeWrapper, qmake , libusb1, qtbase, qttools, makeWrapper
, withEspeak ? false, espeak ? null, qt5 }: , qmake, withEspeak ? false, espeak ? null
, qt5 }:
let inherit (stdenv.lib) getDev; in let inherit (stdenv.lib) getDev; in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "rockbox-utility"; pname = "rockbox-utility";
version = "1.4.0"; version = "1.4.1";
src = fetchurl { src = fetchurl {
url = "https://download.rockbox.org/rbutil/source/RockboxUtility-v${version}-src.tar.bz2"; url = "https://download.rockbox.org/rbutil/source/RockboxUtility-v${version}-src.tar.bz2";
sha256 = "0k3ycga3b0jnj13whwiip2l0gx32l50pnbh7kfima87nq65aaa5w"; sha256 = "0zm9f01a810y7aq0nravbsl0vs9vargwvxnfl4iz9qsqygwlj69y";
}; };
buildInputs = [ libusb1 qtbase qttools ] buildInputs = [ cryptopp libusb1 qtbase qttools ]
++ stdenv.lib.optional withEspeak espeak; ++ stdenv.lib.optional withEspeak espeak;
nativeBuildInputs = [ makeWrapper pkgconfig qmake qt5.wrapQtAppsHook ]; nativeBuildInputs = [ makeWrapper pkgconfig qmake qt5.wrapQtAppsHook ];
@ -24,6 +25,7 @@ stdenv.mkDerivation rec {
preConfigure = '' preConfigure = ''
cd rbutil/rbutilqt cd rbutil/rbutilqt
lrelease rbutilqt.pro
''; '';
installPhase = '' installPhase = ''

View File

@ -2,16 +2,16 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "shadowsocks-rust"; pname = "shadowsocks-rust";
version = "1.8.14"; version = "1.8.16";
src = fetchFromGitHub { src = fetchFromGitHub {
rev = "v${version}"; rev = "v${version}";
owner = "shadowsocks"; owner = "shadowsocks";
repo = pname; repo = pname;
sha256 = "0fcpmdshl52lg44b94h7pbikq91ppvmkdgd8993hgvzjyl0pchs5"; sha256 = "09wncvy1cn8038xf8srz8y955xw9h59zh7avrh060wm50azrhlg5";
}; };
cargoSha256 = "1vvcsadp2kycqjsmgy48szxzqg6s1jpdlzppfgffm8r71dcppyjj"; cargoSha256 = "0n03dg1rrhlryap0dqqmmzhp49lxvhh3478z123x23fm04ygln44";
SODIUM_USE_PKG_CONFIG = 1; SODIUM_USE_PKG_CONFIG = 1;

View File

@ -5667,6 +5667,8 @@ in
pandoc-imagine = python3Packages.callPackage ../tools/misc/pandoc-imagine { }; pandoc-imagine = python3Packages.callPackage ../tools/misc/pandoc-imagine { };
pandoc-plantuml-filter = python3Packages.callPackage ../tools/misc/pandoc-plantuml-filter { };
pasystray = callPackage ../tools/audio/pasystray { }; pasystray = callPackage ../tools/audio/pasystray { };
phash = callPackage ../development/libraries/phash { }; phash = callPackage ../development/libraries/phash { };
@ -10260,9 +10262,9 @@ in
inherit (callPackage ../tools/admin/ansible { }) inherit (callPackage ../tools/admin/ansible { })
ansible ansible
ansible_2_7
ansible_2_8 ansible_2_8
ansible_2_9; ansible_2_9
ansible_2_10;
ansible-lint = with python3.pkgs; toPythonApplication ansible-lint; ansible-lint = with python3.pkgs; toPythonApplication ansible-lint;
@ -10394,6 +10396,8 @@ in
bazelisk = callPackage ../development/tools/bazelisk { }; bazelisk = callPackage ../development/tools/bazelisk { };
rebazel = callPackage ../development/tools/rebazel { };
buildBazelPackage = callPackage ../build-support/build-bazel-package { }; buildBazelPackage = callPackage ../build-support/build-bazel-package { };
bear = callPackage ../development/tools/build-managers/bear { }; bear = callPackage ../development/tools/build-managers/bear { };
@ -11045,6 +11049,10 @@ in
mkcert = callPackage ../development/tools/misc/mkcert { }; mkcert = callPackage ../development/tools/misc/mkcert { };
mkrom = callPackage ../development/tools/misc/mkrom {
asciidoc = asciidoc-full;
};
mkdocs = callPackage ../development/tools/documentation/mkdocs { }; mkdocs = callPackage ../development/tools/documentation/mkdocs { };
mockgen = callPackage ../development/tools/mockgen { }; mockgen = callPackage ../development/tools/mockgen { };
@ -21366,7 +21374,7 @@ in
luppp = callPackage ../applications/audio/luppp { }; luppp = callPackage ../applications/audio/luppp { };
lutris-unwrapped = python3.pkgs.callPackage ../applications/misc/lutris { lutris-unwrapped = python3.pkgs.callPackage ../applications/misc/lutris {
inherit (gnome3) gnome-desktop libgnome-keyring; inherit (gnome3) gnome-desktop;
wine = wineWowPackages.staging; wine = wineWowPackages.staging;
}; };
lutris = callPackage ../applications/misc/lutris/fhsenv.nix { lutris = callPackage ../applications/misc/lutris/fhsenv.nix {
@ -21752,6 +21760,7 @@ in
ostinato = callPackage ../applications/networking/ostinato { }; ostinato = callPackage ../applications/networking/ostinato { };
p4 = callPackage ../applications/version-management/p4 { };
p4v = libsForQt5.callPackage ../applications/version-management/p4v { }; p4v = libsForQt5.callPackage ../applications/version-management/p4v { };
partio = callPackage ../development/libraries/partio {}; partio = callPackage ../development/libraries/partio {};
@ -25458,6 +25467,8 @@ in
varscan = callPackage ../applications/science/biology/varscan { }; varscan = callPackage ../applications/science/biology/varscan { };
whisper = callPackage ../applications/science/biology/whisper { };
hmmer = callPackage ../applications/science/biology/hmmer { }; hmmer = callPackage ../applications/science/biology/hmmer { };
bwa = callPackage ../applications/science/biology/bwa { }; bwa = callPackage ../applications/science/biology/bwa { };
@ -26812,6 +26823,8 @@ in
py-wmi-client = callPackage ../tools/networking/py-wmi-client { }; py-wmi-client = callPackage ../tools/networking/py-wmi-client { };
rargs = callPackage ../tools/misc/rargs { };
redprl = callPackage ../applications/science/logic/redprl { }; redprl = callPackage ../applications/science/logic/redprl { };
renderizer = pkgs.callPackage ../development/tools/renderizer {}; renderizer = pkgs.callPackage ../development/tools/renderizer {};
@ -27002,6 +27015,8 @@ in
tilt = callPackage ../applications/networking/cluster/tilt {}; tilt = callPackage ../applications/networking/cluster/tilt {};
timeular = callPackage ../applications/office/timeular {};
tetex = callPackage ../tools/typesetting/tex/tetex { libpng = libpng12; }; tetex = callPackage ../tools/typesetting/tex/tetex { libpng = libpng12; };
tewi-font = callPackage ../data/fonts/tewi tewi-font = callPackage ../data/fonts/tewi

View File

@ -431,6 +431,8 @@ let
jsonm = callPackage ../development/ocaml-modules/jsonm { }; jsonm = callPackage ../development/ocaml-modules/jsonm { };
jwto = callPackage ../development/ocaml-modules/jwto { };
kafka = callPackage ../development/ocaml-modules/kafka { }; kafka = callPackage ../development/ocaml-modules/kafka { };
ke = callPackage ../development/ocaml-modules/ke { }; ke = callPackage ../development/ocaml-modules/ke { };

View File

@ -3824,6 +3824,8 @@ in {
django-webpack-loader = callPackage ../development/python-modules/django-webpack-loader { }; django-webpack-loader = callPackage ../development/python-modules/django-webpack-loader { };
django-widget-tweaks = callPackage ../development/python-modules/django-widget-tweaks { };
django_tagging = callPackage ../development/python-modules/django_tagging { }; django_tagging = callPackage ../development/python-modules/django_tagging { };
django_classytags = callPackage ../development/python-modules/django_classytags { }; django_classytags = callPackage ../development/python-modules/django_classytags { };
@ -4083,6 +4085,8 @@ in {
cudaSupport = false; cudaSupport = false;
}; };
pytorch-lightning = callPackage ../development/python-modules/pytorch-lightning { };
pytorch-metric-learning = callPackage ../development/python-modules/pytorch-metric-learning { }; pytorch-metric-learning = callPackage ../development/python-modules/pytorch-metric-learning { };
pythondialog = callPackage ../development/python-modules/pythondialog { }; pythondialog = callPackage ../development/python-modules/pythondialog { };
@ -7637,6 +7641,8 @@ in {
pure-pcapy3 = callPackage ../development/python-modules/pure-pcapy3 { }; pure-pcapy3 = callPackage ../development/python-modules/pure-pcapy3 { };
cucumber-tag-expressions = callPackage ../development/python-modules/cucumber-tag-expressions { };
behave = callPackage ../development/python-modules/behave { }; behave = callPackage ../development/python-modules/behave { };
bellows = callPackage ../development/python-modules/bellows { }; bellows = callPackage ../development/python-modules/bellows { };