mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-31 09:14:28 +00:00
Merge master into staging-next
This commit is contained in:
commit
9fef82dc0b
@ -10948,6 +10948,12 @@
|
||||
githubId = 7226587;
|
||||
name = "Théophane Hufschmitt";
|
||||
};
|
||||
rehno-lindeque = {
|
||||
email = "rehno.lindeque+code@gmail.com";
|
||||
github = "rehno-lindeque";
|
||||
githubId = 337811;
|
||||
name = "Rehno Lindeque";
|
||||
};
|
||||
relrod = {
|
||||
email = "ricky@elrod.me";
|
||||
github = "relrod";
|
||||
|
@ -1,9 +1,11 @@
|
||||
{ callPackage, lowPrio }:
|
||||
{ callPackage, lowPrio, Accelerate, CoreGraphics, CoreVideo}:
|
||||
|
||||
let
|
||||
base3 = callPackage ./tesseract3.nix {};
|
||||
base4 = callPackage ./tesseract4.nix {};
|
||||
base5 = callPackage ./tesseract5.nix {};
|
||||
base5 = callPackage ./tesseract5.nix {
|
||||
inherit Accelerate CoreGraphics CoreVideo;
|
||||
};
|
||||
languages = callPackage ./languages.nix {};
|
||||
in
|
||||
{
|
||||
|
@ -1,5 +1,7 @@
|
||||
{ lib, stdenv, fetchFromGitHub, autoreconfHook, autoconf-archive, pkg-config
|
||||
, leptonica, libpng, libtiff, icu, pango, opencl-headers, fetchpatch }:
|
||||
, leptonica, libpng, libtiff, icu, pango, opencl-headers, fetchpatch
|
||||
, Accelerate, CoreGraphics, CoreVideo
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "tesseract";
|
||||
@ -27,6 +29,10 @@ stdenv.mkDerivation rec {
|
||||
icu
|
||||
pango
|
||||
opencl-headers
|
||||
] ++ lib.optionals stdenv.isDarwin [
|
||||
Accelerate
|
||||
CoreGraphics
|
||||
CoreVideo
|
||||
];
|
||||
|
||||
meta = {
|
||||
@ -34,6 +40,6 @@ stdenv.mkDerivation rec {
|
||||
homepage = "https://github.com/tesseract-ocr/tesseract";
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = with lib.maintainers; [ anselmschueler ];
|
||||
platforms = with lib.platforms; linux ++ darwin;
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
}
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
callPackage ./generic.nix {
|
||||
inherit buildGoModule;
|
||||
version = "1.3.3";
|
||||
sha256 = "sha256-/63QGknivXyBel2MhMzbh/rE+UrfV3mb+zPZzOU15WU=";
|
||||
vendorSha256 = "sha256-5ubJ6hgpdkZd/hwy+u2S6XgQLD5xmgUnaUqJoLdguBQ=";
|
||||
version = "1.3.4";
|
||||
sha256 = "sha256-NeBZVCpylP16dPi68unk3H3/V6gWO/SvJRmjgwwwVts=";
|
||||
vendorSha256 = "sha256-XIHtAB0js55mbVuTTWdLW5BMhQjd6/GUbcBk8DEYZg8=";
|
||||
}
|
||||
|
@ -69,7 +69,15 @@
|
||||
|
||||
|
||||
|
||||
${lib.optionalString (lib.length crateBin > 0) (lib.concatMapStringsSep "\n" (bin: ''
|
||||
${lib.optionalString (lib.length crateBin > 0) (lib.concatMapStringsSep "\n" (bin:
|
||||
let
|
||||
haveRequiredFeature = if bin ? requiredFeatures then
|
||||
# Check that all element in requiredFeatures are also present in crateFeatures
|
||||
lib.intersectLists bin.requiredFeatures crateFeatures == bin.requiredFeatures
|
||||
else
|
||||
true;
|
||||
in
|
||||
if haveRequiredFeature then ''
|
||||
mkdir -p target/bin
|
||||
BIN_NAME='${bin.name or crateName}'
|
||||
${if !bin ? path then ''
|
||||
@ -79,6 +87,8 @@
|
||||
BIN_PATH='${bin.path}'
|
||||
''}
|
||||
${build_bin} "$BIN_NAME" "$BIN_PATH"
|
||||
'' else ''
|
||||
echo Binary ${bin.name or crateName} not compiled due to not having all of the required features -- ${lib.escapeShellArg (builtins.toJSON bin.requiredFeatures)} -- enabled.
|
||||
'') crateBin)}
|
||||
|
||||
${lib.optionalString buildTests ''
|
||||
|
@ -15,22 +15,16 @@ assert blas.implementation == "openblas" && lapack.implementation == "openblas";
|
||||
|
||||
llvmPackages.stdenv.mkDerivation rec {
|
||||
pname = "halide";
|
||||
version = "10.0.0";
|
||||
version = "14.0.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "halide";
|
||||
repo = "Halide";
|
||||
rev = "v${version}";
|
||||
sha256 = "0il71rppjp76m7zd420siidvhs76sqiq26h60ywk812sj9mmgxj6";
|
||||
sha256 = "sha256-/7U2TBcpSAKeEyWncAbtW6Vk/cP+rp1CXtbIjvQMmZA=";
|
||||
};
|
||||
|
||||
# clang fails to compile intermediate code because
|
||||
# of unused "--gcc-toolchain" option
|
||||
postPatch = ''
|
||||
sed -i "s/-Werror//" src/CMakeLists.txt
|
||||
'';
|
||||
|
||||
cmakeFlags = [ "-DWARNINGS_AS_ERRORS=OFF" "-DWITH_PYTHON_BINDINGS=OFF" ];
|
||||
cmakeFlags = [ "-DWARNINGS_AS_ERRORS=OFF" "-DWITH_PYTHON_BINDINGS=OFF" "-DTARGET_WEBASSEMBLY=OFF" ];
|
||||
|
||||
# Note: only openblas and not atlas part of this Nix expression
|
||||
# see pkgs/development/libraries/science/math/liblapack/3.5.0.nix
|
||||
@ -54,6 +48,6 @@ llvmPackages.stdenv.mkDerivation rec {
|
||||
homepage = "https://halide-lang.org";
|
||||
license = licenses.mit;
|
||||
platforms = platforms.all;
|
||||
maintainers = [ maintainers.ck3d ];
|
||||
maintainers = with maintainers; [ ck3d atila ];
|
||||
};
|
||||
}
|
||||
|
@ -2,17 +2,24 @@
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "wasmtime";
|
||||
version = "0.39.1";
|
||||
version = "0.40.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "bytecodealliance";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-cU03wm1+V++mV7j7VyMtjAYrPldzTysNzpJ8m0q4Rx8=";
|
||||
sha256 = "sha256-i3dtjKy5YTyNkEaDcGxsrd4lbyUBd25OARESbJVK9uY=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
cargoSha256 = "sha256-DnThste0SbBdpGAUYhmwbdQFNEB3LozyDf0X8r2A90Q=";
|
||||
cargoSha256 = "sha256-wlcYdZ8Akkpicyw74sh4CNwSstCtUJxf+oSEL/mUtKc=";
|
||||
|
||||
cargoBuildFlags = [
|
||||
"--package wasmtime-cli"
|
||||
"--package wasmtime-c-api"
|
||||
];
|
||||
|
||||
outputs = [ "out" "dev" ];
|
||||
|
||||
# We disable tests on x86_64-darwin because Hydra runners do not
|
||||
# support SSE3, SSSE3, SSE4.1 and SSE4.2 at this time. This is
|
||||
@ -31,6 +38,18 @@ rustPlatform.buildRustPackage rec {
|
||||
"--skip=traps::parse_dwarf_info"
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
# move libs from out to dev
|
||||
install -d -m 0755 $dev/lib
|
||||
install -m 0644 ''${!outputLib}/lib/* $dev/lib
|
||||
rm -r ''${!outputLib}/lib
|
||||
|
||||
install -d -m0755 $dev/include/wasmtime
|
||||
install -m0644 $src/crates/c-api/include/*.h $dev/include
|
||||
install -m0644 $src/crates/c-api/include/wasmtime/*.h $dev/include/wasmtime
|
||||
install -m0644 $src/crates/c-api/wasm-c-api/include/* $dev/include
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Standalone JIT-style runtime for WebAssembly, using Cranelift";
|
||||
homepage = "https://github.com/bytecodealliance/wasmtime";
|
||||
|
@ -27,7 +27,14 @@ stdenv.mkDerivation rec {
|
||||
url = "https://github.com/apache/apr/commit/866e1df66be6704a584feaf5c3d241e3d631d03a.patch";
|
||||
sha256 = "0hhm5v5wx985c28dq6d9ngnyqihpsphq4mw7rwylk39k2p90ppcm";
|
||||
})
|
||||
] ++ lib.optionals stdenv.isDarwin [ ./is-this-a-compiler-bug.patch ];
|
||||
|
||||
# Cross fix. Patch the /dev/zero mmapable detection logic. https://bugs.gentoo.org/show_bug.cgi?id=830833
|
||||
(fetchpatch {
|
||||
url = "https://830833.bugs.gentoo.org/attachment.cgi?id=761676";
|
||||
name = "cross-assume-dev-zero-mmappable.patch";
|
||||
sha256 = "sha256-rsouJp1o7p0d+AJ5KvyhUU79vAJOcVHEuwSEKaCEGa8=";
|
||||
})
|
||||
];
|
||||
|
||||
# This test needs the net
|
||||
postPatch = ''
|
||||
@ -43,9 +50,27 @@ stdenv.mkDerivation rec {
|
||||
'';
|
||||
|
||||
configureFlags = lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) [
|
||||
# For cross builds, provide answers to the configure time tests.
|
||||
# These answers are valid on x86_64-linux and aarch64-linux.
|
||||
"ac_cv_file__dev_zero=yes"
|
||||
"ac_cv_func_setpgrp_void=0"
|
||||
"apr_cv_tcp_nodelay_with_cork=1"
|
||||
"ac_cv_func_setpgrp_void=yes"
|
||||
"apr_cv_tcp_nodelay_with_cork=yes"
|
||||
"ac_cv_define_PTHREAD_PROCESS_SHARED=yes"
|
||||
"apr_cv_process_shared_works=yes"
|
||||
"apr_cv_mutex_robust_shared=yes"
|
||||
"ap_cv_atomic_builtins=yes"
|
||||
"apr_cv_mutex_recursive=yes"
|
||||
"apr_cv_epoll=yes"
|
||||
"apr_cv_epoll_create1=yes"
|
||||
"apr_cv_dup3=yes"
|
||||
"apr_cv_accept4=yes"
|
||||
"apr_cv_sock_cloexec=yes"
|
||||
"ac_cv_struct_rlimit=yes"
|
||||
"ac_cv_func_sem_open=yes"
|
||||
"ac_cv_negative_eai=yes"
|
||||
"apr_cv_gai_addrconfig=yes"
|
||||
"ac_cv_o_nonblock_inherited=no"
|
||||
"apr_cv_pthreads_lib=-lpthread"
|
||||
"CC_FOR_BUILD=${buildPackages.stdenv.cc}/bin/cc"
|
||||
] ++ lib.optionals (stdenv.hostPlatform.system == "i686-cygwin") [
|
||||
# Including the Windows headers breaks unistd.h.
|
||||
|
@ -1,4 +1,4 @@
|
||||
{ lib, stdenv, fetchurl, meson, ninja, pkg-config, gettext, libxml2, gobject-introspection, gnome, glib }:
|
||||
{ lib, stdenv, fetchpatch, fetchurl, meson, ninja, pkg-config, gettext, libxml2, gobject-introspection, gnome, glib }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "totem-pl-parser";
|
||||
@ -9,6 +9,14 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "wN8PaNXPnX2kPIHH8T8RFYNYNo+Ywi1Hci870EvTrBw=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Upstream MR: https://gitlab.gnome.org/GNOME/totem-pl-parser/-/merge_requests/46
|
||||
(fetchpatch {
|
||||
url = "https://gitlab.gnome.org/GNOME/totem-pl-parser/-/commit/f4f69c9b99095416aaed18a73f7486ad9eb04aa9.patch";
|
||||
sha256 = "sha256-Uya5fgFgauv5rIpVK3CDGCieyMus7VjcLMMe/vQ2WWY=";
|
||||
})
|
||||
];
|
||||
|
||||
passthru = {
|
||||
updateScript = gnome.updateScript {
|
||||
packageName = pname;
|
||||
@ -30,6 +38,6 @@ stdenv.mkDerivation rec {
|
||||
description = "Simple GObject-based library to parse and save a host of playlist formats";
|
||||
maintainers = teams.gnome.members;
|
||||
license = licenses.lgpl2;
|
||||
platforms = platforms.linux;
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
|
@ -1,6 +1,7 @@
|
||||
{ stdenv
|
||||
, lib
|
||||
, fetchurl
|
||||
, fetchpatch
|
||||
, asciidoc
|
||||
, docbook-xsl-nons
|
||||
, docbook_xml_dtd_45
|
||||
@ -43,6 +44,7 @@
|
||||
, taglib
|
||||
, upower
|
||||
, totem-pl-parser
|
||||
, e2fsprogs
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
@ -54,6 +56,18 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "Pt3G0nLAKWn6TCwV360MSddtAh8aJ+xwi2m+gCU1PJQ=";
|
||||
};
|
||||
|
||||
# TODO: remove me on 3.4.0
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
url = "https://gitlab.gnome.org/GNOME/tracker-miners/-/commit/cc655ba0f95022cf35bc6d44cb5155788fee2e24.patch";
|
||||
sha256 = "sha256-a85ygtabpkruiDgKbseQxYbFIAQlVDhs3eWkbStJjKs=";
|
||||
})
|
||||
(fetchpatch {
|
||||
url = "https://gitlab.gnome.org/GNOME/tracker-miners/-/commit/9e613ceb37ec41fd1cd88c3d539e3ee03e8f6ba6.patch";
|
||||
sha256 = "sha256-ht7EfZztyl0st0Sv7H92Q37vwXY4T61GQm9WJ8IxTTg=";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
asciidoc
|
||||
docbook-xsl-nons
|
||||
@ -72,7 +86,6 @@ stdenv.mkDerivation rec {
|
||||
buildInputs = [
|
||||
bzip2
|
||||
dbus
|
||||
evolution-data-server
|
||||
exempi
|
||||
giflib
|
||||
glib
|
||||
@ -95,16 +108,20 @@ stdenv.mkDerivation rec {
|
||||
libjpeg
|
||||
libosinfo
|
||||
libpng
|
||||
libseccomp
|
||||
libsoup
|
||||
libtiff
|
||||
libuuid
|
||||
libxml2
|
||||
networkmanager
|
||||
poppler
|
||||
systemd
|
||||
taglib
|
||||
] ++ lib.optionals stdenv.isLinux [
|
||||
evolution-data-server
|
||||
libseccomp
|
||||
networkmanager
|
||||
systemd
|
||||
upower
|
||||
] ++ lib.optionals stdenv.isDarwin [
|
||||
e2fsprogs
|
||||
];
|
||||
|
||||
mesonFlags = [
|
||||
@ -115,6 +132,9 @@ stdenv.mkDerivation rec {
|
||||
# security issue since then. Despite a patch now being availab, we're opting
|
||||
# to be safe due to the general state of the project
|
||||
"-Dminer_rss=false"
|
||||
] ++ lib.optionals (!stdenv.isLinux) [
|
||||
"-Dnetwork_manager=disabled"
|
||||
"-Dsystemd_user_services=false"
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
@ -132,6 +152,6 @@ stdenv.mkDerivation rec {
|
||||
description = "Desktop-neutral user information store, search tool and indexer";
|
||||
maintainers = teams.gnome.members;
|
||||
license = licenses.gpl2Plus;
|
||||
platforms = platforms.linux;
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
|
@ -0,0 +1,43 @@
|
||||
{ buildPythonPackage
|
||||
, cryptography
|
||||
, django
|
||||
, django-appconf
|
||||
, fetchFromGitHub
|
||||
, lib
|
||||
, python
|
||||
, pythonOlder }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "django-cryptography";
|
||||
version = "1.1";
|
||||
disabled = pythonOlder "3.7";
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "georgemarshall";
|
||||
repo = "django-cryptography";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-C3E2iT9JdLvF+1g+xhZ8dPDjjh25JUxLAtTMnalIxPk=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
cryptography
|
||||
django
|
||||
django-appconf
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "django_cryptography" ];
|
||||
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
${python.interpreter} ./runtests.py
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/georgemarshall/django-cryptography";
|
||||
description = "A set of primitives for performing cryptography in Django";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ centromere ];
|
||||
};
|
||||
}
|
@ -77,5 +77,8 @@ buildPythonPackage rec {
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ cmcdragonkai rakesh4g ];
|
||||
platforms = platforms.linux;
|
||||
# Scikit-image 0.19 update broke API, see https://github.com/scikit-image/scikit-image/releases/tag/v0.19.0
|
||||
# and https://github.com/scikit-image/scikit-image/issues/6093
|
||||
broken = lib.versionAtLeast scikitimage.version "0.19";
|
||||
};
|
||||
}
|
||||
|
66
pkgs/development/python-modules/kanidm/default.nix
Normal file
66
pkgs/development/python-modules/kanidm/default.nix
Normal file
@ -0,0 +1,66 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, fetchpatch
|
||||
, pythonOlder
|
||||
|
||||
# build
|
||||
, poetry-core
|
||||
|
||||
# propagates
|
||||
, aiohttp
|
||||
, pydantic
|
||||
, toml
|
||||
|
||||
# tests
|
||||
, pytest-asyncio
|
||||
, pytest-mock
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
let
|
||||
pname = "kanidm";
|
||||
version = "0.0.3";
|
||||
in
|
||||
buildPythonPackage {
|
||||
inherit pname version;
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-sTkAKxtJa7CVYKuXC//eMmf3l8ABsrEr2mdf1r2Gf9A=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
aiohttp
|
||||
pydantic
|
||||
toml
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytest-asyncio
|
||||
pytest-mock
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pytestFlagsArray = [
|
||||
"-m 'not network'"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"kanidm"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Kanidm client library";
|
||||
homepage = "https://github.com/kanidm/kanidm/tree/master/pykanidm";
|
||||
license = licenses.mpl20;
|
||||
maintainers = with maintainers; [ arianvp hexa ];
|
||||
};
|
||||
}
|
@ -27,7 +27,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pydantic";
|
||||
version = "1.9.1";
|
||||
version = "1.9.2";
|
||||
|
||||
outputs = [
|
||||
"out"
|
||||
@ -41,7 +41,7 @@ buildPythonPackage rec {
|
||||
owner = "samuelcolvin";
|
||||
repo = pname;
|
||||
rev = "refs/tags/v${version}";
|
||||
sha256 = "sha256-jqTtNJQ9lRkxDYGG4vg91qH1jrxRU9orEeUofO+bBpA=";
|
||||
sha256 = "sha256-ZGFxyQ1qD3zZWTdfTeoGj3UcUwAzO8K0DySdVAsMHyI=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
|
@ -5,24 +5,25 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyxdg";
|
||||
version = "0.27";
|
||||
version = "0.28";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
domain = "gitlab.freedesktop.org";
|
||||
owner = "xdg";
|
||||
repo = pname;
|
||||
rev = "rel-${version}";
|
||||
sha256 = "1dg826vrc7ifkk4lnf648h61cqfamaqmngkn9hgmxnf9gqmkbn0k";
|
||||
sha256 = "sha256-TrFQzfkXabmfpGYwhxD1UVY1F645KycfSPPrMJFAe+0=";
|
||||
};
|
||||
|
||||
# Tests failed (errors=4, failures=4) on NixOS
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [ "xdg" ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "http://freedesktop.org/wiki/Software/pyxdg";
|
||||
description = "Contains implementations of freedesktop.org standards";
|
||||
license = licenses.lgpl2;
|
||||
maintainers = with maintainers; [ domenkozar ];
|
||||
};
|
||||
|
||||
}
|
||||
|
@ -4,6 +4,7 @@
|
||||
, buildPythonPackage
|
||||
, python
|
||||
, cython
|
||||
, pythran
|
||||
, numpy
|
||||
, scipy
|
||||
, matplotlib
|
||||
@ -16,25 +17,24 @@
|
||||
, imageio
|
||||
, tifffile
|
||||
, pytestCheckHook
|
||||
, doCheck ? false
|
||||
}:
|
||||
|
||||
let
|
||||
installedPackageRoot = "${builtins.placeholder "out"}/${python.sitePackages}";
|
||||
self = buildPythonPackage rec {
|
||||
pname = "scikit-image";
|
||||
version = "0.18.3";
|
||||
version = "0.19.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = pname;
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "0a2h3bw5rkk23k4r04qc9maccg00nddssd7lfsps8nhp5agk1vyh";
|
||||
sha256 = "sha256-zvXgZdvYycFbbMsBFSqMDzLanEtF9+JuVSQ3AM8/LQk=";
|
||||
};
|
||||
|
||||
patches = [ ./add-testing-data.patch ];
|
||||
|
||||
nativeBuildInputs = [ cython ];
|
||||
nativeBuildInputs = [ cython pythran ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
cloudpickle
|
||||
@ -51,7 +51,7 @@ let
|
||||
];
|
||||
|
||||
# test suite is very cpu intensive, move to passthru.tests
|
||||
inherit doCheck;
|
||||
doCheck = false;
|
||||
checkInputs = [ pytestCheckHook ];
|
||||
|
||||
# (1) The package has cythonized modules, whose .so libs will appear only in the wheel, i.e. in nix store;
|
||||
|
@ -78,6 +78,29 @@ def update_file(relpath, variant, version, suffix, sha256):
|
||||
print(result, end='')
|
||||
|
||||
|
||||
def read_file(relpath, variant):
|
||||
file_path = os.path.join(DIR, relpath)
|
||||
re_version = re.compile(fr'^\s*version = "(.+)"; #{variant}')
|
||||
re_suffix = re.compile(fr'^\s*suffix = "(.+)"; #{variant}')
|
||||
version = None
|
||||
suffix = None
|
||||
with fileinput.FileInput(file_path, mode='r') as f:
|
||||
for line in f:
|
||||
version_match = re_version.match(line)
|
||||
if version_match:
|
||||
version = version_match.group(1)
|
||||
continue
|
||||
|
||||
suffix_match = re_suffix.match(line)
|
||||
if suffix_match:
|
||||
suffix = suffix_match.group(1)
|
||||
continue
|
||||
|
||||
if version and suffix:
|
||||
break
|
||||
return version, suffix
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
if len(sys.argv) == 1:
|
||||
panic("Update variant expected")
|
||||
@ -93,5 +116,7 @@ if __name__ == "__main__":
|
||||
zen_version = zen_match.group(1)
|
||||
zen_suffix = zen_match.group(2)
|
||||
break
|
||||
zen_hash = nix_prefetch_git('https://github.com/zen-kernel/zen-kernel.git', zen_tag)
|
||||
update_file('zen-kernels.nix', variant, zen_version, zen_suffix, zen_hash)
|
||||
old_version, old_suffix = read_file('zen-kernels.nix', variant)
|
||||
if old_version != zen_version or old_suffix != zen_suffix:
|
||||
zen_hash = nix_prefetch_git('https://github.com/zen-kernel/zen-kernel.git', zen_tag)
|
||||
update_file('zen-kernels.nix', variant, zen_version, zen_suffix, zen_hash)
|
||||
|
@ -4,16 +4,16 @@ let
|
||||
# comments with variant added for update script
|
||||
# ./update-zen.py zen
|
||||
zenVariant = {
|
||||
version = "5.19.3"; #zen
|
||||
version = "5.19.4"; #zen
|
||||
suffix = "zen1"; #zen
|
||||
sha256 = "0qkkbj7sifc0vqy4q8fdnadqjh2vcv41rbm90abbrnnqiyanc01g"; #zen
|
||||
sha256 = "0px5br9220m8s6y6qzk29i0ksmy43h4652d9xx5y2jb5idwf2sj4"; #zen
|
||||
isLqx = false;
|
||||
};
|
||||
# ./update-zen.py lqx
|
||||
lqxVariant = {
|
||||
version = "5.19.3"; #lqx
|
||||
version = "5.19.4"; #lqx
|
||||
suffix = "lqx1"; #lqx
|
||||
sha256 = "1g4kgcqmwrmrxh7s07md74mpd24i1fmrns5m9k140wzjykcv8n7z"; #lqx
|
||||
sha256 = "1vvc2c35w1xz8zkm79cbcdhwb7dkqxd835w422my5mbi7vhcx7jq"; #lqx
|
||||
isLqx = true;
|
||||
};
|
||||
zenKernelsFor = { version, suffix, sha256, isLqx }: buildLinux (args // {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{ lib, stdenv, fetchurl, cmake, pkg-config, gettext
|
||||
, dbus, dbus-glib, libgaminggear, libgudev, lua
|
||||
, harfbuzz
|
||||
, harfbuzz, runtimeShell, coreutils, kmod
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
@ -19,6 +19,11 @@ stdenv.mkDerivation rec {
|
||||
/return/c \
|
||||
return g_build_path("/", g_get_user_data_dir(), "roccat", NULL);
|
||||
}' libroccat/roccat_helper.c
|
||||
|
||||
substituteInPlace udev/90-roccat-kone.rules \
|
||||
--replace "/bin/sh" "${runtimeShell}" \
|
||||
--replace "/sbin/modprobe" "${kmod}/bin/modprobe" \
|
||||
--replace "/bin/echo" "${coreutils}/bin/echo"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ cmake pkg-config gettext ];
|
||||
|
@ -1,4 +1,4 @@
|
||||
{ lib, kernel, rtl8189es, fetchFromGitHub }:
|
||||
{ lib, kernel, rtl8189es, fetchFromGitHub, fetchpatch }:
|
||||
|
||||
# rtl8189fs is a branch of the rtl8189es driver
|
||||
rtl8189es.overrideAttrs (drv: rec {
|
||||
@ -12,6 +12,13 @@ rtl8189es.overrideAttrs (drv: rec {
|
||||
sha256 = "sha256-JTv+ssSv5toNcZ5wR6p0Cywdk87z9Bdq0ftU0ekr/98=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
url = "https://github.com/jwrdegoede/rtl8189ES_linux/pull/81.patch";
|
||||
sha256 = "sha256-ovFQBIHLk3wi2uwAyr8VmdbuhPcoHsZ/lpA66obVBK4=";
|
||||
})
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Driver for Realtek rtl8189fs";
|
||||
homepage = "https://github.com/jwrdegoede/rtl8189ES_linux/tree/rtl8189fs";
|
||||
|
@ -21,13 +21,13 @@
|
||||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "dtrx";
|
||||
version = "8.2.2";
|
||||
version = "8.3.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "dtrx-py";
|
||||
repo = "dtrx";
|
||||
rev = version;
|
||||
sha256 = "sha256-thtBVGgKRYHOAFuxDvuFxcIHoyYAI58AiNCx4vuVXGs=";
|
||||
rev = "refs/tags/${version}";
|
||||
sha256 = "sha256-a8ZHIPunWGwI992HfgdRvJGtDfYUP50kFt/ROAqDO7E=";
|
||||
};
|
||||
|
||||
postInstall =
|
||||
|
140
pkgs/tools/system/hw-probe/default.nix
Normal file
140
pkgs/tools/system/hw-probe/default.nix
Normal file
@ -0,0 +1,140 @@
|
||||
{ config
|
||||
, stdenv
|
||||
, lib
|
||||
, fetchFromGitHub
|
||||
, makeWrapper
|
||||
, makePerlPath
|
||||
|
||||
# Perl libraries
|
||||
, LWP
|
||||
, LWPProtocolHttps
|
||||
, HTTPMessage
|
||||
, HTTPDate
|
||||
, URI
|
||||
, TryTiny
|
||||
|
||||
# Required
|
||||
, coreutils
|
||||
, curl # Preferred to using the Perl HTTP libs - according to hw-probe.
|
||||
, dmidecode
|
||||
, edid-decode
|
||||
, gnugrep
|
||||
, gnutar
|
||||
, hwinfo
|
||||
, iproute2
|
||||
, kmod
|
||||
, pciutils
|
||||
, perl
|
||||
, smartmontools
|
||||
, usbutils
|
||||
, xz
|
||||
|
||||
# Conditionally recommended
|
||||
, systemdSupport ? stdenv.isLinux
|
||||
, systemd
|
||||
|
||||
# Recommended
|
||||
, withRecommended ? true # Install recommended tools
|
||||
, mcelog
|
||||
, hdparm
|
||||
, acpica-tools
|
||||
, drm_info
|
||||
, mesa-demos
|
||||
, memtester
|
||||
, sysstat
|
||||
, cpuid
|
||||
, util-linuxMinimal
|
||||
, xinput
|
||||
, libva-utils
|
||||
, inxi
|
||||
, vulkan-utils
|
||||
, i2c-tools
|
||||
, opensc
|
||||
|
||||
# Suggested
|
||||
, withSuggested ? false # Install (most) suggested tools
|
||||
, hplip
|
||||
, sane-backends
|
||||
# , pnputils # pnputils (lspnp) isn't currently in nixpkgs and appears to be poorly maintained
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "hw-probe";
|
||||
version = "1.6.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "linuxhw";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256:028wnhrbn10lfxwmcpzdbz67ygldimv7z1k1bm64ggclykvg5aim";
|
||||
};
|
||||
|
||||
makeFlags = [ "prefix=$(out)" ];
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
buildInputs = [ perl ];
|
||||
|
||||
makeWrapperArgs =
|
||||
let
|
||||
requiredPrograms = [
|
||||
hwinfo
|
||||
dmidecode
|
||||
smartmontools
|
||||
pciutils
|
||||
usbutils
|
||||
edid-decode
|
||||
iproute2 # (ip)
|
||||
coreutils # (sort)
|
||||
gnugrep
|
||||
curl
|
||||
gnutar
|
||||
xz
|
||||
kmod # (lsmod)
|
||||
];
|
||||
recommendedPrograms = [
|
||||
mcelog
|
||||
hdparm
|
||||
acpica-tools
|
||||
drm_info
|
||||
mesa-demos
|
||||
memtester
|
||||
sysstat # (iostat)
|
||||
cpuid
|
||||
util-linuxMinimal # (rfkill)
|
||||
xinput
|
||||
libva-utils # (vainfo)
|
||||
inxi
|
||||
vulkan-utils
|
||||
i2c-tools
|
||||
opensc
|
||||
];
|
||||
conditionallyRecommendedPrograms = lib.optional systemdSupport systemd; # (systemd-analyze)
|
||||
suggestedPrograms = [
|
||||
hplip # (hp-probe)
|
||||
sane-backends # (sane-find-scanner)
|
||||
# pnputils # (lspnp)
|
||||
];
|
||||
programs =
|
||||
requiredPrograms
|
||||
++ conditionallyRecommendedPrograms
|
||||
++ lib.optionals withRecommended recommendedPrograms
|
||||
++ lib.optionals withSuggested suggestedPrograms;
|
||||
in [
|
||||
"--set" "PERL5LIB" "${makePerlPath [ LWP LWPProtocolHttps HTTPMessage URI HTTPDate TryTiny ]}"
|
||||
"--prefix" "PATH" ":" "${lib.makeBinPath programs}"
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/hw-probe \
|
||||
$makeWrapperArgs
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Probe for hardware, check operability and find drivers";
|
||||
homepage = "https://github.com/linuxhw/hw-probe";
|
||||
platforms = with platforms; (linux ++ freebsd ++ netbsd ++ openbsd);
|
||||
license = with licenses; [ lgpl21 bsdOriginal ];
|
||||
maintainers = with maintainers; [ rehno-lindeque ];
|
||||
};
|
||||
}
|
@ -7326,7 +7326,7 @@ with pkgs;
|
||||
halibut = callPackage ../tools/typesetting/halibut { };
|
||||
|
||||
halide = callPackage ../development/compilers/halide {
|
||||
llvmPackages = llvmPackages_9;
|
||||
llvmPackages = llvmPackages_14;
|
||||
};
|
||||
|
||||
harePackages = recurseIntoAttrs (callPackage ../development/compilers/hare { });
|
||||
@ -7480,6 +7480,8 @@ with pkgs;
|
||||
|
||||
hwinfo = callPackage ../tools/system/hwinfo { };
|
||||
|
||||
hw-probe = perlPackages.callPackage ../tools/system/hw-probe { };
|
||||
|
||||
hybridreverb2 = callPackage ../applications/audio/hybridreverb2 {
|
||||
stdenv = gcc8Stdenv;
|
||||
};
|
||||
@ -9147,7 +9149,7 @@ with pkgs;
|
||||
buildGoModule = buildGo117Module;
|
||||
};
|
||||
nomad_1_3 = callPackage ../applications/networking/cluster/nomad/1.3.nix {
|
||||
buildGoModule = buildGo118Module;
|
||||
buildGoModule = buildGo119Module;
|
||||
};
|
||||
|
||||
nomad-autoscaler = callPackage ../applications/networking/cluster/nomad-autoscaler { };
|
||||
@ -21947,6 +21949,7 @@ with pkgs;
|
||||
inherit (darwin.apple_sdk.frameworks) AppKit Cocoa;
|
||||
};
|
||||
vulkan-tools-lunarg = callPackage ../tools/graphics/vulkan-tools-lunarg { };
|
||||
vulkan-utils = haskell.lib.compose.justStaticExecutables haskellPackages.vulkan-utils;
|
||||
vulkan-validation-layers = callPackage ../development/tools/vulkan-validation-layers { };
|
||||
|
||||
vxl = callPackage ../development/libraries/vxl { };
|
||||
@ -31158,7 +31161,9 @@ with pkgs;
|
||||
|
||||
termtosvg = callPackage ../tools/misc/termtosvg { };
|
||||
|
||||
inherit (callPackage ../applications/graphics/tesseract {})
|
||||
inherit (callPackage ../applications/graphics/tesseract {
|
||||
inherit (darwin.apple_sdk.frameworks) Accelerate CoreGraphics CoreVideo;
|
||||
})
|
||||
tesseract3
|
||||
tesseract4
|
||||
tesseract5;
|
||||
|
@ -2490,6 +2490,8 @@ in {
|
||||
|
||||
django-cors-headers = callPackage ../development/python-modules/django-cors-headers { };
|
||||
|
||||
django-cryptography = callPackage ../development/python-modules/django-cryptography { };
|
||||
|
||||
django-csp = callPackage ../development/python-modules/django-csp { };
|
||||
|
||||
django-debug-toolbar = callPackage ../development/python-modules/django-debug-toolbar { };
|
||||
@ -4873,6 +4875,8 @@ in {
|
||||
|
||||
kaldi-active-grammar = callPackage ../development/python-modules/kaldi-active-grammar { };
|
||||
|
||||
kanidm = callPackage ../development/python-modules/kanidm { };
|
||||
|
||||
kaptan = callPackage ../development/python-modules/kaptan { };
|
||||
|
||||
karton-asciimagic = callPackage ../development/python-modules/karton-asciimagic { };
|
||||
|
Loading…
Reference in New Issue
Block a user