mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 00:33:10 +00:00
Merge master into staging-next
This commit is contained in:
commit
298cef5fc3
@ -10006,6 +10006,12 @@
|
|||||||
fingerprint = "6F8A 18AE 4101 103F 3C54 24B9 6AA2 3A11 93B7 064B";
|
fingerprint = "6F8A 18AE 4101 103F 3C54 24B9 6AA2 3A11 93B7 064B";
|
||||||
}];
|
}];
|
||||||
};
|
};
|
||||||
|
smancill = {
|
||||||
|
email = "smancill@smancill.dev";
|
||||||
|
github = "smancill";
|
||||||
|
githubId = 238528;
|
||||||
|
name = "Sebastián Mancilla";
|
||||||
|
};
|
||||||
smaret = {
|
smaret = {
|
||||||
email = "sebastien.maret@icloud.com";
|
email = "sebastien.maret@icloud.com";
|
||||||
github = "smaret";
|
github = "smaret";
|
||||||
@ -11277,7 +11283,7 @@
|
|||||||
};
|
};
|
||||||
vel = {
|
vel = {
|
||||||
email = "llathasa@outlook.com";
|
email = "llathasa@outlook.com";
|
||||||
github = "llathasa-veleth";
|
github = "q60";
|
||||||
githubId = 61933599;
|
githubId = 61933599;
|
||||||
name = "vel";
|
name = "vel";
|
||||||
};
|
};
|
||||||
|
@ -8,10 +8,10 @@ let
|
|||||||
|
|
||||||
tlsConfig = {
|
tlsConfig = {
|
||||||
apps.tls.automation.policies = [{
|
apps.tls.automation.policies = [{
|
||||||
issuer = {
|
issuers = [{
|
||||||
inherit (cfg) ca email;
|
inherit (cfg) ca email;
|
||||||
module = "acme";
|
module = "acme";
|
||||||
};
|
}];
|
||||||
}];
|
}];
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -23,6 +23,7 @@ let
|
|||||||
|
|
||||||
# merge the TLS config options we expose with the ones originating in the Caddyfile
|
# merge the TLS config options we expose with the ones originating in the Caddyfile
|
||||||
configJSON =
|
configJSON =
|
||||||
|
if cfg.ca != null then
|
||||||
let tlsConfigMerge = ''
|
let tlsConfigMerge = ''
|
||||||
{"apps":
|
{"apps":
|
||||||
{"tls":
|
{"tls":
|
||||||
@ -36,10 +37,14 @@ let
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}'';
|
}'';
|
||||||
in pkgs.runCommand "caddy-config.json" { } ''
|
in
|
||||||
|
pkgs.runCommand "caddy-config.json" { } ''
|
||||||
${pkgs.jq}/bin/jq -s '.[0] * ${tlsConfigMerge}' ${adaptedConfig} ${tlsJSON} > $out
|
${pkgs.jq}/bin/jq -s '.[0] * ${tlsConfigMerge}' ${adaptedConfig} ${tlsJSON} > $out
|
||||||
'';
|
''
|
||||||
in {
|
else
|
||||||
|
adaptedConfig;
|
||||||
|
in
|
||||||
|
{
|
||||||
imports = [
|
imports = [
|
||||||
(mkRemovedOptionModule [ "services" "caddy" "agree" ] "this option is no longer necessary for Caddy 2")
|
(mkRemovedOptionModule [ "services" "caddy" "agree" ] "this option is no longer necessary for Caddy 2")
|
||||||
];
|
];
|
||||||
@ -88,8 +93,13 @@ in {
|
|||||||
ca = mkOption {
|
ca = mkOption {
|
||||||
default = "https://acme-v02.api.letsencrypt.org/directory";
|
default = "https://acme-v02.api.letsencrypt.org/directory";
|
||||||
example = "https://acme-staging-v02.api.letsencrypt.org/directory";
|
example = "https://acme-staging-v02.api.letsencrypt.org/directory";
|
||||||
type = types.str;
|
type = types.nullOr types.str;
|
||||||
description = "Certificate authority ACME server. The default (Let's Encrypt production server) should be fine for most people.";
|
description = ''
|
||||||
|
Certificate authority ACME server. The default (Let's Encrypt
|
||||||
|
production server) should be fine for most people. Set it to null if
|
||||||
|
you don't want to include any authority (or if you want to write a more
|
||||||
|
fine-graned configuration manually)
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
email = mkOption {
|
email = mkOption {
|
||||||
|
@ -553,6 +553,8 @@ in
|
|||||||
apply = toString;
|
apply = toString;
|
||||||
description = ''
|
description = ''
|
||||||
Index of the default menu item to be booted.
|
Index of the default menu item to be booted.
|
||||||
|
Can also be set to "saved", which will make GRUB select
|
||||||
|
the menu item that was used at the last boot.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -85,6 +85,7 @@ my $bootloaderId = get("bootloaderId");
|
|||||||
my $forceInstall = get("forceInstall");
|
my $forceInstall = get("forceInstall");
|
||||||
my $font = get("font");
|
my $font = get("font");
|
||||||
my $theme = get("theme");
|
my $theme = get("theme");
|
||||||
|
my $saveDefault = $defaultEntry eq "saved";
|
||||||
$ENV{'PATH'} = get("path");
|
$ENV{'PATH'} = get("path");
|
||||||
|
|
||||||
die "unsupported GRUB version\n" if $grubVersion != 1 && $grubVersion != 2;
|
die "unsupported GRUB version\n" if $grubVersion != 1 && $grubVersion != 2;
|
||||||
@ -250,6 +251,8 @@ if ($copyKernels == 0) {
|
|||||||
my $conf .= "# Automatically generated. DO NOT EDIT THIS FILE!\n";
|
my $conf .= "# Automatically generated. DO NOT EDIT THIS FILE!\n";
|
||||||
|
|
||||||
if ($grubVersion == 1) {
|
if ($grubVersion == 1) {
|
||||||
|
# $defaultEntry might be "saved", indicating that we want to use the last selected configuration as default.
|
||||||
|
# Incidentally this is already the correct value for the grub 1 config to achieve this behaviour.
|
||||||
$conf .= "
|
$conf .= "
|
||||||
default $defaultEntry
|
default $defaultEntry
|
||||||
timeout $timeout
|
timeout $timeout
|
||||||
@ -305,6 +308,10 @@ else {
|
|||||||
" . $grubStore->search;
|
" . $grubStore->search;
|
||||||
}
|
}
|
||||||
# FIXME: should use grub-mkconfig.
|
# FIXME: should use grub-mkconfig.
|
||||||
|
my $defaultEntryText = $defaultEntry;
|
||||||
|
if ($saveDefault) {
|
||||||
|
$defaultEntryText = "\"\${saved_entry}\"";
|
||||||
|
}
|
||||||
$conf .= "
|
$conf .= "
|
||||||
" . $grubBoot->search . "
|
" . $grubBoot->search . "
|
||||||
if [ -s \$prefix/grubenv ]; then
|
if [ -s \$prefix/grubenv ]; then
|
||||||
@ -318,11 +325,19 @@ else {
|
|||||||
set next_entry=
|
set next_entry=
|
||||||
save_env next_entry
|
save_env next_entry
|
||||||
set timeout=1
|
set timeout=1
|
||||||
|
set boot_once=true
|
||||||
else
|
else
|
||||||
set default=$defaultEntry
|
set default=$defaultEntryText
|
||||||
set timeout=$timeout
|
set timeout=$timeout
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
function savedefault {
|
||||||
|
if [ -z \"\${boot_once}\"]; then
|
||||||
|
saved_entry=\"\${chosen}\"
|
||||||
|
save_env saved_entry
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
# Setup the graphics stack for bios and efi systems
|
# Setup the graphics stack for bios and efi systems
|
||||||
if [ \"\${grub_platform}\" = \"efi\" ]; then
|
if [ \"\${grub_platform}\" = \"efi\" ]; then
|
||||||
insmod efi_gop
|
insmod efi_gop
|
||||||
@ -468,9 +483,16 @@ sub addEntry {
|
|||||||
$conf .= " $extraPerEntryConfig\n" if $extraPerEntryConfig;
|
$conf .= " $extraPerEntryConfig\n" if $extraPerEntryConfig;
|
||||||
$conf .= " kernel $xen $xenParams\n" if $xen;
|
$conf .= " kernel $xen $xenParams\n" if $xen;
|
||||||
$conf .= " " . ($xen ? "module" : "kernel") . " $kernel $kernelParams\n";
|
$conf .= " " . ($xen ? "module" : "kernel") . " $kernel $kernelParams\n";
|
||||||
$conf .= " " . ($xen ? "module" : "initrd") . " $initrd\n\n";
|
$conf .= " " . ($xen ? "module" : "initrd") . " $initrd\n";
|
||||||
|
if ($saveDefault) {
|
||||||
|
$conf .= " savedefault\n";
|
||||||
|
}
|
||||||
|
$conf .= "\n";
|
||||||
} else {
|
} else {
|
||||||
$conf .= "menuentry \"$name\" " . ($options||"") . " {\n";
|
$conf .= "menuentry \"$name\" " . ($options||"") . " {\n";
|
||||||
|
if ($saveDefault) {
|
||||||
|
$conf .= " savedefault\n";
|
||||||
|
}
|
||||||
$conf .= $grubBoot->search . "\n";
|
$conf .= $grubBoot->search . "\n";
|
||||||
if ($copyKernels == 0) {
|
if ($copyKernels == 0) {
|
||||||
$conf .= $grubStore->search . "\n";
|
$conf .= $grubStore->search . "\n";
|
||||||
@ -605,6 +627,11 @@ my $efiTarget = getEfiTarget();
|
|||||||
|
|
||||||
# Append entries detected by os-prober
|
# Append entries detected by os-prober
|
||||||
if (get("useOSProber") eq "true") {
|
if (get("useOSProber") eq "true") {
|
||||||
|
if ($saveDefault) {
|
||||||
|
# os-prober will read this to determine if "savedefault" should be added to generated entries
|
||||||
|
$ENV{'GRUB_SAVEDEFAULT'} = "true";
|
||||||
|
}
|
||||||
|
|
||||||
my $targetpackage = ($efiTarget eq "no") ? $grub : $grubEfi;
|
my $targetpackage = ($efiTarget eq "no") ? $grub : $grubEfi;
|
||||||
system(get("shell"), "-c", "pkgdatadir=$targetpackage/share/grub $targetpackage/etc/grub.d/30_os-prober >> $tmpFile");
|
system(get("shell"), "-c", "pkgdatadir=$targetpackage/share/grub $targetpackage/etc/grub.d/30_os-prober >> $tmpFile");
|
||||||
}
|
}
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
|
|
||||||
buildPythonApplication rec {
|
buildPythonApplication rec {
|
||||||
pname = "gallery_dl";
|
pname = "gallery_dl";
|
||||||
version = "1.18.2";
|
version = "1.18.3";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "786772ce774929ef1ba64d8394dbab329a72447fd8b930968bc1fb0aacdba567";
|
sha256 = "6e058dd25a8a54ead41479579fd73de71472abb980a6254765c5e538b591d162";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ requests ];
|
propagatedBuildInputs = [ requests ];
|
||||||
|
@ -20,13 +20,13 @@
|
|||||||
|
|
||||||
python3Packages.buildPythonApplication rec {
|
python3Packages.buildPythonApplication rec {
|
||||||
pname = "ulauncher";
|
pname = "ulauncher";
|
||||||
version = "5.9.0";
|
version = "5.11.0";
|
||||||
|
|
||||||
disabled = python3Packages.isPy27;
|
disabled = python3Packages.isPy27;
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/Ulauncher/Ulauncher/releases/download/${version}/ulauncher_${version}.tar.gz";
|
url = "https://github.com/Ulauncher/Ulauncher/releases/download/${version}/ulauncher_${version}.tar.gz";
|
||||||
sha256 = "sha256-jRCrkJcjUHDd3wF+Hkxg0QaW7YgIh7zM/KZ4TAH84/U=";
|
sha256 = "sha256-xEM7sG0NRWouDu6NxNA94WTycykEhPI4ByjDk2yjHjo=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = with python3Packages; [
|
nativeBuildInputs = with python3Packages; [
|
||||||
|
@ -3,10 +3,10 @@
|
|||||||
|
|
||||||
buildPythonApplication rec {
|
buildPythonApplication rec {
|
||||||
pname = "flent";
|
pname = "flent";
|
||||||
version = "1.3.2";
|
version = "2.0.1";
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "1k265xxxjld6q38m9lsgy7p0j70qp9a49vh9zg0njbi4i21lxq23";
|
sha256 = "300a09938dc2b4a0463c9144626f25e0bd736fd47806a9444719fa024d671796";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ sphinx ];
|
buildInputs = [ sphinx ];
|
||||||
|
@ -28,11 +28,11 @@
|
|||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
version = "5.7.28991.0726";
|
version = "5.7.29123.0808";
|
||||||
srcs = {
|
srcs = {
|
||||||
x86_64-linux = fetchurl {
|
x86_64-linux = fetchurl {
|
||||||
url = "https://zoom.us/client/${version}/zoom_x86_64.pkg.tar.xz";
|
url = "https://zoom.us/client/${version}/zoom_x86_64.pkg.tar.xz";
|
||||||
sha256 = "w1oeMKADG5+7EV1OXyuEbotrwcVywob82KOXKoRUifA=";
|
sha256 = "WAeE/2hUaQbWwDg/iqlKSZVoH3ruVHvh+9SEWdPwCIc=";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -12,11 +12,11 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "grisbi";
|
pname = "grisbi";
|
||||||
version = "2.0.2";
|
version = "2.0.4";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://sourceforge/grisbi/${pname}-${version}.tar.bz2";
|
url = "mirror://sourceforge/grisbi/${pname}-${version}.tar.bz2";
|
||||||
sha256 = "sha256-bCO82EWAf/kiMDdojA5goWeWiKWZNOGYixmIJQwovGM=";
|
sha256 = "sha256-4ykG310He1aFaUNo5fClaM3QWFBzKERGihYfqaxR1Vo=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config wrapGAppsHook ];
|
nativeBuildInputs = [ pkg-config wrapGAppsHook ];
|
||||||
|
@ -2,10 +2,10 @@
|
|||||||
, libsoup, gnome }:
|
, libsoup, gnome }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "homebank-5.5.2";
|
name = "homebank-5.5.3";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://homebank.free.fr/public/${name}.tar.gz";
|
url = "http://homebank.free.fr/public/${name}.tar.gz";
|
||||||
sha256 = "sha256-mJ7zeOTJ+CNLYruT1qSxS9TJjciJUZg426H0TxLFHtI=";
|
sha256 = "sha256-BzYHkYqWEAh3kfNvWecNEmH+6OThFGpc/VhxodLZEJM=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config wrapGAppsHook ];
|
nativeBuildInputs = [ pkg-config wrapGAppsHook ];
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
{ lib, stdenv, fetchurl, glib, gtk2, pkg-config, hamlib }:
|
{ lib, stdenv, fetchurl, glib, gtk2, pkg-config, hamlib }:
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "xlog";
|
pname = "xlog";
|
||||||
version = "2.0.20";
|
version = "2.0.23";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://download.savannah.gnu.org/releases/xlog/${pname}-${version}.tar.gz";
|
url = "https://download.savannah.gnu.org/releases/xlog/${pname}-${version}.tar.gz";
|
||||||
sha256 = "sha256-pSGmKLHGc+Eb9OG27k1rYOMn/2BiRejrBajARjEgsUA=";
|
sha256 = "sha256-JSPyXOJbYOCeWY6h0v8fbmBkf1Dop1gdmnn4gKdBgac=";
|
||||||
};
|
};
|
||||||
|
|
||||||
# glib-2.62 deprecations
|
# glib-2.62 deprecations
|
||||||
|
@ -30,6 +30,7 @@
|
|||||||
, ninja
|
, ninja
|
||||||
, dbus
|
, dbus
|
||||||
, python3
|
, python3
|
||||||
|
, pipewire
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -85,6 +86,7 @@ stdenv.mkDerivation rec {
|
|||||||
gtk3
|
gtk3
|
||||||
libcanberra-gtk3
|
libcanberra-gtk3
|
||||||
librsvg
|
librsvg
|
||||||
|
pipewire # PipeWire provides a gstreamer plugin for using PipeWire for video
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
@ -30,11 +30,11 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "totem";
|
pname = "totem";
|
||||||
version = "3.38.0";
|
version = "3.38.1";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://gnome/sources/totem/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
url = "mirror://gnome/sources/totem/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
||||||
sha256 = "0bs33ijvxbr2prb9yj4dxglsszslsn9k258n311sld84masz4ad8";
|
sha256 = "j/rPfA6inO3qBndzCGHUh2qPesTaTGI0u3X3/TcFoQg=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
@ -4,11 +4,11 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "bigloo";
|
pname = "bigloo";
|
||||||
version = "4.3h";
|
version = "4.4b";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "ftp://ftp-sop.inria.fr/indes/fp/Bigloo/bigloo-${version}.tar.gz";
|
url = "ftp://ftp-sop.inria.fr/indes/fp/Bigloo/bigloo-${version}.tar.gz";
|
||||||
sha256 = "0fw08096sf8ma2cncipnidnysxii0h0pc7kcqkjhkhdchknp8vig";
|
sha256 = "sha256-oxOSJwKWmwo7PYAwmeoFrKaYdYvmvQquWXyutolc488=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ autoconf automake libtool ];
|
nativeBuildInputs = [ autoconf automake libtool ];
|
||||||
|
@ -7,10 +7,11 @@ let bigloo-release =
|
|||||||
; in
|
; in
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "hop-3.3.0";
|
pname = "hop";
|
||||||
|
version = "3.4.4";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "ftp://ftp-sop.inria.fr/indes/fp/Hop/${name}.tar.gz";
|
url = "ftp://ftp-sop.inria.fr/indes/fp/Hop/hop-${version}.tar.gz";
|
||||||
sha256 = "14gf9ihmw95zdnxsqhn5jymfivpfq5cg9v0y7yjd5i7c787dncp5";
|
sha256 = "sha256-GzXh4HC+SFFoUi7SMqu36iYRPAJ6tMnOHd+he6n9k1I=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
{ lib, stdenv, fetchzip }:
|
{ lib, stdenv, fetchzip }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "2.1.0";
|
version = "2.2.0";
|
||||||
pname = "half";
|
pname = "half";
|
||||||
|
|
||||||
src = fetchzip {
|
src = fetchzip {
|
||||||
url = "mirror://sourceforge/half/${version}/half-${version}.zip";
|
url = "mirror://sourceforge/half/${version}/half-${version}.zip";
|
||||||
sha256 = "04v4rhs1ffd4c9zcnk4yjhq0gdqy020518wb7n8ryk1ckrdd7hbm";
|
sha256 = "sha256-ZdGgBMZylFgkvs/XVBnvgBY2EYSHRLY3S4YwXjshpOY=";
|
||||||
stripRoot = false;
|
stripRoot = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -3,13 +3,13 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "intel-media-sdk";
|
pname = "intel-media-sdk";
|
||||||
version = "21.2.3";
|
version = "21.3.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "Intel-Media-SDK";
|
owner = "Intel-Media-SDK";
|
||||||
repo = "MediaSDK";
|
repo = "MediaSDK";
|
||||||
rev = "intel-mediasdk-${version}";
|
rev = "intel-mediasdk-${version}";
|
||||||
sha256 = "sha256-Id2/d6rRKiei6UQ0pywdcbNLfIQR8gEseiDgqeaT3p8=";
|
sha256 = "sha256-Ki+gTDL6gj+f3wjhVp4EIVvrPn6NRmCCkCj5g//kAW8=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake pkg-config ];
|
nativeBuildInputs = [ cmake pkg-config ];
|
||||||
|
@ -8,14 +8,14 @@
|
|||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
version = "0.15.3";
|
version = "0.15.4";
|
||||||
pname = "authlib";
|
pname = "authlib";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "lepture";
|
owner = "lepture";
|
||||||
repo = "authlib";
|
repo = "authlib";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "1lqicv8awyygqh1z8vhwvx38dw619kgbirdn8c9sc3qilagq1rdx";
|
sha256 = "1jc7rssi1y6brkwjplj8qmi4q5w9h9wz03fbhg01c0y5bmy0g1nj";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ cryptography requests ];
|
propagatedBuildInputs = [ cryptography requests ];
|
||||||
|
33
pkgs/development/python-modules/chess/default.nix
Normal file
33
pkgs/development/python-modules/chess/default.nix
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, python
|
||||||
|
, pythonOlder
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "chess";
|
||||||
|
version = "1.6.1";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "niklasf";
|
||||||
|
repo = "python-${pname}";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "sha256-2pyABmr6q1Y2/ivtvMYqRHE2Zjlyz2QO0us0w4l2HQM=";
|
||||||
|
};
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "chess" ];
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
${python.interpreter} ./test.py -v
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "A chess library for Python, with move generation, move validation, and support for common formats";
|
||||||
|
homepage = "https://github.com/niklasf/python-chess";
|
||||||
|
maintainers = with maintainers; [ smancill ];
|
||||||
|
license = licenses.gpl3Plus;
|
||||||
|
};
|
||||||
|
}
|
@ -1,15 +1,18 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
|
, pythonOlder
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "wrapio";
|
pname = "wrapio";
|
||||||
version = "1.0.0";
|
version = "2.0.0";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.5";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "sha256-JWcPsqZy1wM6/mbU3H0W3EkpLg0wrEUUg3pT/QrL+rE=";
|
sha256 = "sha256-CUocIbdZ/tJQCxAHzhFpB267ynlXf8Mu+thcRRc0yeg=";
|
||||||
};
|
};
|
||||||
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
@ -7,15 +7,15 @@
|
|||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "buf";
|
pname = "buf";
|
||||||
version = "0.49.0";
|
version = "0.50.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "bufbuild";
|
owner = "bufbuild";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-xP2UbcHwimN09IXrGp3zhBLL74l/8YKotqBNRTITF18=";
|
sha256 = "sha256-Kg3p6BsYrIGn16VQ87TQwa7B+YVEq6oCSd3Je2A6NC8=";
|
||||||
};
|
};
|
||||||
vendorSha256 = "sha256-WgQSLe99CbOwJC8ewDcSq6PcBJdmiPRmvAonq8drQ1w=";
|
vendorSha256 = "sha256-0vvDzs4LliEm202tScmzL+riL3FqHdvawhzU0lPkRew=";
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
# Skip a test that requires networking to be available to work.
|
# Skip a test that requires networking to be available to work.
|
||||||
|
@ -90,7 +90,16 @@ let
|
|||||||
sha256 = "1s9idx2miwk178sa731ig9r4fzx4gy1q8xazfqyd7q4lfd70s1cy";
|
sha256 = "1s9idx2miwk178sa731ig9r4fzx4gy1q8xazfqyd7q4lfd70s1cy";
|
||||||
};
|
};
|
||||||
|
|
||||||
in rec {
|
# auto-generated by update.py
|
||||||
|
versions = lib.mapAttrs (_: {version, sha256}: common {
|
||||||
|
inherit version sha256;
|
||||||
|
externals = {
|
||||||
|
"externals_cache/pjproject-2.10.tar.bz2" = pjproject_2_10;
|
||||||
|
"addons/mp3" = mp3-202;
|
||||||
|
};
|
||||||
|
}) (builtins.fromJSON (builtins.readFile ./versions.json));
|
||||||
|
|
||||||
|
in {
|
||||||
# Supported releases (as of 2020-10-26).
|
# Supported releases (as of 2020-10-26).
|
||||||
# Source: https://wiki.asterisk.org/wiki/display/AST/Asterisk+Versions
|
# Source: https://wiki.asterisk.org/wiki/display/AST/Asterisk+Versions
|
||||||
# Exact version can be found at https://www.asterisk.org/downloads/asterisk/all-asterisk-versions/
|
# Exact version can be found at https://www.asterisk.org/downloads/asterisk/all-asterisk-versions/
|
||||||
@ -100,43 +109,8 @@ in rec {
|
|||||||
# 16.x LTS 2018-10-09 2022-10-09 2023-10-09
|
# 16.x LTS 2018-10-09 2022-10-09 2023-10-09
|
||||||
# 17.x Standard 2019-10-28 2020-10-28 2021-10-28
|
# 17.x Standard 2019-10-28 2020-10-28 2021-10-28
|
||||||
# 18.x LTS 2020-10-20 2024-10-20 2025-10-20
|
# 18.x LTS 2020-10-20 2024-10-20 2025-10-20
|
||||||
asterisk-lts = asterisk_18;
|
asterisk-lts = versions.asterisk_18;
|
||||||
asterisk-stable = asterisk_18;
|
asterisk-stable = versions.asterisk_18;
|
||||||
asterisk = asterisk_18;
|
asterisk = versions.asterisk_18;
|
||||||
|
|
||||||
asterisk_13 = common {
|
} // versions
|
||||||
version = "13.38.2";
|
|
||||||
sha256 = "1v7wgsa9vf7qycg3xpvmn2bkandkfh3x15pr8ylg0w0gvfkkf5b9";
|
|
||||||
externals = {
|
|
||||||
"externals_cache/pjproject-2.10.tar.bz2" = pjproject_2_10;
|
|
||||||
"addons/mp3" = mp3-202;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
asterisk_16 = common {
|
|
||||||
version = "16.17.0";
|
|
||||||
sha256 = "1bzlsk9k735qf8a693b6sa548my7m9ahavmdicwmc14px70wrvnw";
|
|
||||||
externals = {
|
|
||||||
"externals_cache/pjproject-2.10.tar.bz2" = pjproject_2_10;
|
|
||||||
"addons/mp3" = mp3-202;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
asterisk_17 = common {
|
|
||||||
version = "17.9.3";
|
|
||||||
sha256 = "0nhk0izrxx24pz806fwnhidjmciwrkcrsvxvhrdvibiqyvfk8yk7";
|
|
||||||
externals = {
|
|
||||||
"externals_cache/pjproject-2.10.tar.bz2" = pjproject_2_10;
|
|
||||||
"addons/mp3" = mp3-202;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
asterisk_18 = common {
|
|
||||||
version = "18.3.0";
|
|
||||||
sha256 = "1xb953i9ay82vcdv8izi5dd5xnspcsvg10ajiyph377jw2xnd5fb";
|
|
||||||
externals = {
|
|
||||||
"externals_cache/pjproject-2.10.tar.bz2" = pjproject_2_10;
|
|
||||||
"addons/mp3" = mp3-202;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
36
pkgs/servers/asterisk/update.py
Executable file
36
pkgs/servers/asterisk/update.py
Executable file
@ -0,0 +1,36 @@
|
|||||||
|
#!/usr/bin/env nix-shell
|
||||||
|
#!nix-shell -i python3 -p python39 python39.pkgs.packaging python39.pkgs.beautifulsoup4 python39.pkgs.requests
|
||||||
|
from packaging import version
|
||||||
|
from bs4 import BeautifulSoup
|
||||||
|
import re, requests, json
|
||||||
|
|
||||||
|
URL = "https://downloads.asterisk.org/pub/telephony/asterisk"
|
||||||
|
|
||||||
|
page = requests.get(URL)
|
||||||
|
changelog = re.compile("^ChangeLog-\d+\.\d+\.\d+$")
|
||||||
|
changelogs = [a.get_text() for a in BeautifulSoup(page.text, 'html.parser').find_all('a') if changelog.match(a.get_text())]
|
||||||
|
major_versions = {}
|
||||||
|
for changelog in changelogs:
|
||||||
|
v = version.parse(changelog.removeprefix("ChangeLog-"))
|
||||||
|
major_versions.setdefault(v.major, []).append(v)
|
||||||
|
|
||||||
|
out = {}
|
||||||
|
for mv in major_versions.keys():
|
||||||
|
v = max(major_versions[mv])
|
||||||
|
sha = requests.get(f"{URL}/asterisk-{v}.sha256").text.split()[0]
|
||||||
|
out["asterisk_" + str(mv)] = {
|
||||||
|
"version": str(v),
|
||||||
|
"sha256": sha
|
||||||
|
}
|
||||||
|
|
||||||
|
try:
|
||||||
|
with open("versions.json", "r") as in_file:
|
||||||
|
in_data = json.loads(in_file.read())
|
||||||
|
for v in in_data.keys():
|
||||||
|
print(v + ":", in_data[v]["version"], "->", out[v]["version"])
|
||||||
|
except:
|
||||||
|
# nice to have for the PR, not a requirement
|
||||||
|
pass
|
||||||
|
|
||||||
|
with open("versions.json", "w") as out_file:
|
||||||
|
out_file.write(json.dumps(out, sort_keys=True, indent=2) + "\n")
|
18
pkgs/servers/asterisk/versions.json
Normal file
18
pkgs/servers/asterisk/versions.json
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
{
|
||||||
|
"asterisk_13": {
|
||||||
|
"sha256": "478040705f5819259bb1d22cb4e27970092a5bfdb691d27d321c26235eea4bb3",
|
||||||
|
"version": "13.38.3"
|
||||||
|
},
|
||||||
|
"asterisk_16": {
|
||||||
|
"sha256": "c34fc38287cea533c0d0a34959112119e47d12d8ea6ac11bdddf9265afda6d11",
|
||||||
|
"version": "16.19.1"
|
||||||
|
},
|
||||||
|
"asterisk_17": {
|
||||||
|
"sha256": "cc0d6b9ef1512d4e279b80ca8bf78032d69fe6e92492c95c22c44023d6c111fa",
|
||||||
|
"version": "17.9.4"
|
||||||
|
},
|
||||||
|
"asterisk_18": {
|
||||||
|
"sha256": "e7d78716a0deeadf24b7d537cd24c11c2d9a096265eefc9470565c4da0fc54c7",
|
||||||
|
"version": "18.5.1"
|
||||||
|
}
|
||||||
|
}
|
@ -2,18 +2,18 @@
|
|||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "dolt";
|
pname = "dolt";
|
||||||
version = "0.27.2";
|
version = "0.27.3";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "liquidata-inc";
|
owner = "liquidata-inc";
|
||||||
repo = "dolt";
|
repo = "dolt";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-Px2b0s10N5uDYsz95/1cT2tfS/NfhRfKmCdXIaMb5Po=";
|
sha256 = "sha256-zqLGvbvl21KNBbESbp9gA8iA1Y6MXwqz3HBZlOYYdIo=";
|
||||||
};
|
};
|
||||||
|
|
||||||
modRoot = "./go";
|
modRoot = "./go";
|
||||||
subPackages = [ "cmd/dolt" "cmd/git-dolt" "cmd/git-dolt-smudge" ];
|
subPackages = [ "cmd/dolt" "cmd/git-dolt" "cmd/git-dolt-smudge" ];
|
||||||
vendorSha256 = "sha256-6KjSmxNLY0msMqpPZR7LUZV63Pj6JGhGVRWTKbbnDtk=";
|
vendorSha256 = "sha256-JVDYSPLemJRD1Gb6rZJdI/0Z5f1a+0TkP1b0IZe/Ns0=";
|
||||||
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
|
@ -2,16 +2,16 @@
|
|||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "eksctl";
|
pname = "eksctl";
|
||||||
version = "0.60.0";
|
version = "0.61.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "weaveworks";
|
owner = "weaveworks";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "sha256-zRwdluwVi4hbDZGlRwhNWkeq05c2VTZ52KrxvyFIBio=";
|
sha256 = "sha256-8/1imYCPtSTZjk27nCkXOVi4hYzczsCzrn2k3WqHFzc=";
|
||||||
};
|
};
|
||||||
|
|
||||||
vendorSha256 = "sha256-mapok/c3uh7xmLZnN5S9zavgxSOfytqtqxBScv4Ao8w=";
|
vendorSha256 = "sha256-AWNTjqEeSEoXO9wcpEXM3y1AeqQYlbswjr0kXvXqGjk=";
|
||||||
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
|
@ -2,13 +2,13 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "maxcso";
|
pname = "maxcso";
|
||||||
version = "1.12.0";
|
version = "1.13.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "unknownbrackets";
|
owner = "unknownbrackets";
|
||||||
repo = "maxcso";
|
repo = "maxcso";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "10r0vb3ndpq1pw5224d48nim5xz8jj94zhlfy29br6h6jblq8zap";
|
sha256 = "sha256-6LjR1ZMZsi6toz9swPzNmSAlrUykwvVdYi1mR8Ctq5U=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ libuv lz4 zlib ];
|
buildInputs = [ libuv lz4 zlib ];
|
||||||
|
@ -5,13 +5,13 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "ibus-table";
|
pname = "ibus-table";
|
||||||
version = "1.12.4";
|
version = "1.14.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "kaio";
|
owner = "kaio";
|
||||||
repo = "ibus-table";
|
repo = "ibus-table";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "sha256-2qST5k2+8gfSf1/FaxXW4qwSQgNw/QKM+1mMWDdrjCU=";
|
sha256 = "sha256-HGSa8T1fY3PGow/rB9ixAPTibLCykImcs0kM/dUIwmQ=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
@ -4,13 +4,13 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "disfetch";
|
pname = "disfetch";
|
||||||
version = "2.9";
|
version = "2.10";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "q60";
|
owner = "q60";
|
||||||
repo = "disfetch";
|
repo = "disfetch";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "sha256-dmDDO1DcDMGWtQtIQncOjSc114tL5QH1Jaq1n4vAe5M=";
|
sha256 = "sha256-mjjFy6VItTg4VVXvGNjOJYHKHTy8o26iYsVC9Fq0YVg=";
|
||||||
};
|
};
|
||||||
|
|
||||||
dontBuild = true;
|
dontBuild = true;
|
||||||
|
@ -21,13 +21,13 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "fwup";
|
pname = "fwup";
|
||||||
version = "1.8.4";
|
version = "1.9.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "fhunleth";
|
owner = "fhunleth";
|
||||||
repo = "fwup";
|
repo = "fwup";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-NaSA3mFWf3C03SAGssMqLT0vr5KMfxD5y/iragGNKjw=";
|
sha256 = "sha256-ARwBm9p6o/iC09F6pc5c4qq3WClNTyAvLPsG58YQOAM=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
@ -1427,6 +1427,8 @@ in {
|
|||||||
|
|
||||||
cherrypy = callPackage ../development/python-modules/cherrypy { };
|
cherrypy = callPackage ../development/python-modules/cherrypy { };
|
||||||
|
|
||||||
|
chess = callPackage ../development/python-modules/chess { };
|
||||||
|
|
||||||
chevron = callPackage ../development/python-modules/chevron { };
|
chevron = callPackage ../development/python-modules/chevron { };
|
||||||
|
|
||||||
chiabip158 = callPackage ../development/python-modules/chiabip158 { };
|
chiabip158 = callPackage ../development/python-modules/chiabip158 { };
|
||||||
|
Loading…
Reference in New Issue
Block a user