Merge master into staging-next

This commit is contained in:
github-actions[bot] 2021-11-25 18:01:08 +00:00 committed by GitHub
commit c0838c1e7a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
26 changed files with 308 additions and 246 deletions

View file

@ -5010,6 +5010,12 @@
githubId = 4085046; githubId = 4085046;
name = "Imuli"; name = "Imuli";
}; };
ineol = {
email = "leo.stefanesco@gmail.com";
github = "ineol";
githubId = 37965;
name = "Léo Stefanesco";
};
infinisil = { infinisil = {
email = "contact@infinisil.com"; email = "contact@infinisil.com";
matrix = "@infinisil:matrix.org"; matrix = "@infinisil:matrix.org";

View file

@ -172,6 +172,41 @@
</listitem> </listitem>
</itemizedlist> </itemizedlist>
</listitem> </listitem>
<listitem>
<para>
ORY Kratos was updated to version 0.8.0-alpha.3
</para>
<itemizedlist spacing="compact">
<listitem>
<para>
This release requires you to run SQL migrations. Please,
as always, create a backup of your database first!
</para>
</listitem>
<listitem>
<para>
The SDKs are now generated with tag v0alpha2 to reflect
that some signatures have changed in a breaking fashion.
Please update your imports from v0alpha1 to v0alpha2.
</para>
</listitem>
<listitem>
<para>
The SMTPS scheme used in courier config URL with
cleartext/StartTLS/TLS SMTP connection types is now only
supporting implicit TLS. For StartTLS and cleartext SMTP,
please use the SMTP scheme instead.
</para>
</listitem>
<listitem>
<para>
for more details, see
<link xlink:href="https://github.com/ory/kratos/releases/tag/v0.8.0-alpha.1">Release
Notes</link>.
</para>
</listitem>
</itemizedlist>
</listitem>
</itemizedlist> </itemizedlist>
</section> </section>
<section xml:id="sec-release-21.11-new-services"> <section xml:id="sec-release-21.11-new-services">

View file

@ -50,6 +50,12 @@ In addition to numerous new and upgraded packages, this release has the followin
- This breaks connections to old SSH daemons as ssh-rsa host keys and ssh-rsa public keys that were signed with SHA-1 are disabled by default now - This breaks connections to old SSH daemons as ssh-rsa host keys and ssh-rsa public keys that were signed with SHA-1 are disabled by default now
- These can be re-enabled, see the [OpenSSH changelog](https://www.openssh.com/txt/release-8.8) for details - These can be re-enabled, see the [OpenSSH changelog](https://www.openssh.com/txt/release-8.8) for details
- ORY Kratos was updated to version 0.8.0-alpha.3
- This release requires you to run SQL migrations. Please, as always, create a backup of your database first!
- The SDKs are now generated with tag v0alpha2 to reflect that some signatures have changed in a breaking fashion. Please update your imports from v0alpha1 to v0alpha2.
- The SMTPS scheme used in courier config URL with cleartext/StartTLS/TLS SMTP connection types is now only supporting implicit TLS. For StartTLS and cleartext SMTP, please use the SMTP scheme instead.
- for more details, see [Release Notes](https://github.com/ory/kratos/releases/tag/v0.8.0-alpha.1).
## New Services {#sec-release-21.11-new-services} ## New Services {#sec-release-21.11-new-services}
- [btrbk](https://digint.ch/btrbk/index.html), a backup tool for btrfs subvolumes, taking advantage of btrfs specific capabilities to create atomic snapshots and transfer them incrementally to your backup locations. Available as [services.btrbk](options.html#opt-services.brtbk.instances). - [btrbk](https://digint.ch/btrbk/index.html), a backup tool for btrfs subvolumes, taking advantage of btrfs specific capabilities to create atomic snapshots and transfer them incrementally to your backup locations. Available as [services.btrbk](options.html#opt-services.brtbk.instances).

View file

@ -2,16 +2,16 @@
buildGoModule rec { buildGoModule rec {
pname = "kratos"; pname = "kratos";
version = "0.7.6-alpha.1"; version = "0.8.0-alpha.3";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "ory"; owner = "ory";
repo = "kratos"; repo = "kratos";
rev = "v${version}"; rev = "v${version}";
sha256 = "1412jckfsm0d5gn7fhjpj212xbsf43sfpd8hgcz3pxc0q37dzfgh"; sha256 = "0ihq2kxjackicxg0hrpmx6bsgz056xbaq3j8py37z2w6mwszarcg";
}; };
vendorSha256 = "1gcdahs8x26kpwlng3wijqi12yjwj19v413wyyviim4vn1r4c0m7"; vendorSha256 = "175pckj30cm5xkbvsdvwzarvwapsylyjgj4ss8v5r1sa0fjpj008";
subPackages = [ "." ]; subPackages = [ "." ];

View file

@ -0,0 +1,52 @@
{ lib, stdenv, graalvmCEPackages, glibcLocales }:
{ name ? "${args.pname}-${args.version}"
# Final executable name
, executable ? args.pname
# JAR used as input for GraalVM derivation, defaults to src
, jar ? args.src
, dontUnpack ? (jar == args.src)
# Default native-image arguments. You probably don't want to set this,
# except in special cases. In most cases, use extraNativeBuildArgs instead
, nativeImageBuildArgs ? [
"-jar" jar
"-H:CLibraryPath=${lib.getLib graalvm}/lib"
(lib.optionalString stdenv.isDarwin "-H:-CheckToolchain")
"-H:Name=${executable}"
"--verbose"
]
# Extra arguments to be passed to the native-image
, extraNativeImageBuildArgs ? [ ]
# XMX size of GraalVM during build
, graalvmXmx ? "-J-Xmx6g"
# The GraalVM to use
, graalvm ? graalvmCEPackages.graalvm11-ce
, ...
} @ args:
stdenv.mkDerivation (args // {
inherit dontUnpack;
nativeBuildInputs = (args.nativeBuildInputs or [ ]) ++ [ graalvm glibcLocales ];
nativeImageBuildArgs = nativeImageBuildArgs ++ extraNativeImageBuildArgs ++ [ graalvmXmx ];
buildPhase = args.buildPhase or ''
runHook preBuild
native-image ''${nativeImageBuildArgs[@]}
runHook postBuild
'';
installPhase = args.installPhase or ''
runHook preInstall
install -Dm755 ${executable} -t $out/bin
runHook postInstall
'';
meta.platforms = lib.attrByPath [ "meta" "platforms" ] graalvm.meta.platforms args;
meta.mainProgram = lib.attrByPath [ "meta" "mainProgram" ] executable args;
})

View file

@ -30,7 +30,7 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "elementary-code"; pname = "elementary-code";
version = "6.0.1"; version = "6.1.0";
repoName = "code"; repoName = "code";
@ -38,7 +38,7 @@ stdenv.mkDerivation rec {
owner = "elementary"; owner = "elementary";
repo = repoName; repo = repoName;
rev = version; rev = version;
sha256 = "120328pprzqj4587yj54yya9v2mv1rfwylpmxyr5l2qf80cjxi9d"; sha256 = "sha256-AXmMcPj2hf33G5v3TUg+eZwaKOdVlRvoVXglMJFHRjw=";
}; };
passthru = { passthru = {

View file

@ -16,14 +16,11 @@
, granite , granite
, libgee , libgee
, bamf , bamf
, libcanberra
, libcanberra-gtk3 , libcanberra-gtk3
, gnome-desktop , gnome-desktop
, mutter , mutter
, clutter , clutter
, elementary-dock
, elementary-icon-theme , elementary-icon-theme
, elementary-settings-daemon
, gnome-settings-daemon , gnome-settings-daemon
, wrapGAppsHook , wrapGAppsHook
, gexiv2 , gexiv2
@ -31,23 +28,22 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "gala"; pname = "gala";
version = "6.2.1"; version = "6.3.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "elementary"; owner = "elementary";
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "1phnhj731kvk8ykmm33ypcxk8fkfny9k6kdapl582qh4d47wcy6f"; sha256 = "sha256-f/WDm9/+lXgplg9tGpct4f+1cOhKgdypwiDRBhewRGw=";
}; };
patches = [ patches = [
./plugins-dir.patch ./plugins-dir.patch
# Multitasking view: Don't use smooth scroll events to handle mouse wheel # Session crashes when switching windows with Alt+Tab
# Avoid breaking the multitasking view scroll once xf86-input-libinput 1.2.0 lands # https://github.com/elementary/gala/issues/1312
# https://github.com/elementary/gala/pull/1266
(fetchpatch { (fetchpatch {
url = "https://github.com/elementary/gala/commit/d2dcfdefdf97c1b49654179a7acd01ebfe017308.patch"; url = "https://github.com/elementary/gala/commit/cc83db8fe398feae9f3e4caa8352b65f0c8c96d4.patch";
sha256 = "sha256-2lKrCz3fSjrfKfysuUHzeUjhmMm84K47n882CLpfAyg="; sha256 = "sha256-CPO3EHIzqHAV6ZLHngivCdsD8je8CK/NHznfxSEkhzc=";
}) })
]; ];
@ -66,20 +62,23 @@ stdenv.mkDerivation rec {
buildInputs = [ buildInputs = [
bamf bamf
clutter clutter
elementary-dock
elementary-icon-theme elementary-icon-theme
elementary-settings-daemon
gnome-settings-daemon gnome-settings-daemon
gexiv2 gexiv2
gnome-desktop gnome-desktop
granite granite
gtk3 gtk3
libcanberra
libcanberra-gtk3 libcanberra-gtk3
libgee libgee
mutter mutter
]; ];
mesonFlags = [
# TODO: enable this and remove --builtin flag from session-settings
# https://github.com/NixOS/nixpkgs/pull/140429
"-Dsystemd=false"
];
postPatch = '' postPatch = ''
chmod +x build-aux/meson/post_install.py chmod +x build-aux/meson/post_install.py
patchShebangs build-aux/meson/post_install.py patchShebangs build-aux/meson/post_install.py
@ -91,7 +90,7 @@ stdenv.mkDerivation rec {
}; };
}; };
meta = with lib; { meta = with lib; {
description = "A window & compositing manager based on mutter and designed by elementary for use with Pantheon"; description = "A window & compositing manager based on mutter and designed by elementary for use with Pantheon";
homepage = "https://github.com/elementary/gala"; homepage = "https://github.com/elementary/gala";
license = licenses.gpl3Plus; license = licenses.gpl3Plus;

View file

@ -26,7 +26,7 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "wingpanel-applications-menu"; pname = "wingpanel-applications-menu";
version = "2.9.1"; version = "2.10.1";
repoName = "applications-menu"; repoName = "applications-menu";
@ -34,7 +34,7 @@ stdenv.mkDerivation rec {
owner = "elementary"; owner = "elementary";
repo = repoName; repo = repoName;
rev = version; rev = version;
sha256 = "sha256-Q0ee8S8wWhK0Y16SWfE79Us6QD/oRE5Pxm3o//eb/po="; sha256 = "sha256-e9InWx5b2DAFK7m7z/oCW7Mw/ymBNz1Sc7vT65kkZ9o=";
}; };
patches = [ patches = [

View file

@ -1,6 +1,7 @@
{ lib { lib
, stdenv , stdenv
, fetchFromGitHub , fetchFromGitHub
, fetchpatch
, nix-update-script , nix-update-script
, substituteAll , substituteAll
, pantheon , pantheon
@ -40,7 +41,10 @@ stdenv.mkDerivation rec {
}) })
# Fix incorrect month shown on re-opening indicator if previously changed month # Fix incorrect month shown on re-opening indicator if previously changed month
# https://github.com/elementary/wingpanel-indicator-datetime/pull/284 # https://github.com/elementary/wingpanel-indicator-datetime/pull/284
./fix-incorrect-month.patch (fetchpatch {
url = "https://github.com/elementary/wingpanel-indicator-datetime/commit/9b0bed98e09dfdad62f43a95d956d2f53d824e65.patch";
sha256 = "sha256-MQfz4Uzo59SmmfQNi58OA7CIHHkm2TODQz2fmmIall4=";
})
]; ];
nativeBuildInputs = [ nativeBuildInputs = [

View file

@ -1,26 +0,0 @@
From 401cb05d7181e69ae8edd347644f2518904e9acb Mon Sep 17 00:00:00 2001
From: Jeremy Paul Wootten <jeremywootten@gmail.com>
Date: Sat, 30 Oct 2021 17:44:12 +0100
Subject: [PATCH] Reset position and relative position after rebuilding
carousel
---
src/Widgets/calendar/CalendarView.vala | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/Widgets/calendar/CalendarView.vala b/src/Widgets/calendar/CalendarView.vala
index a41b37a4..f946b91c 100644
--- a/src/Widgets/calendar/CalendarView.vala
+++ b/src/Widgets/calendar/CalendarView.vala
@@ -216,7 +216,11 @@ public class DateTime.Widgets.CalendarView : Gtk.Grid {
carousel.add (right_grid);
carousel.scroll_to (start_month_grid);
label.label = calmodel.month_start.format (_("%OB, %Y"));
+
+ position = 1;
+ rel_postion = 0;
}
+
carousel.no_show_all = false;
}

View file

@ -0,0 +1,16 @@
{ lib, mkCoqDerivation, coq, version ? null , paco, coq-ext-lib }:
with lib; mkCoqDerivation rec {
pname = "coq-record-update";
owner = "tchajed";
inherit version;
defaultVersion = with versions; switch coq.coq-version [
{ case = range "8.10" "8.14"; out = "0.3.0"; }
] null;
release."0.3.0".sha256 = "1ffr21dd6hy19gxnvcd4if2450iksvglvkd6q5713fajd72hmc0z";
releaseRev = v: "v${v}";
meta = {
description = "Library to create Coq record update functions";
maintainers = with maintainers; [ ineol ];
};
}

View file

@ -1,6 +1,6 @@
{ lib, stdenv, fetchurl, graalvm11-ce, glibcLocales, writeScript }: { lib, buildGraalvmNativeImage, fetchurl, writeScript }:
stdenv.mkDerivation rec { buildGraalvmNativeImage rec {
pname = "babashka"; pname = "babashka";
version = "0.6.5"; version = "0.6.5";
@ -9,48 +9,13 @@ stdenv.mkDerivation rec {
sha256 = "sha256-72D/HzDIxkGD4zTPE9gHf/uFtboLbNnT7CTslSlAqjc="; sha256 = "sha256-72D/HzDIxkGD4zTPE9gHf/uFtboLbNnT7CTslSlAqjc=";
}; };
dontUnpack = true; executable = "bb";
nativeBuildInputs = [ graalvm11-ce glibcLocales ]; extraNativeImageBuildArgs = [
"-H:+ReportExceptionStackTraces"
LC_ALL = "en_US.UTF-8"; "--no-fallback"
BABASHKA_JAR = src; "--native-image-info"
BABASHKA_BINARY = "bb"; ];
BABASHKA_XMX = "-J-Xmx4500m";
buildPhase = ''
runHook preBuild
# https://github.com/babashka/babashka/blob/v0.6.2/script/compile#L41-L52
args=("-jar" "$BABASHKA_JAR"
"-H:CLibraryPath=${graalvm11-ce.lib}/lib"
# Required to build babashka on darwin. Do not remove.
"${lib.optionalString stdenv.isDarwin "-H:-CheckToolchain"}"
"-H:Name=$BABASHKA_BINARY"
"-H:+ReportExceptionStackTraces"
# "-H:+PrintAnalysisCallTree"
# "-H:+DashboardAll"
# "-H:DashboardDump=reports/dump"
# "-H:+DashboardPretty"
# "-H:+DashboardJson"
"--verbose"
"--no-fallback"
"--native-image-info"
"$BABASHKA_XMX")
native-image ''${args[@]}
runHook postBuild
'';
installPhase = ''
runHook preInstall
mkdir -p $out/bin
cp bb $out/bin/bb
runHook postInstall
'';
installCheckPhase = '' installCheckPhase = ''
$out/bin/bb --version | grep '${version}' $out/bin/bb --version | grep '${version}'
@ -102,7 +67,6 @@ stdenv.mkDerivation rec {
homepage = "https://github.com/babashka/babashka"; homepage = "https://github.com/babashka/babashka";
changelog = "https://github.com/babashka/babashka/blob/v${version}/CHANGELOG.md"; changelog = "https://github.com/babashka/babashka/blob/v${version}/CHANGELOG.md";
license = licenses.epl10; license = licenses.epl10;
platforms = graalvm11-ce.meta.platforms;
maintainers = with maintainers; [ maintainers = with maintainers; [
bandresen bandresen
bhougland bhougland

View file

@ -0,0 +1,42 @@
{ lib
, buildPythonPackage
, cython
, fetchFromGitHub
, poetry-core
, pythonOlder
}:
buildPythonPackage rec {
pname = "asyncmy";
version = "0.2.3";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "long2ice";
repo = pname;
rev = "v${version}";
sha256 = "ys9RYaosc4noJsWYsVo9+6W7JaG4r6lsz6UH4o08q4A=";
};
nativeBuildInputs = [
cython
poetry-core
];
# Not running tests as aiomysql is missing support for
# pymysql>=0.9.3
doCheck = false;
pythonImportsCheck = [
"asyncmy"
];
meta = with lib; {
description = "Python module to interact with MySQL/mariaDB";
homepage = "https://github.com/long2ice/asyncmy";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}

View file

@ -1,6 +1,7 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, fetchpatch
, async-timeout , async-timeout
, docopt , docopt
, pyserial , pyserial
@ -12,6 +13,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "rflink"; pname = "rflink";
version = "0.0.58"; version = "0.0.58";
format = "setuptools";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "aequitas"; owner = "aequitas";
@ -20,11 +22,6 @@ buildPythonPackage rec {
sha256 = "1zab55lsw419gg0jfrl69ap6128vbi3wdmg5z7qin65ijpjdhasc"; sha256 = "1zab55lsw419gg0jfrl69ap6128vbi3wdmg5z7qin65ijpjdhasc";
}; };
postPatch = ''
substituteInPlace setup.py \
--replace "version=version_from_git()" "version='${version}'"
'';
propagatedBuildInputs = [ propagatedBuildInputs = [
async-timeout async-timeout
docopt docopt
@ -37,7 +34,23 @@ buildPythonPackage rec {
pytestCheckHook pytestCheckHook
]; ];
pythonImportsCheck = [ "rflink.protocol" ]; patches = [
# Remove loop, https://github.com/aequitas/python-rflink/pull/61
(fetchpatch {
name = "remove-loop.patch";
url = "https://github.com/aequitas/python-rflink/commit/777e19b5bde3398df5b8f142896c34a01ae18d52.patch";
sha256 = "sJmihxY3fNSfZVFhkvQ/+9gysQup/1jklKDMyDDLOs8=";
})
];
postPatch = ''
substituteInPlace setup.py \
--replace "version=version_from_git()" "version='${version}'"
'';
pythonImportsCheck = [
"rflink.protocol"
];
meta = with lib; { meta = with lib; {
description = "Library and CLI tools for interacting with RFlink 433MHz transceiver"; description = "Library and CLI tools for interacting with RFlink 433MHz transceiver";

View file

@ -1,12 +1,13 @@
{ lib { lib
, aiohttp
, aresponses
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, aiohttp
, xmltodict
, yarl
, aresponses
, pytest-asyncio , pytest-asyncio
, pytestCheckHook , pytestCheckHook
, pythonOlder
, xmltodict
, yarl
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -14,6 +15,8 @@ buildPythonPackage rec {
version = "0.8.4"; version = "0.8.4";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "ctalkington"; owner = "ctalkington";
repo = "python-rokuecp"; repo = "python-rokuecp";
@ -33,6 +36,11 @@ buildPythonPackage rec {
pytest-asyncio pytest-asyncio
]; ];
disabledTests = [
# https://github.com/ctalkington/python-rokuecp/issues/249
"test_resolve_hostname"
];
pythonImportsCheck = [ pythonImportsCheck = [
"rokuecp" "rokuecp"
]; ];
@ -41,6 +49,6 @@ buildPythonPackage rec {
description = "Asynchronous Python client for Roku (ECP)"; description = "Asynchronous Python client for Roku (ECP)";
homepage = "https://github.com/ctalkington/python-rokuecp"; homepage = "https://github.com/ctalkington/python-rokuecp";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ ]; maintainers = with maintainers; [ fab ];
}; };
} }

View file

@ -20,6 +20,7 @@ buildPythonPackage rec {
pname = "surepy"; pname = "surepy";
version = "0.7.2"; version = "0.7.2";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.8"; disabled = pythonOlder "3.8";
src = fetchFromGitHub { src = fetchFromGitHub {
@ -31,8 +32,8 @@ buildPythonPackage rec {
postPatch = '' postPatch = ''
substituteInPlace pyproject.toml \ substituteInPlace pyproject.toml \
--replace 'click = "^7.1.2"' 'click = "*"' \ --replace 'aiohttp = {extras = ["speedups"], version = "^3.7.4"}' 'aiohttp = {extras = ["speedups"], version = ">=3.7.4"}' \
--replace 'attrs = "^20.3.0"' 'attrs = "*"' --replace 'async-timeout = "^3.0.1"' 'async-timeout = ">=3.0.1"'
''; '';
nativeBuildInputs = [ nativeBuildInputs = [
@ -56,7 +57,9 @@ buildPythonPackage rec {
# Project has no tests # Project has no tests
doCheck = false; doCheck = false;
pythonImportsCheck = [ "surepy" ]; pythonImportsCheck = [
"surepy"
];
meta = with lib; { meta = with lib; {
description = "Python library to interact with the Sure Petcare API"; description = "Python library to interact with the Sure Petcare API";

View file

@ -1,6 +1,6 @@
{ stdenv, lib, graalvm11-ce, fetchurl }: { lib, buildGraalvmNativeImage, fetchurl }:
stdenv.mkDerivation rec { buildGraalvmNativeImage rec {
pname = "clj-kondo"; pname = "clj-kondo";
version = "2021.10.19"; version = "2021.10.19";
@ -9,38 +9,15 @@ stdenv.mkDerivation rec {
sha256 = "sha256-i0OeQPZfQPUeXC/Bs84I91IahBKK6W1mFix97s8/lVA="; sha256 = "sha256-i0OeQPZfQPUeXC/Bs84I91IahBKK6W1mFix97s8/lVA=";
}; };
dontUnpack = true; extraNativeImageBuildArgs = [
"-H:+ReportExceptionStackTraces"
buildInputs = [ graalvm11-ce ]; "--no-fallback"
];
buildPhase = ''
runHook preBuild
# https://github.com/clj-kondo/clj-kondo/blob/v2021.10.19/script/compile#L17-L21
args=("-jar" "$src"
"-H:CLibraryPath=${graalvm11-ce.lib}/lib"
# Required to build babashka on darwin. Do not remove.
"${lib.optionalString stdenv.isDarwin "-H:-CheckToolchain"}"
"-H:+ReportExceptionStackTraces"
"--verbose"
"--no-fallback"
"-J-Xmx3g")
native-image ''${args[@]}
runHook postBuild
'';
installPhase = ''
mkdir -p $out/bin
cp clj-kondo $out/bin/clj-kondo
'';
meta = with lib; { meta = with lib; {
description = "A linter for Clojure code that sparks joy"; description = "A linter for Clojure code that sparks joy";
homepage = "https://github.com/clj-kondo/clj-kondo"; homepage = "https://github.com/clj-kondo/clj-kondo";
license = licenses.epl10; license = licenses.epl10;
platforms = graalvm11-ce.meta.platforms;
maintainers = with maintainers; [ jlesquembre bandresen thiagokokada ]; maintainers = with maintainers; [ jlesquembre bandresen thiagokokada ];
}; };
} }

View file

@ -1,6 +1,6 @@
{ stdenv, lib, graalvm11-ce, fetchurl }: { lib, buildGraalvmNativeImage, fetchurl }:
stdenv.mkDerivation rec { buildGraalvmNativeImage rec {
pname = "jet"; pname = "jet";
version = "0.1.0"; version = "0.1.0";
@ -14,46 +14,22 @@ stdenv.mkDerivation rec {
sha256 = "sha256-mOUiKEM5tYhtpBpm7KtslyPYFsJ+Wr+4ul6Zi4aS09Q="; sha256 = "sha256-mOUiKEM5tYhtpBpm7KtslyPYFsJ+Wr+4ul6Zi4aS09Q=";
}; };
dontUnpack = true; extraNativeImageBuildArgs = [
"-H:+ReportExceptionStackTraces"
buildInputs = [ graalvm11-ce ]; "-J-Dclojure.spec.skip-macros=true"
"-J-Dclojure.compiler.direct-linking=true"
buildPhase = '' "-H:IncludeResources=JET_VERSION"
runHook preBuild "-H:ReflectionConfigurationFiles=${reflectionJson}"
"--initialize-at-build-time"
# https://github.com/borkdude/jet/blob/v0.1.0/script/compile#L16-L29 "-H:Log=registerResource:"
args=("-jar" "$src" "--no-fallback"
"-H:CLibraryPath=${graalvm11-ce.lib}/lib" "--no-server"
# Required to build jet on darwin. Do not remove. ];
"${lib.optionalString stdenv.isDarwin "-H:-CheckToolchain"}"
"-H:Name=jet"
"-H:+ReportExceptionStackTraces"
"-J-Dclojure.spec.skip-macros=true"
"-J-Dclojure.compiler.direct-linking=true"
"-H:IncludeResources=JET_VERSION"
"-H:ReflectionConfigurationFiles=${reflectionJson}"
"--initialize-at-build-time"
"-H:Log=registerResource:"
"--verbose"
"--no-fallback"
"--no-server"
"-J-Xmx3g")
native-image ''${args[@]}
runHook postBuild
'';
installPhase = ''
mkdir -p $out/bin
cp jet $out/bin/jet
'';
meta = with lib; { meta = with lib; {
description = "CLI to transform between JSON, EDN and Transit, powered with a minimal query language"; description = "CLI to transform between JSON, EDN and Transit, powered with a minimal query language";
homepage = "https://github.com/borkdude/jet"; homepage = "https://github.com/borkdude/jet";
license = licenses.epl10; license = licenses.epl10;
platforms = graalvm11-ce.meta.platforms;
maintainers = with maintainers; [ ericdallo ]; maintainers = with maintainers; [ ericdallo ];
}; };
} }

View file

@ -1,6 +1,6 @@
{ lib, stdenv, graalvm11-ce, babashka, fetchurl, fetchFromGitHub, clojure, writeScript }: { lib, stdenv, buildGraalvmNativeImage, babashka, fetchurl, fetchFromGitHub, clojure, writeScript }:
stdenv.mkDerivation rec { buildGraalvmNativeImage rec {
pname = "clojure-lsp"; pname = "clojure-lsp";
version = "2021.11.02-15.24.47"; version = "2021.11.02-15.24.47";
@ -16,48 +16,22 @@ stdenv.mkDerivation rec {
sha256 = "sha256-k0mzibcLAspklCPE6f2qsUm9bwSvcJRgWecMBq7mpF0="; sha256 = "sha256-k0mzibcLAspklCPE6f2qsUm9bwSvcJRgWecMBq7mpF0=";
}; };
GRAALVM_HOME = graalvm11-ce; # https://github.com/clojure-lsp/clojure-lsp/blob/2021.11.02-15.24.47/graalvm/native-unix-compile.sh#L18-L27
CLOJURE_LSP_JAR = jar; DTLV_LIB_EXTRACT_DIR = "/tmp";
CLOJURE_LSP_XMX = "-J-Xmx6g";
buildInputs = [ graalvm11-ce clojure ]; extraNativeImageBuildArgs = [
"-H:CLibraryPath=${DTLV_LIB_EXTRACT_DIR}"
buildPhase = with lib; '' "--no-fallback"
runHook preBuild "--native-image-info"
];
# https://github.com/clojure-lsp/clojure-lsp/blob/2021.11.02-15.24.47/graalvm/native-unix-compile.sh#L18-L27
DTLV_LIB_EXTRACT_DIR=$(mktemp -d)
export DTLV_LIB_EXTRACT_DIR=$DTLV_LIB_EXTRACT_DIR
args=("-jar" "$CLOJURE_LSP_JAR"
"-H:+ReportExceptionStackTraces"
"-H:CLibraryPath=${graalvm11-ce.lib}/lib"
"-H:CLibraryPath=$DTLV_LIB_EXTRACT_DIR"
"--verbose"
"--no-fallback"
"--native-image-info"
"$CLOJURE_LSP_XMX")
native-image ''${args[@]}
runHook postBuild
'';
installPhase = ''
runHook preInstall
install -Dm755 ./clojure-lsp $out/bin/clojure-lsp
runHook postInstall
'';
doCheck = true; doCheck = true;
checkPhase = '' checkPhase = ''
runHook preCheck runHook preCheck
export HOME="$(mktemp -d)" export HOME="$(mktemp -d)"
./clojure-lsp --version | fgrep -q '${version}' ./${pname} --version | fgrep -q '${version}'
${babashka}/bin/bb integration-test ./clojure-lsp ${babashka}/bin/bb integration-test ./${pname}
runHook postCheck runHook postCheck
''; '';
@ -88,7 +62,6 @@ stdenv.mkDerivation rec {
homepage = "https://github.com/clojure-lsp/clojure-lsp"; homepage = "https://github.com/clojure-lsp/clojure-lsp";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ ericdallo babariviere ]; maintainers = with maintainers; [ ericdallo babariviere ];
platforms = graalvm11-ce.meta.platforms;
# Depends on datalevin that is x86_64 only # Depends on datalevin that is x86_64 only
# https://github.com/juji-io/datalevin/blob/bb7d9328f4739cddea5d272b5cd6d6dcb5345da6/native/src/java/datalevin/ni/Lib.java#L86-L102 # https://github.com/juji-io/datalevin/blob/bb7d9328f4739cddea5d272b5cd6d6dcb5345da6/native/src/java/datalevin/ni/Lib.java#L86-L102
broken = !stdenv.isx86_64; broken = !stdenv.isx86_64;

View file

@ -0,0 +1,26 @@
{ buildGoModule
, fetchFromGitHub
, lib
}:
buildGoModule rec {
pname = "protoc-gen-go-vtproto";
version = "0.2.0";
src = fetchFromGitHub {
owner = "planetscale";
repo = "vtprotobuf";
rev = "v${version}";
sha256 = "0kjjpfsiws4vi36ha1gajb97rwcggqw753mv2jqf09kdfszz9p63";
};
vendorSha256 = "01lxwlgh3y3gp22gk5qx7r60c1j63pnpi6jnri8gf2lmiiib8fdc";
excludedPackages = [ "conformance" ];
meta = with lib; {
description = "A Protocol Buffers compiler that generates optimized marshaling & unmarshaling Go code for ProtoBuf APIv2";
homepage = "https://github.com/planetscale/vtprotobuf";
license = licenses.bsd3;
maintainers = [ maintainers.zane ];
};
}

View file

@ -10,16 +10,16 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "cargo-flash"; pname = "cargo-flash";
version = "0.11.0"; version = "0.12.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "probe-rs"; owner = "probe-rs";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-yTtnRdDy3wGBe0SlO0165uooWu6ZMhUQw3hdDUK1e8A="; sha256 = "0s49q8x0iscy9rgn9zgymyg39cqm251a99m341znjn55lap3pdl8";
}; };
cargoSha256 = "sha256-f5vUMdyz3vDh2yE0pMKZiknsqTAKkuvTCtlgb6/gaLc="; cargoSha256 = "0rb4s5bwjs7hri636r2viva96a6z9qjv9if6i220j9yglrvi7c8i";
nativeBuildInputs = [ pkg-config rustfmt ]; nativeBuildInputs = [ pkg-config rustfmt ];
buildInputs = [ libusb1 ] ++ lib.optionals stdenv.isDarwin [ AppKit ]; buildInputs = [ libusb1 ] ++ lib.optionals stdenv.isDarwin [ AppKit ];
@ -27,6 +27,7 @@ rustPlatform.buildRustPackage rec {
meta = with lib; { meta = with lib; {
description = "A cargo extension for working with microcontrollers"; description = "A cargo extension for working with microcontrollers";
homepage = "https://probe.rs/"; homepage = "https://probe.rs/";
changelog = "https://github.com/probe-rs/cargo-flash/blob/v${version}/CHANGELOG.md";
license = with licenses; [ asl20 /* or */ mit ]; license = with licenses; [ asl20 /* or */ mit ];
maintainers = with maintainers; [ fooker ]; maintainers = with maintainers; [ fooker ];
}; };

View file

@ -1,40 +1,22 @@
{ stdenv, lib, fetchurl, graalvm11-ce, glibcLocales }: { lib, buildGraalvmNativeImage, fetchurl }:
stdenv.mkDerivation rec { buildGraalvmNativeImage rec {
pname = "zprint"; pname = "zprint";
version = "1.1.2"; version = "1.1.2";
src = fetchurl { src = fetchurl {
url = url = "https://github.com/kkinnear/${pname}/releases/download/${version}/${pname}-filter-${version}";
"https://github.com/kkinnear/${pname}/releases/download/${version}/${pname}-filter-${version}";
sha256 = "1wh8jyj7alfa6h0cycfwffki83wqb5d5x0p7kvgdkhl7jx7isrwj"; sha256 = "1wh8jyj7alfa6h0cycfwffki83wqb5d5x0p7kvgdkhl7jx7isrwj";
}; };
dontUnpack = true; extraNativeImageBuildArgs = [
"--no-server"
LC_ALL = "en_US.UTF-8"; "-H:EnableURLProtocols=https,http"
nativeBuildInputs = [ graalvm11-ce glibcLocales ]; "-H:+ReportExceptionStackTraces"
"--report-unsupported-elements-at-runtime"
buildPhase = '' "--initialize-at-build-time"
native-image \ "--no-fallback"
--no-server \ ];
-J-Xmx7G \
-J-Xms4G \
-jar ${src} \
-H:Name=${pname} \
-H:EnableURLProtocols=https,http \
-H:+ReportExceptionStackTraces \
-H:CLibraryPath=${graalvm11-ce.lib}/lib \
${lib.optionalString stdenv.isDarwin ''-H:-CheckToolchain''} \
--report-unsupported-elements-at-runtime \
--initialize-at-build-time \
--no-fallback
'';
installPhase = ''
mkdir -p $out/bin
install ${pname} $out/bin
'';
meta = with lib; { meta = with lib; {
description = "Clojure/EDN source code formatter and pretty printer"; description = "Clojure/EDN source code formatter and pretty printer";
@ -45,7 +27,6 @@ stdenv.mkDerivation rec {
''; '';
homepage = "https://github.com/kkinnear/zprint"; homepage = "https://github.com/kkinnear/zprint";
license = licenses.mit; license = licenses.mit;
platforms = graalvm11-ce.meta.platforms;
maintainers = with maintainers; [ stelcodes ]; maintainers = with maintainers; [ stelcodes ];
}; };
} }

View file

@ -2,16 +2,16 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "swayr"; pname = "swayr";
version = "0.7.0"; version = "0.10.0";
src = fetchFromSourcehut { src = fetchFromSourcehut {
owner = "~tsdh"; owner = "~tsdh";
repo = "swayr"; repo = "swayr";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-B19cHdoiCbxhvRGi3NzKPKneKgOI4+l8+Qg9/YVgUV8="; sha256 = "sha256-nXJIgzm92OSSGHpN2+09Y8ILpU8Mf51vcVB0kMXBPZc=";
}; };
cargoSha256 = "sha256-iO64K+d/wEyY/tVztIG8zYSha5X0iTHV7IDVthMJQGA="; cargoSha256 = "sha256-vExZzJ3Rw+MiU4ikEqzIo51qZW0sxwE/zoVEdUKLXwY=";
patches = [ patches = [
./icon-paths.patch ./icon-paths.patch

View file

@ -337,6 +337,8 @@ with pkgs;
protoc-gen-go-grpc = callPackage ../development/tools/protoc-gen-go-grpc { }; protoc-gen-go-grpc = callPackage ../development/tools/protoc-gen-go-grpc { };
protoc-gen-go-vtproto = callPackage ../development/tools/protoc-gen-go-vtproto { };
protoc-gen-grpc-web = callPackage ../development/tools/protoc-gen-grpc-web { }; protoc-gen-grpc-web = callPackage ../development/tools/protoc-gen-grpc-web { };
protoc-gen-twirp = callPackage ../development/tools/protoc-gen-twirp { }; protoc-gen-twirp = callPackage ../development/tools/protoc-gen-twirp { };
@ -12350,6 +12352,7 @@ with pkgs;
}); });
graalvm11-ce = graalvmCEPackages.graalvm11-ce; graalvm11-ce = graalvmCEPackages.graalvm11-ce;
graalvm17-ce = graalvmCEPackages.graalvm17-ce; graalvm17-ce = graalvmCEPackages.graalvm17-ce;
buildGraalvmNativeImage = callPackage ../build-support/build-graalvm-native-image { };
inherit (callPackages ../development/compilers/graalvm/enterprise-edition.nix { }) inherit (callPackages ../development/compilers/graalvm/enterprise-edition.nix { })
graalvm8-ee graalvm8-ee

View file

@ -31,6 +31,7 @@ let
coq-elpi = callPackage ../development/coq-modules/coq-elpi {}; coq-elpi = callPackage ../development/coq-modules/coq-elpi {};
coq-ext-lib = callPackage ../development/coq-modules/coq-ext-lib {}; coq-ext-lib = callPackage ../development/coq-modules/coq-ext-lib {};
coq-haskell = callPackage ../development/coq-modules/coq-haskell { }; coq-haskell = callPackage ../development/coq-modules/coq-haskell { };
coq-record-update = callPackage ../development/coq-modules/coq-record-update { };
coqeal = callPackage ../development/coq-modules/coqeal {}; coqeal = callPackage ../development/coq-modules/coqeal {};
coqhammer = callPackage ../development/coq-modules/coqhammer {}; coqhammer = callPackage ../development/coq-modules/coqhammer {};
coqprime = callPackage ../development/coq-modules/coqprime {}; coqprime = callPackage ../development/coq-modules/coqprime {};

View file

@ -659,6 +659,8 @@ in {
asyncio-nats-client = callPackage ../development/python-modules/asyncio-nats-client { }; asyncio-nats-client = callPackage ../development/python-modules/asyncio-nats-client { };
asyncmy = callPackage ../development/python-modules/asyncmy { };
asyncio-throttle = callPackage ../development/python-modules/asyncio-throttle { }; asyncio-throttle = callPackage ../development/python-modules/asyncio-throttle { };
asyncpg = callPackage ../development/python-modules/asyncpg { }; asyncpg = callPackage ../development/python-modules/asyncpg { };