Merge master into staging-next

This commit is contained in:
github-actions[bot] 2022-12-13 18:01:30 +00:00 committed by GitHub
commit d07c2d73fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
40 changed files with 754 additions and 158 deletions

View file

@ -238,6 +238,14 @@
the Nix store.
</para>
</listitem>
<listitem>
<para>
The <literal>services.fwupd</literal> module now allows
arbitrary daemon settings to be configured in a structured
manner
(<link linkend="opt-services.fwupd.daemonSettings"><literal>services.fwupd.daemonSettings</literal></link>).
</para>
</listitem>
<listitem>
<para>
The <literal>unifi-poller</literal> package and corresponding

View file

@ -70,4 +70,6 @@ In addition to numerous new and upgraded packages, this release has the followin
- Resilio sync secret keys can now be provided using a secrets file at runtime, preventing these secrets from ending up in the Nix store.
- The `services.fwupd` module now allows arbitrary daemon settings to be configured in a structured manner ([`services.fwupd.daemonSettings`](#opt-services.fwupd.daemonSettings)).
- The `unifi-poller` package and corresponding NixOS module have been renamed to `unpoller` to match upstream.

View file

@ -7,13 +7,16 @@ with lib;
let
cfg = config.services.fwupd;
format = pkgs.formats.ini {
listToValue = l: lib.concatStringsSep ";" (map (s: generators.mkValueStringDefault {} s) l);
mkKeyValue = generators.mkKeyValueDefault {} "=";
};
customEtc = {
"fwupd/daemon.conf" = {
source = pkgs.writeText "daemon.conf" ''
[fwupd]
DisabledDevices=${lib.concatStringsSep ";" cfg.disabledDevices}
DisabledPlugins=${lib.concatStringsSep ";" cfg.disabledPlugins}
'';
source = format.generate "daemon.conf" {
fwupd = cfg.daemonSettings;
};
};
"fwupd/uefi_capsule.conf" = {
source = pkgs.writeText "uefi_capsule.conf" ''
@ -67,24 +70,6 @@ in {
'';
};
disabledDevices = mkOption {
type = types.listOf types.str;
default = [];
example = [ "2082b5e0-7a64-478a-b1b2-e3404fab6dad" ];
description = lib.mdDoc ''
Allow disabling specific devices by their GUID
'';
};
disabledPlugins = mkOption {
type = types.listOf types.str;
default = [];
example = [ "udev" ];
description = lib.mdDoc ''
Allow disabling specific plugins
'';
};
extraTrustedKeys = mkOption {
type = types.listOf types.path;
default = [];
@ -120,18 +105,49 @@ in {
Which fwupd package to use.
'';
};
daemonSettings = mkOption {
type = types.submodule {
freeformType = format.type.nestedTypes.elemType;
options = {
DisabledDevices = mkOption {
type = types.listOf types.str;
default = [];
example = [ "2082b5e0-7a64-478a-b1b2-e3404fab6dad" ];
description = lib.mdDoc ''
List of device GUIDs to be disabled.
'';
};
DisabledPlugins = mkOption {
type = types.listOf types.str;
default = [];
example = [ "udev" ];
description = lib.mdDoc ''
List of plugins to be disabled.
'';
};
};
};
default = {};
description = lib.mdDoc ''
Configurations for the fwupd daemon.
'';
};
};
};
imports = [
(mkRenamedOptionModule [ "services" "fwupd" "blacklistDevices"] [ "services" "fwupd" "disabledDevices" ])
(mkRenamedOptionModule [ "services" "fwupd" "blacklistPlugins"] [ "services" "fwupd" "disabledPlugins" ])
(mkRenamedOptionModule [ "services" "fwupd" "blacklistDevices"] [ "services" "fwupd" "daemonSettings" "DisabledDevices" ])
(mkRenamedOptionModule [ "services" "fwupd" "blacklistPlugins"] [ "services" "fwupd" "daemonSettings" "DisabledPlugins" ])
(mkRenamedOptionModule [ "services" "fwupd" "disabledDevices" ] [ "services" "fwupd" "daemonSettings" "DisabledDevices" ])
(mkRenamedOptionModule [ "services" "fwupd" "disabledPlugins" ] [ "services" "fwupd" "daemonSettings" "DisabledPlugins" ])
];
###### implementation
config = mkIf cfg.enable {
# Disable test related plug-ins implicitly so that users do not have to care about them.
services.fwupd.disabledPlugins = cfg.package.defaultDisabledPlugins;
services.fwupd.daemonSettings.DisabledPlugins = cfg.package.defaultDisabledPlugins;
environment.systemPackages = [ cfg.package ];

View file

@ -3,9 +3,11 @@
, desktop-file-utils
, fetchFromGitHub
, calf
, fftw
, fftwFloat
, fmt_8
, fmt_9
, glib
, gsl
, gtk4
, itstool
, libadwaita
@ -25,6 +27,7 @@
, pkg-config
, rnnoise
, rubberband
, speex
, speexdsp
, tbb
, wrapGAppsHook4
@ -34,13 +37,13 @@
stdenv.mkDerivation rec {
pname = "easyeffects";
version = "6.3.0";
version = "7.0.0";
src = fetchFromGitHub {
owner = "wwmm";
repo = "easyeffects";
rev = "v${version}";
sha256 = "sha256-OLxuE1jiALuKlC9U9esVlhaMBEaoZyNae8OO8upE4ZM=";
sha256 = "sha256-SjhJj5kClPd8DT1vzbSdqJ9AJw0XiX9Q8/R8SDnxGPQ=";
};
nativeBuildInputs = [
@ -53,9 +56,11 @@ stdenv.mkDerivation rec {
];
buildInputs = [
fftw
fftwFloat
fmt_8
fmt_9
glib
gsl
gtk4
libadwaita
libbs2b
@ -69,6 +74,7 @@ stdenv.mkDerivation rec {
pipewire
rnnoise
rubberband
speex
speexdsp
tbb
zita-convolver

View file

@ -8,13 +8,13 @@
stdenv.mkDerivation (finalAttrs: {
pname = "jove";
version = "4.17.4.7";
version = "4.17.4.8";
src = fetchFromGitHub {
owner = "jonmacs";
repo = "jove";
rev = finalAttrs.version;
sha256 = "sha256-a8amp8JAI25XIeL8MzvJEAvv6B0oIaQvUOQlAaS3PeI=";
sha256 = "sha256-/n/TgVqyG/WeK+/DZqFZCdkQR4SD5+YmljLlzAehMvw=";
};
nativeBuildInputs = [ makeWrapper ];

View file

@ -2,7 +2,7 @@
, stdenv
, fetchurl
, autoreconfHook
, SDL_compat
, SDL
, SDL_net
, SDL_sound
, copyDesktopItems
@ -29,7 +29,7 @@ stdenv.mkDerivation rec {
];
buildInputs = [
SDL_compat
SDL
SDL_net
SDL_sound
libGL

View file

@ -5,7 +5,6 @@
, cairo
, cmake
, fetchurl
, fetchpatch
, gettext
, ghostscript
, glib
@ -59,11 +58,11 @@ let
in
stdenv.mkDerivation rec {
pname = "inkscape";
version = "1.2.1";
version = "1.2.2";
src = fetchurl {
url = "https://media.inkscape.org/dl/resources/file/inkscape-${version}.tar.xz";
sha256 = "Rs59oOunykutwdtw6cu2fgrfm7NCaH3G4ItcohuNTBs=";
sha256 = "oMf9DQPAohU15kjvMB3PgN18/B81ReUQZfvxuj7opcQ=";
};
# Inkscape hits the ARGMAX when linking on macOS. It appears to be
@ -79,12 +78,6 @@ stdenv.mkDerivation rec {
# e.g., those from the "Effects" menu.
python3 = "${python3Env}/bin/python";
})
# Fix build with Poppler 22.09
(fetchpatch {
url = "https://github.com/archlinux/svntogit-packages/raw/b2f65dfb60ae0c8cd6cd9affd3d71064082a6201/trunk/inkscape-1.2.1-poppler-22.09.0.patch";
sha256 = "pArvsS/qoCTMAisF8yj3agZKrb90zRFZkck1TX0KeGc=";
})
];
postPatch = ''

View file

@ -0,0 +1,72 @@
{ lib
, stdenv
, cmake
, pkg-config
, libmicrohttpd
, curl
, openssl
, jsoncpp
, libxml2
, gst_all_1
, boost
, websocketpp
, libadwaita
, gtkmm4
, libsecret
, fetchFromGitLab
, makeWrapper
, xdg-utils
, youtube-dl
, ffmpeg
}:
stdenv.mkDerivation rec {
pname = "headlines";
version = "0.7.2";
src = fetchFromGitLab {
owner = "caveman250";
repo = "Headlines";
rev = version;
sha256 = "sha256-wamow0UozX5ecKbXWOgsWCerInL4J0gK0+Muf+eoO9k=";
};
nativeBuildInputs = [
cmake
pkg-config
makeWrapper
];
buildInputs = [
libmicrohttpd
curl
openssl
jsoncpp
libxml2
boost
websocketpp
libadwaita
gtkmm4
libsecret
] ++ (with gst_all_1; [
gstreamer
gst-libav
gst-plugins-base
(gst-plugins-good.override { gtkSupport = true; })
gst-plugins-bad
]);
postFixup = ''
wrapProgram "$out/bin/headlines" \
--prefix PATH : "${lib.makeBinPath [ xdg-utils youtube-dl ffmpeg ]}" \
--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0"
'';
meta = with lib; {
description = "GTK4 / Libadwaita Reddit client written in C++";
homepage = "https://gitlab.com/caveman250/Headlines";
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ chuangzhu ];
};
}

View file

@ -63,13 +63,13 @@ rec {
patch-src = src + "/daemon/contrib/src/pjproject/";
in
rec {
version = "513a3f14c44b2c2652f9219ec20dea64b236b713";
version = "eae25732568e600d248aa8c226271ff6b81df170";
src = fetchFromGitHub {
owner = "savoirfairelinux";
repo = "pjproject";
rev = version;
sha256 = "sha256-93AlJGMnlzJMrJquelpHQQKjhEgfpTFXTMqkBnm87u8=";
sha256 = "sha256-N7jn4qen+PgFiVkTFi2HSWhx2QPHwAYMtnrpE/ptDVc=";
};
patches = (map (x: patch-src + x) (readLinesToList ./config/pjsip_patches));

View file

@ -18,14 +18,14 @@
python3.pkgs.buildPythonApplication rec {
pname = "banking";
version = "0.5.1";
version = "0.6.0";
format = "other";
src = fetchFromGitLab {
owner = "tabos";
repo = "banking";
rev = version;
sha256 = "sha256-tZlBpDcwQ/aWroP2sFQBZcvmBD26PiY7q/8xFA8GnVc=";
hash = "sha256-x/um40sRD58d5LuuJlyietCV1Rw4H5VSO0I3ZwD5kO8=";
};
postPatch = ''
@ -54,8 +54,8 @@ python3.pkgs.buildPythonApplication rec {
cryptography
fints
mt-940
onetimepad
pygobject3
pysqlitecipher
schwifty
];

View file

@ -0,0 +1,62 @@
{ lib
, python3
, fetchFromSourcehut
, gtk3
, libhandy_0
, gobject-introspection
, meson
, pkg-config
, ninja
, gettext
, glib
, desktop-file-utils
, wrapGAppsHook
}:
python3.pkgs.buildPythonApplication rec {
pname = "thumbdrives";
version = "0.3.1";
format = "other";
src = fetchFromSourcehut {
owner = "~martijnbraam";
repo = pname;
rev = version;
sha256 = "sha256-CPZKswbvsG61A6J512FOCKAntoJ0sUb2s+MKb0rO+Xw=";
};
postPatch = ''
patchShebangs build-aux/meson
'';
nativeBuildInputs = [
meson
pkg-config
ninja
gettext
glib
gtk3
desktop-file-utils
wrapGAppsHook
gobject-introspection
];
buildInputs = [
gtk3
libhandy_0
];
propagatedBuildInputs = with python3.pkgs; [
pygobject3
pyxdg
];
meta = with lib; {
description = "USB mass storage emulator for Linux handhelds";
homepage = "https://sr.ht/~martijnbraam/thumbdrives/";
license = licenses.mit;
maintainers = with maintainers; [ chuangzhu ];
platforms = platforms.linux;
};
}

View file

@ -2,13 +2,13 @@
rustPlatform.buildRustPackage rec {
pname = "gleam";
version = "0.25.0";
version = "0.25.1";
src = fetchFromGitHub {
owner = "gleam-lang";
repo = pname;
rev = "v${version}";
sha256 = "sha256-LLl3T7VvDyyeq47vgZPkQhcPk2yZMRsCta8EqduNvuY=";
sha256 = "sha256-PzvFX1ssBPXhHBNGK38y427HYJ9Q40c4w2mqGZ/2rtI=";
};
nativeBuildInputs = [ pkg-config ];
@ -16,7 +16,7 @@ rustPlatform.buildRustPackage rec {
buildInputs = [ openssl ] ++
lib.optionals stdenv.isDarwin [ Security libiconv ];
cargoSha256 = "sha256-vMgU66LhhRrSA9Dx3eyVmUwrYKVtAfE12tQC8WzTimo=";
cargoSha256 = "sha256-NeNpT/yOXE70ElawrOGBc4G5bN2ohzYVVUtF4yVCJOo=";
meta = with lib; {
description = "A statically typed language for the Erlang VM";

View file

@ -31,6 +31,10 @@
, rebuildBytecode ? true
, reproducibleBuild ? false
, enableOptimizations ? false
, strip2to3 ? false
, stripConfig ? false
, stripIdlelib ? false
, stripTests ? false
, pythonAttr ? "python${sourceVersion.major}${sourceVersion.minor}"
}:
@ -318,6 +322,16 @@ in with passthru; stdenv.mkDerivation ({
postFixup = ''
# Include a sitecustomize.py file. Note it causes an error when it's in postInstall with 2.7.
cp ${../../sitecustomize.py} $out/${sitePackages}/sitecustomize.py
'' + optionalString strip2to3 ''
rm -R $out/bin/2to3 $out/lib/python*/lib2to3
'' + optionalString stripConfig ''
rm -R $out/bin/python*-config $out/lib/python*/config-*
'' + optionalString stripIdlelib ''
# Strip IDLE
rm -R $out/bin/idle* $out/lib/python*/idlelib
'' + optionalString stripTests ''
# Strip tests
rm -R $out/lib/python*/test $out/lib/python*/**/test{,s}
'';
enableParallelBuilding = true;

View file

@ -0,0 +1,49 @@
{ lib
, stdenv
, fetchFromGitHub
, cmake
, example-robot-data
, pinocchio
, pythonSupport ? false
, python3Packages
}:
stdenv.mkDerivation rec {
pname = "crocoddyl";
version = "1.9.0";
src = fetchFromGitHub {
owner = "loco-3d";
repo = pname;
rev = "v${version}";
sha256 = "sha256-IQ+8ZZXVTTRFa4uGetpylRab4P9MSTU2YtytYA3z6ys=";
fetchSubmodules = true;
};
strictDeps = true;
nativeBuildInputs = [
cmake
];
propagatedBuildInputs = lib.optionals (!pythonSupport) [
example-robot-data
pinocchio
] ++ lib.optionals pythonSupport [
python3Packages.example-robot-data
python3Packages.pinocchio
];
cmakeFlags = lib.optionals (!pythonSupport) [
"-DBUILD_EXAMPLES=OFF"
"-DBUILD_PYTHON_INTERFACE=OFF"
];
meta = with lib; {
description = "Crocoddyl optimal control library";
homepage = "https://github.com/loco-3d/crocoddyl";
license = licenses.bsd3;
maintainers = with maintainers; [ wegank ];
platforms = platforms.unix;
};
}

View file

@ -0,0 +1,42 @@
{ lib
, stdenv
, fetchFromGitHub
, cmake
, pythonSupport ? false
, python3Packages
}:
stdenv.mkDerivation rec {
pname = "example-robot-data";
version = "4.0.3";
src = fetchFromGitHub {
owner = "Gepetto";
repo = pname;
rev = "v${version}";
fetchSubmodules = true;
sha256 = "sha256-rxVyka8tcF/CmGTVNyh3FPR1LVa6JOAN+9zjElgqCak=";
};
strictDeps = true;
nativeBuildInputs = [
cmake
];
buildInputs = lib.optionals pythonSupport [
python3Packages.pinocchio
];
cmakeFlags = lib.optionals (!pythonSupport) [
"-DBUILD_PYTHON_INTERFACE=OFF"
];
meta = with lib; {
description = "Set of robot URDFs for benchmarking and developed examples.";
homepage = "https://github.com/Gepetto/example-robot-data";
license = licenses.bsd3;
maintainers = with maintainers; [ wegank ];
platforms = platforms.unix;
};
}

View file

@ -15,7 +15,7 @@
stdenv.mkDerivation rec {
pname = "lib2geom";
version = "1.2";
version = "1.2.2";
outputs = [ "out" "dev" ];
@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
owner = "inkscape";
repo = "lib2geom";
rev = "refs/tags/${version}";
sha256 = "sha256-SNo5YT7o29zdxkHLuy9MT88qBg/U1Wwa3BWShF5ACTc=";
sha256 = "sha256-xkUxcAk8KJkL482R7pvgmCT+5I8aUMm/q25pvK3ZPuY=";
};
patches = [

View file

@ -0,0 +1,57 @@
{ lib
, stdenv
, fetchFromGitHub
, cmake
, boost
, eigen
, urdfdom
, pythonSupport ? false
, python3Packages
}:
stdenv.mkDerivation rec {
pname = "pinocchio";
version = "2.6.12";
src = fetchFromGitHub {
owner = "stack-of-tasks";
repo = pname;
rev = "v${version}";
fetchSubmodules = true;
sha256 = "sha256-DJX/njNX8l7ngSl3yCeN7ZoQaH65pQTsZrKwmY7EZ+E=";
};
# error: use of undeclared identifier '__sincos'
postPatch = lib.optionalString (stdenv.isDarwin && stdenv.isx86_64) ''
substituteInPlace src/math/sincos.hpp \
--replace "__APPLE__" "0"
'';
strictDeps = true;
nativeBuildInputs = [
cmake
];
propagatedBuildInputs = [
urdfdom
] ++ lib.optionals (!pythonSupport) [
boost
eigen
] ++ lib.optionals pythonSupport [
python3Packages.boost
python3Packages.eigenpy
];
cmakeFlags = lib.optionals (!pythonSupport) [
"-DBUILD_PYTHON_INTERFACE=OFF"
];
meta = with lib; {
description = "A fast and flexible implementation of Rigid Body Dynamics algorithms and their analytical derivatives";
homepage = "https://github.com/stack-of-tasks/pinocchio";
license = licenses.bsd2;
maintainers = with maintainers; [ wegank ];
platforms = platforms.unix;
};
}

View file

@ -26,7 +26,7 @@ let
in
stdenv.mkDerivation rec {
pname = "wireplumber";
version = "0.4.12";
version = "0.4.13";
outputs = [ "out" "dev" ] ++ lib.optional enableDocs "doc";
@ -35,7 +35,7 @@ stdenv.mkDerivation rec {
owner = "pipewire";
repo = "wireplumber";
rev = version;
sha256 = "sha256-2qM6sX807v/3DZXTuBvUSGV8+cPB87rWYb+HTDCm3kw=";
sha256 = "sha256-Zz8N6OPwZ4Dwaygiy46C3sN9zPGC12+55S/qns+S+h4=";
};
nativeBuildInputs = [

View file

@ -67,11 +67,6 @@ stdenv.mkDerivation rec {
configureScript = "python ./configure";
# disable stackprotector on aarch64-darwin for now
# https://github.com/NixOS/nixpkgs/issues/158730
# see https://github.com/NixOS/nixpkgs/issues/127608 for a similar issue
hardeningDisable = lib.optionals (stdenv.isAarch64 && stdenv.isDarwin) [ "stackprotector" ];
enableParallelBuilding = true;
doCheck = stdenv.hostPlatform == stdenv.buildPlatform;

View file

@ -0,0 +1,47 @@
{ lib
, stdenv
, fetchFromGitHub
, cmake
}:
stdenv.mkDerivation (finalAttrs: {
pname = "toml11";
version = "3.7.1";
src = fetchFromGitHub {
owner = "ToruNiina";
repo = "toml11";
rev = "v${finalAttrs.version}";
hash = "sha256-HnhXBvIjo1JXhp+hUQvjs83t5IBVbNN6o3ZGhB4WESQ=";
};
nativeBuildInputs = [
cmake
];
meta = with lib; {
homepage = "https://github.com/ToruNiina/toml11";
description = "TOML for Modern C++";
longDescription = ''
toml11 is a C++11 (or later) header-only toml parser/encoder depending
only on C++ standard library.
- It is compatible to the latest version of TOML v1.0.0.
- It is one of the most TOML standard compliant libraries, tested with
the language agnostic test suite for TOML parsers by BurntSushi.
- It shows highly informative error messages.
- It has configurable container. You can use any random-access containers
and key-value maps as backend containers.
- It optionally preserves comments without any overhead.
- It has configurable serializer that supports comments, inline tables,
literal strings and multiline strings.
- It supports user-defined type conversion from/into toml values.
- It correctly handles UTF-8 sequences, with or without BOM, both on posix
and Windows.
'';
license = licenses.mit;
maintainers = with maintainers; [ AndersonTorres ];
platforms = platforms.unix;
};
})
# TODO [ AndersonTorres ]: tests

View file

@ -1,19 +1,37 @@
{ lib
, stdenv
, pkgs
, pkgsBuildHost
, ...
}:
let
pkgs = import ../../../.. {
inherit (stdenv.hostPlatform) system;
# Allow python27 with known security issues only for resholve,
# see issue #201859 for the reasoning
# In resholve case this should not be a security issue,
# since it will only be used during build, not runtime
config.permittedInsecurePackages = [ pkgsBuildHost.python27.name ];
python27' = (pkgsBuildHost.python27.overrideAttrs (old:
{
# Overriding `meta.knownVulnerabilities` here, see #201859 for why it exists
# In resholve case this should not be a security issue,
# since it will only be used during build, not runtime
meta = (old.meta or { }) // { knownVulnerabilities = [ ]; };
}
)).override {
self = python27';
pkgsBuildHost = pkgsBuildHost // { python27 = python27'; };
# strip down that python version as much as possible
openssl = null;
bzip2 = null;
readline = null;
ncurses = null;
gdbm = null;
sqlite = null;
libffi = null;
rebuildBytecode = false;
stripBytecode = true;
strip2to3 = true;
stripConfig = true;
stripIdlelib = true;
stripTests = true;
enableOptimizations = false;
};
callPackage = lib.callPackageWith pkgs;
callPackage = lib.callPackageWith (pkgs // { python27 = python27'; });
source = callPackage ./source.nix { };
deps = callPackage ./deps.nix { };
in

View file

@ -1,23 +1,37 @@
{ stdenv, lib, fetchFromGitHub, ocaml, findlib, utop, python3, stdcompat, ncurses }:
{ buildDunePackage
, lib
, fetchFromGitHub
, fetchpatch
, utop
, python3
, stdcompat
}:
stdenv.mkDerivation rec {
buildDunePackage rec {
pname = "pyml";
version = "20220615";
version = "20220905";
src = fetchFromGitHub {
owner = "thierry-martinez";
repo = pname;
rev = version;
sha256 = "sha256-my/xn9vrYTcHyjXGBNamgqpBz2/6bTyQHuE9ViVGLjw=";
owner = "thierry-martinez";
repo = "pyml";
rev = version;
sha256 = "PL4tFIKQLRutSn9Sf84/ImJv0DqkstNnJaNBqWDTKDQ=";
};
nativeBuildInputs = [
ocaml
findlib
patches = [
# Fixes test crash.
# https://github.com/thierry-martinez/pyml/issues/85
(fetchpatch {
url = "https://github.com/thierry-martinez/pyml/commit/a0bc5aca8632bea273f869d622cad2f55e754a7c.patch";
sha256 = "bOqAokm5DE5rlvkBMQZtwMppRmoK9cvjJeGeP6BusnE=";
excludes = [
"CHANGES.md"
];
})
];
buildInputs = [
utop
ncurses
];
propagatedBuildInputs = [
@ -25,24 +39,17 @@ stdenv.mkDerivation rec {
stdcompat
];
checkInputs = [
python3.pkgs.numpy
];
strictDeps = true;
buildPhase = ''
make all pymltop pymlutop PREFIX=$out
'';
installPhase = ''
runHook preInstall
mkdir -p $out/bin
mkdir -p $OCAMLFIND_DESTDIR/stublibs
make install PREFIX=$out
runHook postInstall
'';
doCheck = true;
meta = {
description = "OCaml bindings for Python";
homepage = "https://github.com/thierry-martinez/pyml";
license = lib.licenses.bsd2;
};
}

View file

@ -1,29 +1,25 @@
{ stdenv, lib, fetchurl
, ocaml, findlib
{ buildDunePackage
, lib
, fetchurl
}:
stdenv.mkDerivation rec {
pname = "ocaml${ocaml.version}-stdcompat";
version = "18";
buildDunePackage rec {
pname = "stdcompat";
version = "19";
src = fetchurl {
url = "https://github.com/thierry-martinez/stdcompat/releases/download/v${version}/stdcompat-${version}.tar.gz";
sha256 = "sha256:01y67rndjlzfp5zq0gbqpg9skqq2hfbvhbq9lfhhk5xidr98sfj8";
sha256 = "sha256-DKQGd4nnIN6SPls6hcA/2Jvc7ivYNpeMU6rYsVc1ClU=";
};
nativeBuildInputs = [ ocaml findlib ];
strictDeps = true;
# build fails otherwise
enableParallelBuilding = false;
configureFlags = [ "--libdir=$(OCAMLFIND_DESTDIR)" ];
# Otherwise ./configure script will run and create files conflicting with dune.
dontConfigure = true;
meta = {
homepage = "https://github.com/thierry-martinez/stdcompat";
license = lib.licenses.bsd2;
maintainers = [ lib.maintainers.vbgl ];
inherit (ocaml.meta) platforms;
};
}

View file

@ -0,0 +1,49 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, click
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "click-command-tree";
version = "1.1.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "whwright";
repo = pname;
rev = version;
hash = "sha256-vFOcn+ibyLZnhU3OQMtnHI04UqAY2/CCvhq4EEU4XFo=";
};
patches = [
(fetchpatch {
name = "remove-setup-downloading-flake8.patch";
url = "https://github.com/whwright/click-command-tree/commit/1ecfcfa29bf01e1131e6ec712bd7338ac1283dc8.patch";
hash = "sha256-u5jsNfEo1+XNlkVGPCM/rsDPnYko6cr2z2si9nq+sLA=";
})
];
propagatedBuildInputs = [
click
];
checkInputs = [
pytestCheckHook
];
pytestFlagsArray = [
"tests.py"
];
pythonImportsCheck = [ "click_command_tree" ];
meta = with lib; {
description = "click plugin to show the command tree of your CLI";
homepage = "https://github.com/whwright/click-command-tree";
license = licenses.mit;
maintainers = with maintainers; [ tjni ];
};
}

View file

@ -0,0 +1,44 @@
{ lib
, stdenv
, fetchFromGitHub
, cmake
, boost
, eigen
, numpy
}:
stdenv.mkDerivation rec {
pname = "eigenpy";
version = "2.8.1";
src = fetchFromGitHub {
owner = "stack-of-tasks";
repo = pname;
rev = "v${version}";
fetchSubmodules = true;
sha256 = "sha256-nofB5TDvEArhPcYe/Pb1LQBC+W6MrE3NuapaZmKIO68=";
};
strictDeps = true;
nativeBuildInputs = [
cmake
];
buildInputs = [
boost
];
propagatedBuildInputs = [
eigen
numpy
];
meta = with lib; {
description = "Bindings between Numpy and Eigen using Boost.Python";
homepage = "https://github.com/stack-of-tasks/eigenpy";
license = licenses.bsd2;
maintainers = with maintainers; [ wegank ];
platforms = platforms.unix;
};
}

View file

@ -17,7 +17,7 @@
buildPythonPackage rec {
pname = "graphene";
version = "3.2.0";
version = "3.2.1";
format = "setuptools";
disabled = pythonOlder "3.6";
@ -26,7 +26,7 @@ buildPythonPackage rec {
owner = "graphql-python";
repo = "graphene";
rev = "refs/tags/v${version}";
hash = "sha256-2o/IR6XjnS57D4ZjADrcI18acfJ+Q0zdnXeb5ZeCpM4=";
hash = "sha256-XnrzgPkkFsTgNE9J+eSkD8f5MokKjtZhbbE/dxNZryk=";
};
propagatedBuildInputs = [

View file

@ -15,7 +15,7 @@
buildPythonPackage rec {
pname = "hahomematic";
version = "2022.12.2";
version = "2022.12.3";
format = "pyproject";
disabled = pythonOlder "3.9";
@ -24,7 +24,7 @@ buildPythonPackage rec {
owner = "danielperna84";
repo = pname;
rev = "refs/tags/${version}";
sha256 = "sha256-mU/YOOYlXNQQyzH2t+XZEi2+w8rzcoxIIxrdwAM4C00=";
sha256 = "sha256-6xCPkB2QydoJrvwgGGJqmGaw38HCAUs2jPBuXoIBC2Q=";
};
nativeBuildInputs = [

View file

@ -10,14 +10,14 @@
buildPythonPackage rec {
pname = "jupyterlab";
version = "3.5.0";
version = "3.5.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-4CVWyOobOGljxLRk5GGK7hU8VBawerSBQlyBegMzI6I=";
sha256 = "sha256-WaGy151LPr7k2ZfIvtjPRQ9GDHw19GthOpPwt3ErR/w=";
};
nativeBuildInputs = [

View file

@ -29,7 +29,7 @@ buildPythonPackage rec {
pythonImportsCheck = [ "pycodestyle" ];
meta = with lib; {
changelog = "https://github.com/PyCQA/pyflakes/blob/${version}/NEWS.rst";
changelog = "https://github.com/PyCQA/pycodestyle/blob/${version}/CHANGES.txt";
description = "Python style guide checker";
homepage = "https://pycodestyle.pycqa.org/";
license = licenses.mit;

View file

@ -1,7 +1,6 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, dos2unix
, pythonRelaxDepsHook
, asn1crypto
@ -9,6 +8,7 @@
, bincopy
, bitstring
, click
, click-command-tree
, click-option-group
, cmsis-pack-manager
, commentjson
@ -33,42 +33,32 @@
buildPythonPackage rec {
pname = "spsdk";
version = "1.6.3";
version = "1.8.0";
src = fetchFromGitHub {
owner = "NXPmicro";
repo = pname;
rev = version;
sha256 = "sha256-JMhd2XdbjEN6SUzFgcBHd/dStiuYeXXis6pfijSfUso=";
hash = "sha256-yCmkOrUe5XqbuHeo7F84j1gmdzpdpCRWdD9V74U64c4=";
};
patches = [
# https://github.com/NXPmicro/spsdk/pull/43
(fetchpatch {
name = "cryptography-37-compat.patch";
url = "https://github.com/NXPmicro/spsdk/commit/a85b854de1093de593d27fa64de442224ab2e0fd.patch";
sha256 = "sha256-4pXV/8RaNuGl7KNdoGD/8YnPQ2ZmUQOjXWA/Yy0Kxu8=";
})
# https://github.com/NXPmicro/spsdk/pull/41
(fetchpatch {
name = "blhost-click-8-1-compat.patch";
url = "https://github.com/NXPmicro/spsdk/commit/5112b1b69aa681d265035475e73d28ea0c8cb6ab.patch";
sha256 = "sha256-Okz6Er6OVuAA5IlB5IabSa/gUSLa+E2Ltd+J3uoIg6o=";
})
nativeBuildInputs = [
pythonRelaxDepsHook
];
nativeBuildInputs = [ pythonRelaxDepsHook ];
pythonRelaxDeps = [
"bincopy"
"bitstring"
"cmsis-pack-manager"
"cryptography"
"deepmerge"
"jinja2"
"pylink-square"
"pyocd"
];
pythonRemoveDeps = [ "pyocd-pemicro" ];
pythonRemoveDeps = [
"pyocd-pemicro"
];
propagatedBuildInputs = [
asn1crypto
@ -76,6 +66,7 @@ buildPythonPackage rec {
bincopy
bitstring
click
click-command-tree
click-option-group
cmsis-pack-manager
commentjson
@ -101,12 +92,6 @@ buildPythonPackage rec {
voluptuous
];
disabledTests = [
# tests also fail on debian, so presumable they are broken
"test_elftosb_mbi_signed"
"test_elftosb_sb31"
];
pythonImportsCheck = [ "spsdk" ];
meta = with lib; {

View file

@ -13,7 +13,7 @@
buildPythonPackage rec {
pname = "zadnegoale";
version = "0.6.5";
version = "0.7.0";
format = "setuptools";
disabled = pythonOlder "3.8";
@ -22,7 +22,7 @@ buildPythonPackage rec {
owner = "bieniu";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-ubBN4jvueNgReNbS+RXNDNHID0MF/rvQnb0+F4/DZaU=";
hash = "sha256-ij8xou8LXC4/BUTApIV6xSgb7ethwLyrHNJvBgxSBYM=";
};
propagatedBuildInputs = [
@ -45,6 +45,7 @@ buildPythonPackage rec {
meta = with lib; {
description = "Python wrapper for getting allergen concentration data from Żadnego Ale servers";
homepage = "https://github.com/bieniu/zadnegoale";
changelog = "https://github.com/bieniu/zadnegoale/releases/tag/${version}";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};

View file

@ -1,23 +1,30 @@
{ lib, buildGoModule, fetchFromGitHub }:
{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "hjson-go";
version = "4.2.0";
version = "4.3.0";
src = fetchFromGitHub {
owner = "hjson";
repo = pname;
rev = "v${version}";
sha256 = "sha256-bw8dQKwHqEzBpDT+59XjzhxDrA3R0OiEUyIWMULuAQI=";
hash = "sha256-WR6wLa/Za5MgcH1enHG/74uq/7PdaY/OzvJdgMgDFIk=";
};
vendorSha256 = null;
ldflags = [ "-s" "-w" ];
ldflags = [
"-s"
"-w"
];
meta = with lib; {
description = "Utility to convert JSON to and from HJSON";
homepage = "https://hjson.github.io/";
changelog = "https://github.com/hjson/hjson-go/releases/tag/v${version}";
maintainers = with maintainers; [ ehmry ];
license = licenses.mit;
mainProgram = "hjson-cli";

View file

@ -7,16 +7,16 @@
buildGoModule rec {
pname = "packer";
version = "1.8.4";
version = "1.8.5";
src = fetchFromGitHub {
owner = "hashicorp";
repo = "packer";
rev = "v${version}";
sha256 = "sha256-m8PKigVm46PN55hchc5a1OUUuhxoGn3e2sMRqqvkPgs=";
sha256 = "sha256-jdJD7AW4IrzVl4BPdsFFrRSdCWX9l4nFM+DWIuxLiJ8=";
};
vendorSha256 = "sha256-hSZCYSV7nMGd5KQsV+Z4ig7vk4j8cZnOvsg0DqPiEvg=";
vendorSha256 = "sha256-ufvWgusTMbM88F3BkJ61KM2wRSdqPOlMKqDSYf7tZQA=";
subPackages = [ "." ];

View file

@ -0,0 +1,43 @@
{ lib
, buildGoModule
, fetchFromSourcehut
, installShellFiles
, scdoc
}:
buildGoModule rec {
pname = "superd";
version = "0.7";
src = fetchFromSourcehut {
owner = "~craftyguy";
repo = pname;
rev = version;
hash = "sha256-XSB6qgepWhus15lOP9GzbiNoOCSsy6xLij7ic3LFs1E=";
};
vendorHash = "sha256-Oa99U3THyWLjH+kWMQAHO5QAS2mmtY7M7leej+gnEqo=";
nativeBuildInputs = [
installShellFiles
scdoc
];
postBuild = ''
make doc
'';
postInstall = ''
installManPage superd.1 superd.service.5 superctl.1
installShellCompletion --bash completions/bash/superctl
installShellCompletion --zsh completions/zsh/superctl
'';
meta = with lib; {
description = "Unprivileged user service supervisor";
homepage = "https://sr.ht/~craftyguy/superd/";
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ chuangzhu wentam ];
};
}

View file

@ -16,7 +16,7 @@
, nasm
, ocaml
, ocamlPackages
, openssl
, openssl_1_1
, perl
, python3
, texinfo
@ -84,7 +84,7 @@ stdenv.mkDerivation rec {
buildInputs = [
libtool
openssl
openssl_1_1
];
BINUTILS_DIR = "${binutils}/bin";

View file

@ -1,28 +1,39 @@
{ stdenv, lib, fetchFromGitHub, git, fzf }:
{ stdenv, lib, bash, fetchFromGitHub, makeWrapper, fzf, git }:
stdenv.mkDerivation rec {
pname = "zsh-forgit";
version = "22.11.0";
version = "22.12.0";
src = fetchFromGitHub {
owner = "wfxr";
repo = "forgit";
rev = version;
sha256 = "ca7EM/F0Spsdr3MbjIVwbjLVXg6/qWGczBQHLCcpU5A=";
sha256 = "0juBNUJW4SU3Cl6ouD+xMYzlCJOL7NAYpueZ6V56/ck=";
};
strictDeps = true;
postPatch = ''
substituteInPlace forgit.plugin.zsh \
--replace "fzf " "${fzf}/bin/fzf " \
--replace "git " "${git}/bin/git "
--replace "\$INSTALL_DIR/bin/git-forgit" "$out/bin/git-forgit"
substituteInPlace bin/git-forgit \
--replace "/bin/bash" "${bash}/bin/bash"
'';
dontBuild = true;
nativeBuildInputs = [ makeWrapper ];
installPhase = ''
runHook preInstall
install -D bin/git-forgit $out/bin/git-forgit
install -D forgit.plugin.zsh $out/share/zsh/${pname}/forgit.plugin.zsh
wrapProgram $out/bin/git-forgit \
--prefix PATH : ${lib.makeBinPath [ fzf git ]}
runHook postInstall
'';
meta = with lib; {

View file

@ -0,0 +1,31 @@
{ lib, stdenv, fetchFromGitHub, rustPlatform, installShellFiles, libiconv }:
rustPlatform.buildRustPackage rec {
pname = "dduan";
version = "0.2.1";
src = fetchFromGitHub {
owner = "dduan";
repo = "ea";
rev = version;
sha256 = "VXSSe5d7VO3LfjumzN9a7rrKRedOtOzTdLVQWgV1ED8=";
};
cargoSha256 = "sha256-QNj24qKZFqG4QXG6rIFV2Y/BNPTXt7HaX7smsJRrdzg=";
nativeBuildInputs = [ installShellFiles ];
buildInputs = lib.optionals stdenv.isDarwin [
libiconv
];
postInstall = ''
installManPage docs/ea.1
'';
meta = with lib; {
description = "Makes file paths from CLI output actionable";
homepage = "https://github.com/dduan/ea";
license = with licenses; [ mit ];
maintainers = with maintainers; [ deejayem ];
};
}

View file

@ -2,22 +2,26 @@
python3Packages.buildPythonApplication rec {
pname = "reuse";
version = "1.0.0";
version = "1.1.0";
format = "pyproject";
src = fetchFromGitHub {
owner = "fsfe";
repo = "reuse-tool";
rev = "v${version}";
sha256 = "0yplsbd5251s8cabazbdqb00jqv8ibbgal7fhj5pfxv5lsz17vkv";
hash = "sha256-bjUDImMFwMhRjCa7XzGlqR8h+KfTsyxonrQlRGgApwo=";
};
nativeBuildInputs = with python3Packages; [
poetry-core
];
propagatedBuildInputs = with python3Packages; [
binaryornot
boolean-py
debian
jinja2
license-expression
requests
setuptools
setuptools-scm
];
@ -28,6 +32,6 @@ python3Packages.buildPythonApplication rec {
description = "A tool for compliance with the REUSE Initiative recommendations";
homepage = "https://github.com/fsfe/reuse-tool";
license = with licenses; [ asl20 cc-by-sa-40 cc0 gpl3Plus ];
maintainers = [ maintainers.FlorianFranzen ];
maintainers = with maintainers; [ FlorianFranzen Luflosi ];
};
}

View file

@ -468,6 +468,8 @@ with pkgs;
inherit (darwin.apple_sdk.frameworks) Security;
};
ea = callPackage ../tools/misc/ea { };
each = callPackage ../tools/text/each { };
eclipse-mat = callPackage ../development/tools/eclipse-mat { };
@ -1962,7 +1964,9 @@ with pkgs;
dlx = callPackage ../applications/emulators/dlx { };
dosbox = callPackage ../applications/emulators/dosbox { };
dosbox = callPackage ../applications/emulators/dosbox {
SDL = if stdenv.isDarwin then SDL else SDL_compat;
};
dosbox-staging = callPackage ../applications/emulators/dosbox-staging { };
@ -12201,6 +12205,8 @@ with pkgs;
threema-desktop = callPackage ../applications/networking/instant-messengers/threema-desktop { };
thumbdrives = callPackage ../applications/system/thumbdrives { };
tidy-viewer = callPackage ../tools/text/tidy-viewer { };
tiled = libsForQt5.callPackage ../applications/editors/tiled { };
@ -18783,6 +18789,8 @@ with pkgs;
croaring = callPackage ../development/libraries/croaring { };
crocoddyl = callPackage ../development/libraries/crocoddyl { };
crossguid = callPackage ../development/libraries/crossguid { };
cryptopp = callPackage ../development/libraries/crypto++ { };
@ -18954,6 +18962,8 @@ with pkgs;
liberasurecode = callPackage ../applications/misc/liberasurecode { };
example-robot-data = callPackage ../development/libraries/example-robot-data { };
exiv2 = callPackage ../development/libraries/exiv2 { };
expat = callPackage ../development/libraries/expat { };
@ -22046,6 +22056,8 @@ with pkgs;
pico-sdk = callPackage ../development/libraries/pico-sdk { };
pinocchio = callPackage ../development/libraries/pinocchio { };
pipelight = callPackage ../tools/misc/pipelight {
stdenv = stdenv_32bit;
wine-staging = pkgsi686Linux.wine-staging;
@ -22929,6 +22941,8 @@ with pkgs;
tomlcpp = callPackage ../development/libraries/tomlcpp { };
toml11 = callPackage ../development/libraries/toml11 { };
tomlplusplus = callPackage ../development/libraries/tomlplusplus { };
tokyocabinet = callPackage ../development/libraries/tokyo-cabinet { };
@ -29293,6 +29307,8 @@ with pkgs;
hdhomerun-config-gui = callPackage ../applications/video/hdhomerun-config-gui { };
headlines = callPackage ../applications/networking/headlines { };
hedgedoc-cli = callPackage ../tools/admin/hedgedoc-cli { };
heimer = libsForQt5.callPackage ../applications/misc/heimer { };
@ -37137,6 +37153,8 @@ with pkgs;
stork = callPackage ../applications/misc/stork { };
superd = callPackage ../misc/superd { };
oclgrind = callPackage ../development/tools/analysis/oclgrind { };
opkg = callPackage ../tools/package-management/opkg { };

View file

@ -1756,6 +1756,8 @@ self: super: with self; {
clickclick = callPackage ../development/python-modules/clickclick { };
click-command-tree = callPackage ../development/python-modules/click-command-tree { };
click-completion = callPackage ../development/python-modules/click-completion { };
click-configfile = callPackage ../development/python-modules/click-configfile { };
@ -2022,6 +2024,11 @@ self: super: with self; {
criticality-score = callPackage ../development/python-modules/criticality-score { };
crocoddyl = toPythonModule (callPackage ../development/libraries/crocoddyl {
pythonSupport = true;
python3Packages = self;
});
cron-descriptor = callPackage ../development/python-modules/cron-descriptor { };
croniter = callPackage ../development/python-modules/croniter { };
@ -2887,6 +2894,8 @@ self: super: with self; {
eggdeps = callPackage ../development/python-modules/eggdeps { };
eigenpy = toPythonModule (callPackage ../development/python-modules/eigenpy { });
einops = callPackage ../development/python-modules/einops { };
eiswarnung = callPackage ../development/python-modules/eiswarnung { };
@ -3058,6 +3067,11 @@ self: super: with self; {
ewmh = callPackage ../development/python-modules/ewmh { };
example-robot-data = toPythonModule (pkgs.example-robot-data.override {
pythonSupport = true;
python3Packages = self;
});
exdown = callPackage ../development/python-modules/exdown { };
exceptiongroup = callPackage ../development/python-modules/exceptiongroup { };
@ -6955,6 +6969,11 @@ self: super: with self; {
pinboard = callPackage ../development/python-modules/pinboard { };
pinocchio = toPythonModule (pkgs.pinocchio.override {
pythonSupport = true;
python3Packages = self;
});
pint = callPackage ../development/python-modules/pint { };
pint-pandas = callPackage ../development/python-modules/pint-pandas { };