Merge master into staging-next

Changed files
+181 -116
pkgs
applications
audio
mympd
networking
cluster
arkade
development
ocaml-modules
angstrom
base64
bigarray-overlap
bigstringaf
callipyge
caqti
checkseum
cow
cstruct
decompress
dispatch
domain-name
duration
emile
faraday
ff
fmt
gmap
graphql
h2
httpaf
imagelib
logs
luv
ppx_blob
rpclib
ssl
terminal
terminal_size
uecc
yuscii
python-modules
pylibmc
sorl_thumbnail
telethon
types-redis
tools
misc
cvise
oh-my-posh
regclient
rust
cargo-semver-checks
taplo-lsp
tools
top-level
+2 -2
pkgs/applications/audio/mympd/default.nix
···
stdenv.mkDerivation rec {
pname = "mympd";
-
version = "9.5.2";
src = fetchFromGitHub {
owner = "jcorporation";
repo = "myMPD";
rev = "v${version}";
-
sha256 = "sha256-WmGaZXITvrp7ml7s7FPyp3Q3072KU/P6UombBj99fX0=";
};
nativeBuildInputs = [
···
stdenv.mkDerivation rec {
pname = "mympd";
+
version = "9.5.3";
src = fetchFromGitHub {
owner = "jcorporation";
repo = "myMPD";
rev = "v${version}";
+
sha256 = "sha256-0plbOBTrEOjfVbyfrQ8mNByJb6XygIPTrwGfY6+0DHo=";
};
nativeBuildInputs = [
+3 -3
pkgs/applications/networking/cluster/arkade/default.nix
···
buildGoModule rec {
pname = "arkade";
-
version = "0.8.36";
src = fetchFromGitHub {
owner = "alexellis";
repo = "arkade";
rev = version;
-
sha256 = "sha256-+666KfOK2yxkADw+EvKlXAAsz2Aw+EmRXGAqNMfBsj8=";
};
CGO_ENABLED = 0;
nativeBuildInputs = [ installShellFiles ];
-
vendorSha256 = "sha256-6EnhO4zYYdsTKvNQApZxXo8x6oFKsmuMvOI3zPHAQLs=";
# Exclude pkg/get: tests downloading of binaries which fail when sandbox=true
subPackages = [
···
buildGoModule rec {
pname = "arkade";
+
version = "0.8.38";
src = fetchFromGitHub {
owner = "alexellis";
repo = "arkade";
rev = version;
+
sha256 = "sha256-8C7aQCQ6kqHCGSktYS3djTlEuPyRnzb9LrXkqgfzDyY=";
};
CGO_ENABLED = 0;
nativeBuildInputs = [ installShellFiles ];
+
vendorSha256 = "sha256-ok8NuqVFZtzjSLpgxQI03ISojfKdHPHWyikqwtceMlo=";
# Exclude pkg/get: tests downloading of binaries which fail when sandbox=true
subPackages = [
+1 -1
pkgs/development/ocaml-modules/angstrom/default.nix
···
checkInputs = [ alcotest ppx_let ];
buildInputs = [ ocaml-syntax-shims ];
propagatedBuildInputs = [ bigstringaf result ];
-
doCheck = lib.versionAtLeast ocaml.version "4.05";
meta = {
homepage = "https://github.com/inhabitedtype/angstrom";
···
checkInputs = [ alcotest ppx_let ];
buildInputs = [ ocaml-syntax-shims ];
propagatedBuildInputs = [ bigstringaf result ];
+
doCheck = lib.versionAtLeast ocaml.version "4.08";
meta = {
homepage = "https://github.com/inhabitedtype/angstrom";
+1 -1
pkgs/development/ocaml-modules/base64/default.nix
···
};
# otherwise fmt breaks evaluation
-
doCheck = lib.versionAtLeast ocaml.version "4.05";
checkInputs = [ alcotest bos rresult ];
meta = {
···
};
# otherwise fmt breaks evaluation
+
doCheck = lib.versionAtLeast ocaml.version "4.08";
checkInputs = [ alcotest bos rresult ];
meta = {
+2 -2
pkgs/development/ocaml-modules/bigarray-overlap/default.nix
···
-
{ lib, buildDunePackage, fetchurl
, bigarray-compat, alcotest, astring, fpath, bos, findlib, pkg-config
}:
···
nativeBuildInputs = [ findlib pkg-config ];
checkInputs = [ alcotest astring fpath bos ];
-
doCheck = true;
meta = with lib; {
homepage = "https://github.com/dinosaure/overlap";
···
+
{ lib, buildDunePackage, ocaml, fetchurl
, bigarray-compat, alcotest, astring, fpath, bos, findlib, pkg-config
}:
···
nativeBuildInputs = [ findlib pkg-config ];
checkInputs = [ alcotest astring fpath bos ];
+
doCheck = lib.versionAtLeast ocaml.version "4.08";
meta = with lib; {
homepage = "https://github.com/dinosaure/overlap";
+1 -1
pkgs/development/ocaml-modules/bigstringaf/default.nix
···
nativeBuildInputs = [ pkg-config ];
checkInputs = [ alcotest ];
propagatedBuildInputs = [ bigarray-compat ];
-
doCheck = lib.versionAtLeast ocaml.version "4.05";
meta = {
description = "Bigstring intrinsics and fast blits based on memcpy/memmove";
···
nativeBuildInputs = [ pkg-config ];
checkInputs = [ alcotest ];
propagatedBuildInputs = [ bigarray-compat ];
+
doCheck = lib.versionAtLeast ocaml.version "4.08";
meta = {
description = "Bigstring intrinsics and fast blits based on memcpy/memmove";
+2 -2
pkgs/development/ocaml-modules/callipyge/default.nix
···
propagatedBuildInputs = [ fmt eqaf ];
-
# alcotest isn't available for OCaml < 4.05 due to fmt
-
doCheck = lib.versionAtLeast ocaml.version "4.05";
checkInputs = [ alcotest ];
meta = {
···
propagatedBuildInputs = [ fmt eqaf ];
+
# alcotest isn't available for OCaml < 4.08 due to fmt
+
doCheck = lib.versionAtLeast ocaml.version "4.08";
checkInputs = [ alcotest ];
meta = {
+2 -2
pkgs/development/ocaml-modules/caqti/default.nix
···
-
{ lib, fetchFromGitHub, buildDunePackage
, cppo, logs, ptime, uri, bigstringaf
, re, cmdliner, alcotest }:
···
propagatedBuildInputs = [ logs ptime uri bigstringaf ];
checkInputs = [ re cmdliner alcotest ];
-
doCheck = true;
meta = {
description = "Unified interface to relational database libraries";
···
+
{ lib, fetchFromGitHub, buildDunePackage, ocaml
, cppo, logs, ptime, uri, bigstringaf
, re, cmdliner, alcotest }:
···
propagatedBuildInputs = [ logs ptime uri bigstringaf ];
checkInputs = [ re cmdliner alcotest ];
+
doCheck = lib.versionAtLeast ocaml.version "4.08";
meta = {
description = "Unified interface to relational database libraries";
+2 -2
pkgs/development/ocaml-modules/checkseum/default.nix
···
-
{ lib, fetchurl, buildDunePackage, dune-configurator, pkg-config
, bigarray-compat, optint
, fmt, rresult, bos, fpath, astring, alcotest
, withFreestanding ? false
···
rresult
];
-
doCheck = true;
meta = {
description = "ADLER-32 and CRC32C Cyclic Redundancy Check";
···
+
{ lib, fetchurl, buildDunePackage, ocaml, dune-configurator, pkg-config
, bigarray-compat, optint
, fmt, rresult, bos, fpath, astring, alcotest
, withFreestanding ? false
···
rresult
];
+
doCheck = lib.versionAtLeast ocaml.version "4.08";
meta = {
description = "ADLER-32 and CRC32C Cyclic Redundancy Check";
+2 -2
pkgs/development/ocaml-modules/cow/default.nix
···
-
{ lib, fetchurl, buildDunePackage, alcotest
, uri, xmlm, omd, ezjsonm }:
buildDunePackage rec {
···
propagatedBuildInputs = [ xmlm uri ezjsonm omd ];
checkInputs = [ alcotest ];
-
doCheck = true;
meta = with lib; {
description = "Caml on the Web";
···
+
{ lib, fetchurl, buildDunePackage, ocaml, alcotest
, uri, xmlm, omd, ezjsonm }:
buildDunePackage rec {
···
propagatedBuildInputs = [ xmlm uri ezjsonm omd ];
checkInputs = [ alcotest ];
+
doCheck = lib.versionAtLeast ocaml.version "4.08";
meta = with lib; {
description = "Caml on the Web";
+2 -2
pkgs/development/ocaml-modules/cstruct/default.nix
···
propagatedBuildInputs = [ bigarray-compat ];
-
# alcotest isn't available for OCaml < 4.05 due to fmt
-
doCheck = lib.versionAtLeast ocaml.version "4.05";
checkInputs = [ alcotest ];
meta = {
···
propagatedBuildInputs = [ bigarray-compat ];
+
# alcotest isn't available for OCaml < 4.08 due to fmt
+
doCheck = lib.versionAtLeast ocaml.version "4.08";
checkInputs = [ alcotest ];
meta = {
+2 -2
pkgs/development/ocaml-modules/cstruct/sexp.nix
···
minimumOCamlVersion = "4.03";
-
# alcotest is only available on OCaml >= 4.05 due to fmt
-
doCheck = lib.versionAtLeast ocaml.version "4.05";
checkInputs = [ alcotest ];
propagatedBuildInputs = [ cstruct sexplib ];
···
minimumOCamlVersion = "4.03";
+
# alcotest is only available on OCaml >= 4.08 due to fmt
+
doCheck = lib.versionAtLeast ocaml.version "4.08";
checkInputs = [ alcotest ];
propagatedBuildInputs = [ cstruct sexplib ];
+2 -2
pkgs/development/ocaml-modules/decompress/default.nix
···
-
{ lib, fetchurl, buildDunePackage
, checkseum, bigarray-compat, optint, cmdliner
, bigstringaf, alcotest, camlzip, base64, ctypes, fmt
}:
···
buildInputs = [ cmdliner ];
propagatedBuildInputs = [ optint bigarray-compat checkseum ];
checkInputs = [ alcotest bigstringaf ctypes fmt camlzip base64 ];
-
doCheck = true;
meta = {
description = "Pure OCaml implementation of Zlib";
···
+
{ lib, fetchurl, buildDunePackage, ocaml
, checkseum, bigarray-compat, optint, cmdliner
, bigstringaf, alcotest, camlzip, base64, ctypes, fmt
}:
···
buildInputs = [ cmdliner ];
propagatedBuildInputs = [ optint bigarray-compat checkseum ];
checkInputs = [ alcotest bigstringaf ctypes fmt camlzip base64 ];
+
doCheck = lib.versionAtLeast ocaml.version "4.08";
meta = {
description = "Pure OCaml implementation of Zlib";
+1 -1
pkgs/development/ocaml-modules/dispatch/default.nix
···
checkInputs = [ alcotest ];
-
doCheck = lib.versionAtLeast ocaml.version "4.05";
meta = {
inherit (src.meta) homepage;
···
checkInputs = [ alcotest ];
+
doCheck = lib.versionAtLeast ocaml.version "4.08";
meta = {
inherit (src.meta) homepage;
+1 -1
pkgs/development/ocaml-modules/domain-name/default.nix
···
checkInputs = [ alcotest ];
-
doCheck = lib.versionAtLeast ocaml.version "4.05";
meta = {
homepage = "https://github.com/hannesm/domain-name";
···
checkInputs = [ alcotest ];
+
doCheck = lib.versionAtLeast ocaml.version "4.08";
meta = {
homepage = "https://github.com/hannesm/domain-name";
+1 -1
pkgs/development/ocaml-modules/duration/default.nix
···
sha256 = "sha256-rRT7daWm9z//fvFyEXiSXuVVzw8jsj46sykYS8DBzmk=";
};
-
doCheck = lib.versionAtLeast ocaml.version "4.05";
checkInputs = [ alcotest ];
meta = {
···
sha256 = "sha256-rRT7daWm9z//fvFyEXiSXuVVzw8jsj46sykYS8DBzmk=";
};
+
doCheck = lib.versionAtLeast ocaml.version "4.08";
checkInputs = [ alcotest ];
meta = {
+3 -3
pkgs/development/ocaml-modules/emile/default.nix
···
];
# technically emile is available for ocaml >= 4.03, but alcotest
-
# and angstrom (fmt) are only available for >= 4.05. Disabling
-
# tests for < 4.05 at least improves the error message
-
doCheck = lib.versionAtLeast ocaml.version "4.05";
checkInputs = [ alcotest ];
meta = with lib; {
···
];
# technically emile is available for ocaml >= 4.03, but alcotest
+
# and angstrom (fmt) are only available for >= 4.08. Disabling
+
# tests for < 4.08 at least improves the error message
+
doCheck = lib.versionAtLeast ocaml.version "4.08";
checkInputs = [ alcotest ];
meta = with lib; {
+1 -1
pkgs/development/ocaml-modules/faraday/default.nix
···
checkInputs = [ alcotest ];
propagatedBuildInputs = [ bigstringaf ];
-
doCheck = lib.versionAtLeast ocaml.version "4.05";
meta = {
description = "Serialization library built for speed and memory efficiency";
···
checkInputs = [ alcotest ];
propagatedBuildInputs = [ bigstringaf ];
+
doCheck = lib.versionAtLeast ocaml.version "4.08";
meta = {
description = "Serialization library built for speed and memory efficiency";
+2 -2
pkgs/development/ocaml-modules/ff/default.nix
···
-
{ lib, fetchFromGitLab, buildDunePackage, zarith, alcotest }:
buildDunePackage rec {
pname = "ff";
···
alcotest
];
-
doCheck = true;
meta = {
homepage = "https://gitlab.com/dannywillems/ocaml-ff";
···
+
{ lib, fetchFromGitLab, buildDunePackage, ocaml, zarith, alcotest }:
buildDunePackage rec {
pname = "ff";
···
alcotest
];
+
doCheck = lib.versionAtLeast ocaml.version "4.08";
meta = {
homepage = "https://gitlab.com/dannywillems/ocaml-ff";
+4 -5
pkgs/development/ocaml-modules/fmt/default.nix
···
-
{ lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg, cmdliner, seq, stdlib-shims }:
-
if lib.versionOlder ocaml.version "4.05"
then throw "fmt is not available for OCaml ${ocaml.version}"
else
stdenv.mkDerivation rec {
-
version = "0.8.9";
pname = "ocaml${ocaml.version}-fmt";
src = fetchurl {
url = "https://erratique.ch/software/fmt/releases/fmt-${version}.tbz";
-
sha256 = "0gkkkj4x678vxdda4xaw2dd44qjacavsvn5nx8gydfwah6pjbkxk";
};
nativeBuildInputs = [ ocaml findlib ocamlbuild topkg ];
buildInputs = [ cmdliner topkg ];
-
propagatedBuildInputs = [ seq stdlib-shims ];
strictDeps = true;
···
+
{ lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg, cmdliner }:
+
if lib.versionOlder ocaml.version "4.08"
then throw "fmt is not available for OCaml ${ocaml.version}"
else
stdenv.mkDerivation rec {
+
version = "0.9.0";
pname = "ocaml${ocaml.version}-fmt";
src = fetchurl {
url = "https://erratique.ch/software/fmt/releases/fmt-${version}.tbz";
+
sha256 = "sha256-8fsggFoi3XWhN9cnBKNw53ic9r32OUjmgX0cImwUEmE=";
};
nativeBuildInputs = [ ocaml findlib ocamlbuild topkg ];
buildInputs = [ cmdliner topkg ];
strictDeps = true;
+1 -1
pkgs/development/ocaml-modules/gmap/default.nix
···
checkInputs = [ alcotest ];
-
doCheck = lib.versionAtLeast ocaml.version "4.05";
meta = {
description = "Heterogenous maps over a GADT";
···
checkInputs = [ alcotest ];
+
doCheck = lib.versionAtLeast ocaml.version "4.08";
meta = {
description = "Heterogenous maps over a GADT";
+3 -3
pkgs/development/ocaml-modules/graphql/parser.nix
···
-
{ lib, buildDunePackage, ocaml, fetchurl, alcotest, fmt, menhir, re }:
buildDunePackage rec {
pname = "graphql_parser";
version = "0.14.0";
-
minimalOCamlVersion = "4.05";
src = fetchurl {
url = "https://github.com/andreas/ocaml-graphql-server/releases/download/${version}/graphql-${version}.tbz";
···
checkInputs = [ alcotest ];
-
doCheck = lib.versionAtLeast ocaml.version "4.08";
meta = {
homepage = "https://github.com/andreas/ocaml-graphql-server";
···
+
{ lib, buildDunePackage, fetchurl, alcotest, fmt, menhir, re }:
buildDunePackage rec {
pname = "graphql_parser";
version = "0.14.0";
+
minimalOCamlVersion = "4.08";
src = fetchurl {
url = "https://github.com/andreas/ocaml-graphql-server/releases/download/${version}/graphql-${version}.tbz";
···
checkInputs = [ alcotest ];
+
doCheck = true;
meta = {
homepage = "https://github.com/andreas/ocaml-graphql-server";
+1 -1
pkgs/development/ocaml-modules/h2/default.nix
···
];
# Tests fail with 4.06
-
doCheck = lib.versionAtLeast ocaml.version "4.07";
preCheck = ''
ln -s "${http2-frame-test-case}" lib_test/http2-frame-test-case
'';
···
];
# Tests fail with 4.06
+
doCheck = lib.versionAtLeast ocaml.version "4.08";
preCheck = ''
ln -s "${http2-frame-test-case}" lib_test/http2-frame-test-case
'';
+2 -2
pkgs/development/ocaml-modules/httpaf/default.nix
···
-
{ lib, fetchFromGitHub, fetchpatch, buildDunePackage
, angstrom, faraday, alcotest
}:
···
checkInputs = [ alcotest ];
propagatedBuildInputs = [ angstrom faraday ];
-
doCheck = true;
meta = {
description = "A high-performance, memory-efficient, and scalable web server for OCaml";
···
+
{ lib, fetchFromGitHub, fetchpatch, buildDunePackage, ocaml
, angstrom, faraday, alcotest
}:
···
checkInputs = [ alcotest ];
propagatedBuildInputs = [ angstrom faraday ];
+
doCheck = lib.versionAtLeast ocaml.version "4.08";
meta = {
description = "A high-performance, memory-efficient, and scalable web server for OCaml";
+2 -2
pkgs/development/ocaml-modules/imagelib/default.nix
···
-
{ lib, fetchurl, buildDunePackage
, decompress, stdlib-shims, alcotest
}:
···
propagatedBuildInputs = [ decompress stdlib-shims ];
-
doCheck = true;
checkInputs = [ alcotest ];
meta = {
···
+
{ lib, fetchurl, buildDunePackage, ocaml
, decompress, stdlib-shims, alcotest
}:
···
propagatedBuildInputs = [ decompress stdlib-shims ];
+
doCheck = lib.versionAtLeast ocaml.version "4.08";
checkInputs = [ alcotest ];
meta = {
+4 -2
pkgs/development/ocaml-modules/logs/default.nix
···
{ lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild
, topkg, result, lwt, cmdliner, fmt
, js_of_ocaml
, jsooSupport ? true
}:
···
};
nativeBuildInputs = [ ocaml findlib ocamlbuild topkg ];
-
buildInputs = [ fmt cmdliner lwt topkg ]
++ lib.optional jsooSupport js_of_ocaml;
propagatedBuildInputs = [ result ];
strictDeps = true;
-
buildPhase = "${topkg.run} build --with-js_of_ocaml ${lib.boolToString jsooSupport}";
inherit (topkg) installPhase;
···
{ lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild
, topkg, result, lwt, cmdliner, fmt
+
, fmtSupport ? lib.versionAtLeast ocaml.version "4.08"
, js_of_ocaml
, jsooSupport ? true
}:
···
};
nativeBuildInputs = [ ocaml findlib ocamlbuild topkg ];
+
buildInputs = [ cmdliner lwt topkg ]
+
++ lib.optional fmtSupport fmt
++ lib.optional jsooSupport js_of_ocaml;
propagatedBuildInputs = [ result ];
strictDeps = true;
+
buildPhase = "${topkg.run} build --with-js_of_ocaml ${lib.boolToString jsooSupport} --with-fmt ${lib.boolToString fmtSupport}";
inherit (topkg) installPhase;
+2 -2
pkgs/development/ocaml-modules/luv/default.nix
···
-
{ lib, buildDunePackage, fetchurl
, ctypes, result
, alcotest
, file
···
nativeBuildInputs = [ file ];
propagatedBuildInputs = [ ctypes result ];
checkInputs = [ alcotest ];
-
doCheck = true;
meta = with lib; {
homepage = "https://github.com/aantron/luv";
···
+
{ lib, buildDunePackage, ocaml, fetchurl
, ctypes, result
, alcotest
, file
···
nativeBuildInputs = [ file ];
propagatedBuildInputs = [ ctypes result ];
checkInputs = [ alcotest ];
+
doCheck = lib.versionAtLeast ocaml.version "4.08";
meta = with lib; {
homepage = "https://github.com/aantron/luv";
+1 -1
pkgs/development/ocaml-modules/ppx_blob/default.nix
···
checkInputs = [ alcotest ];
propagatedBuildInputs = [ ppxlib ];
-
doCheck = lib.versionAtLeast ocaml.version "4.05";
meta = with lib; {
homepage = "https://github.com/johnwhitington/ppx_blob";
···
checkInputs = [ alcotest ];
propagatedBuildInputs = [ ppxlib ];
+
doCheck = lib.versionAtLeast ocaml.version "4.08";
meta = with lib; {
homepage = "https://github.com/johnwhitington/ppx_blob";
+2 -2
pkgs/development/ocaml-modules/rpclib/default.nix
···
-
{ lib, fetchurl, buildDunePackage
, alcotest
, base64, cmdliner, rresult, xmlm, yojson
}:
···
propagatedBuildInputs = [ base64 rresult xmlm ];
checkInputs = [ alcotest ];
-
doCheck = true;
meta = with lib; {
homepage = "https://github.com/mirage/ocaml-rpc";
···
+
{ lib, fetchurl, buildDunePackage, ocaml
, alcotest
, base64, cmdliner, rresult, xmlm, yojson
}:
···
propagatedBuildInputs = [ base64 rresult xmlm ];
checkInputs = [ alcotest ];
+
doCheck = lib.versionAtLeast ocaml.version "4.08";
meta = with lib; {
homepage = "https://github.com/mirage/ocaml-rpc";
+1 -1
pkgs/development/ocaml-modules/ssl/default.nix
···
buildInputs = [ dune-configurator ];
propagatedBuildInputs = [ openssl ];
-
doCheck = lib.versionAtLeast ocaml.version "4.06";
checkInputs = [ alcotest ];
preCheck = ''
mkdir -p _build/default/tests/
···
buildInputs = [ dune-configurator ];
propagatedBuildInputs = [ openssl ];
+
doCheck = lib.versionAtLeast ocaml.version "4.08";
checkInputs = [ alcotest ];
preCheck = ''
mkdir -p _build/default/tests/
+1 -1
pkgs/development/ocaml-modules/terminal/default.nix
···
propagatedBuildInputs = [ stdlib-shims uutf uucp ];
-
doCheck = lib.versionAtLeast ocaml.version "4.05";
checkInputs = [ alcotest fmt ];
meta = with lib; {
···
propagatedBuildInputs = [ stdlib-shims uutf uucp ];
+
doCheck = lib.versionAtLeast ocaml.version "4.08";
checkInputs = [ alcotest fmt ];
meta = with lib; {
+2 -2
pkgs/development/ocaml-modules/terminal_size/default.nix
···
-
{ lib, buildDunePackage, fetchurl, alcotest }:
buildDunePackage rec {
pname = "terminal_size";
···
};
checkInputs = [ alcotest ];
-
doCheck = true;
meta = with lib; {
description = "Get the dimensions of the terminal";
···
+
{ lib, buildDunePackage, ocaml, fetchurl, alcotest }:
buildDunePackage rec {
pname = "terminal_size";
···
};
checkInputs = [ alcotest ];
+
doCheck = lib.versionAtLeast ocaml.version "4.08";
meta = with lib; {
description = "Get the dimensions of the terminal";
+2 -2
pkgs/development/ocaml-modules/uecc/default.nix
···
-
{ lib, fetchFromGitLab, buildDunePackage, bigstring, alcotest, cstruct, hex }:
buildDunePackage rec {
pname = "uecc";
···
hex
];
-
doCheck = true;
meta = {
description = "Bindings for ECDH and ECDSA for 8-bit, 32-bit, and 64-bit processors";
···
+
{ lib, fetchFromGitLab, buildDunePackage, ocaml, bigstring, alcotest, cstruct, hex }:
buildDunePackage rec {
pname = "uecc";
···
hex
];
+
doCheck = lib.versionAtLeast ocaml.version "4.08";
meta = {
description = "Bindings for ECDH and ECDSA for 8-bit, 32-bit, and 64-bit processors";
+4 -1
pkgs/development/ocaml-modules/yuscii/default.nix
···
{ alcotest
, buildDunePackage
, fetchzip
, gcc
, fmt
···
buildDunePackage rec {
pname = "yuscii";
version = "0.3.0";
src = fetchzip {
url = "https://github.com/mirage/yuscii/releases/download/v${version}/yuscii-v${version}.tbz";
···
fmt
uutf
];
-
doCheck = true;
meta = {
description = "A simple mapper between UTF-7 to Unicode according RFC2152";
···
{ alcotest
, buildDunePackage
+
, ocaml
, fetchzip
, gcc
, fmt
···
buildDunePackage rec {
pname = "yuscii";
version = "0.3.0";
+
+
minimalOCamlVersion = "4.03";
src = fetchzip {
url = "https://github.com/mirage/yuscii/releases/download/v${version}/yuscii-v${version}.tbz";
···
fmt
uutf
];
+
doCheck = lib.versionAtLeast ocaml.version "4.08";
meta = {
description = "A simple mapper between UTF-7 to Unicode according RFC2152";
+2 -2
pkgs/development/python-modules/pylibmc/default.nix
···
buildPythonPackage rec {
pname = "pylibmc";
-
version = "1.6.2";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
-
hash = "sha256-QatJ05VAdnN0iRvvC+tSkcqXvrcEi3r3dSEGSVPATcA=";
};
buildInputs = [
···
buildPythonPackage rec {
pname = "pylibmc";
+
version = "1.6.3";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
+
hash = "sha256-7vpGEVU3q61l++LgMqzRs0Y9m/njNa9LCRbfTk0yBuA=";
};
buildInputs = [
+2 -2
pkgs/development/python-modules/sorl_thumbnail/default.nix
···
buildPythonPackage rec {
pname = "sorl-thumbnail";
-
version = "12.8.0";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
-
sha256 = "sha256-7io8nwuInlmRk4PTeB8TF9ycSSf7RLIvsUN/b+cFS5Y=";
};
nativeBuildInputs = [ setuptools-scm ];
···
buildPythonPackage rec {
pname = "sorl-thumbnail";
+
version = "12.9.0";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
+
sha256 = "sha256-DLwvUhUufyJm48LLSuXYOv0ulv1eHELlZnNiuqo9LbM=";
};
nativeBuildInputs = [ setuptools-scm ];
+2 -2
pkgs/development/python-modules/telethon/default.nix
···
buildPythonPackage rec {
pname = "telethon";
-
version = "1.24.0";
src = fetchPypi {
inherit version;
pname = "Telethon";
-
sha256 = "818cb61281ed3f75ba4da9b68cb69486bed9474d2db4e0aa16e482053117452c";
};
patchPhase = ''
···
buildPythonPackage rec {
pname = "telethon";
+
version = "1.25.0";
src = fetchPypi {
inherit version;
pname = "Telethon";
+
sha256 = "sha256-Z22XuSbm0w2+0x1sbmYRzeyfyCdZeFzqVcR3C3RhQpA=";
};
patchPhase = ''
+2 -2
pkgs/development/python-modules/types-redis/default.nix
···
buildPythonPackage rec {
pname = "types-redis";
-
version = "4.3.18";
format = "setuptools";
src = fetchPypi {
inherit pname version;
-
sha256 = "sha256-ImBTLBV9T2T24mbeZ7CqoZec+5aeQJoWRF7Gl2xKHeY=";
};
# Module doesn't have tests
···
buildPythonPackage rec {
pname = "types-redis";
+
version = "4.3.19";
format = "setuptools";
src = fetchPypi {
inherit pname version;
+
sha256 = "sha256-yIH/uUvUfcoh7VAzKFRKVrsxWFFXXuuyf7Nxv/c1hEo=";
};
# Module doesn't have tests
+7 -9
pkgs/development/tools/misc/cvise/default.nix
···
, fetchFromGitHub
, bash
, cmake
, flex
, libclang
, llvm
···
buildPythonApplication rec {
pname = "cvise";
-
version = "2.4.0";
src = fetchFromGitHub {
owner = "marxin";
repo = "cvise";
-
rev = "v${version}";
-
sha256 = "0cfzikkhp91hjgxjk3izzczb8d9p8v9zsfyk6iklk92n5qf1aakq";
};
patches = [
···
substituteInPlace cvise.py \
--replace "#!/bin/bash" "#!${bash}/bin/bash"
-
substituteInPlace setup.cfg \
-
--replace "--flake8" ""
'';
nativeBuildInputs = [
···
pytestCheckHook
unifdef
];
-
-
preCheck = ''
-
patchShebangs cvise.py
-
'';
disabledTests = [
# Needs gcc, fails when run noninteractively (without tty).
···
, fetchFromGitHub
, bash
, cmake
+
, colordiff
, flex
, libclang
, llvm
···
buildPythonApplication rec {
pname = "cvise";
+
version = "2.5.0";
src = fetchFromGitHub {
owner = "marxin";
repo = "cvise";
+
rev = "refs/tags/v${version}";
+
sha256 = "sha256-Nt6Zs3FxO8Ti+ikVPVaMCejzBIuUxrzG4VLhChCSJQw=";
};
patches = [
···
substituteInPlace cvise.py \
--replace "#!/bin/bash" "#!${bash}/bin/bash"
+
substituteInPlace cvise/utils/testing.py \
+
--replace "'colordiff --version'" "'${colordiff}/bin/colordiff --version'" \
+
--replace "'colordiff'" "'${colordiff}/bin/colordiff'"
'';
nativeBuildInputs = [
···
pytestCheckHook
unifdef
];
disabledTests = [
# Needs gcc, fails when run noninteractively (without tty).
+2 -2
pkgs/development/tools/oh-my-posh/default.nix
···
buildGoModule rec {
pname = "oh-my-posh";
-
version = "8.36.1";
src = fetchFromGitHub {
owner = "jandedobbeleer";
repo = pname;
rev = "v${version}";
-
sha256 = "sha256-/l2tekp3kke4soyBOmNEqh0Jxbpk2qK4vYrOfc+pw1o=";
};
vendorSha256 = "sha256-t4FpvXsGVsTYoGM8wY2JelscnlmDzrLMPYk7zGUfo58=";
···
buildGoModule rec {
pname = "oh-my-posh";
+
version = "8.36.4";
src = fetchFromGitHub {
owner = "jandedobbeleer";
repo = pname;
rev = "v${version}";
+
sha256 = "sha256-aTpAFERzNKezZU3+B5Ni4qasqJrpOwNBbZ5zeJLwGUM=";
};
vendorSha256 = "sha256-t4FpvXsGVsTYoGM8wY2JelscnlmDzrLMPYk7zGUfo58=";
+3 -3
pkgs/development/tools/regclient/default.nix
···
buildGoModule rec {
pname = "regclient";
-
version = "0.4.2";
tag = "v${version}";
src = fetchFromGitHub {
owner = "regclient";
repo = "regclient";
rev = tag;
-
sha256 = "sha256-lx2IQ3NpFuVr4Vb7vFcp/QVZBlLzi4VXFE7Sw3LKIXE=";
};
-
vendorSha256 = "sha256-7kDl7gyKFM2gErDhOBCo6T4etwsAJnRpVtaJgv6BefM=";
outputs = [ "out" ] ++ bins;
···
buildGoModule rec {
pname = "regclient";
+
version = "0.4.4";
tag = "v${version}";
src = fetchFromGitHub {
owner = "regclient";
repo = "regclient";
rev = tag;
+
sha256 = "sha256-jIdbSDUpSKlb6RES6hx+r+vZyny56aWyjAurCI3mywk=";
};
+
vendorSha256 = "sha256-QTeVgvjRw2wBd8QGoVpRVTTh+Wwu2NEZYR1Z9R52/p0=";
outputs = [ "out" ] ++ bins;
+41
pkgs/development/tools/rust/cargo-semver-checks/default.nix
···
···
+
{ lib
+
, rustPlatform
+
, fetchFromGitHub
+
, pkg-config
+
, libgit2
+
, openssl
+
, stdenv
+
, Security
+
}:
+
+
rustPlatform.buildRustPackage rec {
+
pname = "cargo-semver-checks";
+
version = "0.9.2";
+
+
src = fetchFromGitHub {
+
owner = "obi1kenobi";
+
repo = "cargo-semver-check";
+
rev = "v${version}";
+
sha256 = "0w5qmbjkbd7ss2a3xhx186bykb3ghk6z0dmbz5i06k3acdv52gi7";
+
};
+
+
cargoSha256 = "sha256-RDFKI++5274bquh4bao10PQbdTOoCWcmueajIm8SvTw=";
+
+
nativeBuildInputs = [ pkg-config ];
+
+
buildInputs = [ libgit2 openssl ] ++ lib.optionals stdenv.isDarwin [
+
Security
+
];
+
+
checkFlags = [
+
# requires nightly version of cargo-rustdoc
+
"--skip=adapter::tests"
+
];
+
+
meta = with lib; {
+
description = "A tool to scan your Rust crate for semver violations";
+
homepage = "https://github.com/obi1kenobi/cargo-semver-check";
+
license = licenses.asl20;
+
maintainers = with maintainers; [ figsoda ];
+
};
+
}
-28
pkgs/development/tools/taplo-lsp/default.nix
···
-
{ fetchCrate, lib, openssl, pkg-config, rustPlatform, stdenv, Security }:
-
-
rustPlatform.buildRustPackage rec {
-
pname = "taplo-lsp";
-
version = "0.2.6";
-
-
src = fetchCrate {
-
inherit pname version;
-
sha256 = "sha256-jd4l9iTCeHnUa/GC13paD3zDiCZBk9VgEbCDsOs/Xq4=";
-
};
-
-
cargoSha256 = "sha256-zQ303JFqnbulkWL4t5+fRWijaY9zd9tLKvrvdUEvKpY=";
-
-
# excludes test_tcp since it fails
-
cargoTestFlags = [ "test_stdio" ];
-
-
nativeBuildInputs = lib.optional stdenv.isLinux pkg-config;
-
-
buildInputs = lib.optional stdenv.isLinux openssl
-
++ lib.optional stdenv.isDarwin Security;
-
-
meta = with lib; {
-
description = "A TOML toolkit written in Rust";
-
homepage = "https://taplo.tamasfe.dev";
-
license = licenses.mit;
-
maintainers = with maintainers; [ figsoda ];
-
};
-
}
···
+11 -5
pkgs/tools/misc/yubikey-manager/default.nix
···
-
{ python3Packages, fetchFromGitHub, lib, yubikey-personalization, libu2f-host, libusb1, procps }:
python3Packages.buildPythonPackage rec {
pname = "yubikey-manager";
···
sha256 = "sha256-MwM/b1QP6pkyBjz/r6oC4sW1mKC0CKMay45a0wCktk0=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace 'fido2 = ">=0.9, <1.0"' 'fido2 = ">*"'
substituteInPlace "ykman/pcsc/__init__.py" \
-
--replace 'pkill' '${procps}/bin/pkill'
'';
nativeBuildInputs = with python3Packages; [ poetry-core ];
propagatedBuildInputs =
-
with python3Packages; [
click
cryptography
pyscard
pyusb
-
pyopenssl
six
fido2
-
] ++ [
libu2f-host
libusb1
yubikey-personalization
···
+
{ python3Packages, fetchFromGitHub, lib, yubikey-personalization, libu2f-host, libusb1, procps
+
, stdenv, pyOpenSSLSupport ? !(stdenv.isDarwin && stdenv.isAarch64) }:
python3Packages.buildPythonPackage rec {
pname = "yubikey-manager";
···
sha256 = "sha256-MwM/b1QP6pkyBjz/r6oC4sW1mKC0CKMay45a0wCktk0=";
};
+
patches = lib.optionals (!pyOpenSSLSupport) [
+
./remove-pyopenssl-tests.patch
+
];
+
postPatch = ''
substituteInPlace pyproject.toml \
--replace 'fido2 = ">=0.9, <1.0"' 'fido2 = ">*"'
substituteInPlace "ykman/pcsc/__init__.py" \
+
--replace 'pkill' '${if stdenv.isLinux then "${procps}" else "/usr"}/bin/pkill'
'';
nativeBuildInputs = with python3Packages; [ poetry-core ];
propagatedBuildInputs =
+
with python3Packages; ([
click
cryptography
pyscard
pyusb
six
fido2
+
] ++ lib.optionals pyOpenSSLSupport [
+
pyopenssl
+
]) ++ [
libu2f-host
libusb1
yubikey-personalization
+41
pkgs/tools/misc/yubikey-manager/remove-pyopenssl-tests.patch
···
···
+
diff --git a/pyproject.toml b/pyproject.toml
+
index 65a5943..e6932e0 100644
+
--- a/pyproject.toml
+
+++ b/pyproject.toml
+
@@ -30,7 +30,6 @@ packages = [
+
python = "^3.6"
+
dataclasses = {version = "^0.8", python = "<3.7"}
+
cryptography = ">=2.1, <39"
+
-pyOpenSSL = {version = ">=0.15.1", optional = true}
+
pyscard = "^1.9 || ^2.0"
+
fido2 = ">=0.9, <2.0"
+
click = "^7.0 || ^8.0"
+
diff --git a/tests/test_util.py b/tests/test_util.py
+
index 6ccda6c..b4460e4 100644
+
--- a/tests/test_util.py
+
+++ b/tests/test_util.py
+
@@ -8,7 +8,6 @@ from ykman.util import _parse_pkcs12_pyopenssl, _parse_pkcs12_cryptography
+
from ykman.otp import format_oath_code, generate_static_pw, time_challenge
+
from .util import open_file
+
from cryptography.hazmat.primitives.serialization import pkcs12
+
-from OpenSSL import crypto
+
+
import unittest
+
+
@@ -114,16 +113,6 @@ class TestUtilityFunctions(unittest.TestCase):
+
) as rsa_2048_key_cert_encrypted_pfx:
+
self.assertTrue(is_pkcs12(rsa_2048_key_cert_encrypted_pfx.read()))
+
+
- def test_parse_pkcs12(self):
+
- with open_file("rsa_2048_key_cert.pfx") as rsa_2048_key_cert_pfx:
+
- data = rsa_2048_key_cert_pfx.read()
+
-
+
- key1, certs1 = _parse_pkcs12_cryptography(pkcs12, data, None)
+
- key2, certs2 = _parse_pkcs12_pyopenssl(crypto, data, None)
+
- self.assertEqual(key1.private_numbers(), key2.private_numbers())
+
- self.assertEqual(1, len(certs1))
+
- self.assertEqual(certs1, certs2)
+
-
+
def test_is_pem(self):
+
self.assertFalse(is_pem(b"just a byte string"))
+
self.assertFalse(is_pem(None))
+3
pkgs/top-level/all-packages.nix
···
inherit (darwin.apple_sdk.frameworks) Security;
};
cargo-readme = callPackage ../development/tools/rust/cargo-readme {};
cargo-sort = callPackage ../development/tools/rust/cargo-sort { };
cargo-spellcheck = callPackage ../development/tools/rust/cargo-spellcheck {
inherit (darwin.apple_sdk.frameworks) Security;
···
inherit (darwin.apple_sdk.frameworks) Security;
};
cargo-readme = callPackage ../development/tools/rust/cargo-readme {};
+
cargo-semver-checks = callPackage ../development/tools/rust/cargo-semver-checks {
+
inherit (darwin.apple_sdk.frameworks) Security;
+
};
cargo-sort = callPackage ../development/tools/rust/cargo-sort { };
cargo-spellcheck = callPackage ../development/tools/rust/cargo-spellcheck {
inherit (darwin.apple_sdk.frameworks) Security;