Merge staging-next into staging

This commit is contained in:
github-actions[bot] 2022-07-01 18:02:00 +00:00 committed by GitHub
commit 7907ea3c9b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
58 changed files with 422 additions and 233 deletions

View file

@ -143,6 +143,9 @@ in {
language = "python"; language = "python";
logo32 = "''${env.sitePackages}/ipykernel/resources/logo-32x32.png"; logo32 = "''${env.sitePackages}/ipykernel/resources/logo-32x32.png";
logo64 = "''${env.sitePackages}/ipykernel/resources/logo-64x64.png"; logo64 = "''${env.sitePackages}/ipykernel/resources/logo-64x64.png";
extraPaths = {
"cool.txt" = pkgs.writeText "cool" "cool content";
};
}; };
} }
''; '';

View file

@ -56,5 +56,14 @@ with lib;
Path to 64x64 logo png. Path to 64x64 logo png.
''; '';
}; };
extraPaths = mkOption {
type = types.attrsOf types.path;
default = { };
example = literalExpression ''"{ examples = ''${env.sitePack}/IRkernel/kernelspec/kernel.js"; }'';
description = ''
Extra paths to link in kernel directory
'';
};
}; };
} }

View file

@ -45,6 +45,10 @@ in
# get the command line client on system path to make some use of the service # get the command line client on system path to make some use of the service
environment.systemPackages = [ pkgs.dict ]; environment.systemPackages = [ pkgs.dict ];
environment.etc."dict.conf".text = ''
server localhost
'';
users.users.dictd = users.users.dictd =
{ group = "dictd"; { group = "dictd";
description = "DICT.org dictd server"; description = "DICT.org dictd server";

View file

@ -74,6 +74,10 @@ stdenv.mkDerivation rec {
"--with-qt-bindir=${qtbase.dev}/bin:${qttools.dev}/bin" "--with-qt-bindir=${qtbase.dev}/bin:${qttools.dev}/bin"
]; ];
# fix "Killed: 9 test/test_bitcoin"
# https://github.com/NixOS/nixpkgs/issues/179474
hardeningDisable = lib.optionals (stdenv.isAarch64 && stdenv.isDarwin) [ "stackprotector" ];
checkInputs = [ python3 ]; checkInputs = [ python3 ];
doCheck = true; doCheck = true;

View file

@ -39,26 +39,22 @@ in
${concatStringsSep "\n" (mapAttrsToList (kernelName: unfilteredKernel: ${concatStringsSep "\n" (mapAttrsToList (kernelName: unfilteredKernel:
let let
allowedKernelKeys = ["argv" "displayName" "language" "interruptMode" "env" "metadata" "logo32" "logo64"]; allowedKernelKeys = ["argv" "displayName" "language" "interruptMode" "env" "metadata" "logo32" "logo64" "extraPaths"];
kernel = filterAttrs (n: v: (any (x: x == n) allowedKernelKeys)) unfilteredKernel; kernel = filterAttrs (n: v: (any (x: x == n) allowedKernelKeys)) unfilteredKernel;
config = builtins.toJSON ( config = builtins.toJSON (
kernel kernel
// {display_name = if (kernel.displayName != "") then kernel.displayName else kernelName;} // {display_name = if (kernel.displayName != "") then kernel.displayName else kernelName;}
// (optionalAttrs (kernel ? interruptMode) { interrupt_mode = kernel.interruptMode; }) // (optionalAttrs (kernel ? interruptMode) { interrupt_mode = kernel.interruptMode; })
); );
logo32 = extraPaths = kernel.extraPaths or {}
if (kernel.logo32 != null) // lib.optionalAttrs (kernel.logo32 != null) { "logo-32x32.png" = kernel.logo32; }
then "ln -s ${kernel.logo32} 'kernels/${kernelName}/logo-32x32.png';" // lib.optionalAttrs (kernel.logo64 != null) { "logo-64x64.png" = kernel.logo64; }
else ""; ;
logo64 = linkExtraPaths = lib.mapAttrsToList (name: value: "ln -s ${value} 'kernels/${kernelName}/${name}';") extraPaths;
if (kernel.logo64 != null)
then "ln -s ${kernel.logo64} 'kernels/${kernelName}/logo-64x64.png';"
else "";
in '' in ''
mkdir 'kernels/${kernelName}'; mkdir 'kernels/${kernelName}';
echo '${config}' > 'kernels/${kernelName}/kernel.json'; echo '${config}' > 'kernels/${kernelName}/kernel.json';
${logo32} ${lib.concatStringsSep "\n" linkExtraPaths}
${logo64}
'') definitions)} '') definitions)}
mkdir $out mkdir $out

View file

@ -25,16 +25,16 @@
}: }:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "neovide"; pname = "neovide";
version = "0.8.0"; version = "0.9.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "Kethku"; owner = "Kethku";
repo = "neovide"; repo = "neovide";
rev = version; rev = version;
sha256 = "sha256-pbniOWjEw1Z+PoXqbbFOUkW5Ii1UDOMoZpAvVF1uNEg="; sha256 = "sha256-2fN05o8Zo1MGdIYUcsCgkiW/kG6DkY8uTnpw2XrKxrI=";
}; };
cargoSha256 = "sha256-7o7uJXH68pvfuiG1eSNmbPx8OO8QJjCe+oEFl38bFm4="; cargoSha256 = "sha256-eATUyczkcwHI8Y7Gl2ts4dRgiFUAL8yrWDNe4JzserE=";
SKIA_SOURCE_DIR = SKIA_SOURCE_DIR =
let let
@ -42,8 +42,8 @@ rustPlatform.buildRustPackage rec {
owner = "rust-skia"; owner = "rust-skia";
repo = "skia"; repo = "skia";
# see rust-skia:skia-bindings/Cargo.toml#package.metadata skia # see rust-skia:skia-bindings/Cargo.toml#package.metadata skia
rev = "m93-0.42.0"; rev = "m100-0.48.7";
sha256 = "sha256-F1DWLm7bdKnuCu5tMMekxSyaGq8gPRNtZwcRVXJxjZQ="; sha256 = "sha256-roZUv5YoLolRi0iWAB+5WlCFV+8GdzNzS+JINnEHaMs=";
}; };
# The externals for skia are taken from skia/DEPS # The externals for skia are taken from skia/DEPS
externals = lib.mapAttrs (n: fetchgit) (lib.importJSON ./skia-externals.json); externals = lib.mapAttrs (n: fetchgit) (lib.importJSON ./skia-externals.json);

View file

@ -6,8 +6,8 @@
}, },
"libjpeg-turbo": { "libjpeg-turbo": {
"url": "https://chromium.googlesource.com/chromium/deps/libjpeg_turbo.git", "url": "https://chromium.googlesource.com/chromium/deps/libjpeg_turbo.git",
"rev": "24e310554f07c0fdb8ee52e3e708e4f3e9eb6e20", "rev": "02959c3ee17abacfd1339ec22ea93301292ffd56",
"sha256": "sha256-bhbUnA36rKYLJSLpElmXJqccXQDjjbMcNMsVM4Eekrs=" "sha256": "sha256-gs8JUT8AoKL+9vlmz3evq61+h2QxNcWqOHN4elb2Grc="
}, },
"icu": { "icu": {
"url": "https://chromium.googlesource.com/chromium/deps/icu.git", "url": "https://chromium.googlesource.com/chromium/deps/icu.git",
@ -21,8 +21,8 @@
}, },
"harfbuzz": { "harfbuzz": {
"url": "https://chromium.googlesource.com/external/github.com/harfbuzz/harfbuzz.git", "url": "https://chromium.googlesource.com/external/github.com/harfbuzz/harfbuzz.git",
"rev": "3a74ee528255cc027d84b204a87b5c25e47bff79", "rev": "a8b7f1880412c7f0c9ecdada0a4935011816c7dc",
"sha256": "sha256-/4UdoUj0bxj6+EfNE8ofjtWOn2VkseEfvdFah5rwwBM=" "sha256": "sha256-TQdgg0G8Dk10tg2MLv405nG8DAaPm7JiZjiZ6tOSGW4="
}, },
"libpng": { "libpng": {
"url": "https://skia.googlesource.com/third_party/libpng.git", "url": "https://skia.googlesource.com/third_party/libpng.git",

View file

@ -48,6 +48,11 @@ stdenv.mkDerivation rec {
pygobject3 pygobject3
])) ]))
]; ];
patches = [
# Compiles, but doesn't launch without this, see:
# https://gitlab.gnome.org/GNOME/ocrfeeder/-/issues/83
./fix-launch.diff
];
enginesPath = lib.makeBinPath ([ enginesPath = lib.makeBinPath ([
tesseract4 tesseract4
@ -64,7 +69,5 @@ stdenv.mkDerivation rec {
maintainers = with maintainers; [ doronbehar ]; maintainers = with maintainers; [ doronbehar ];
license = licenses.gpl3Plus; license = licenses.gpl3Plus;
platforms = platforms.linux; platforms = platforms.linux;
# Compiles, but doesn't launch, see: https://gitlab.gnome.org/GNOME/ocrfeeder/-/issues/83
broken = true;
}; };
} }

View file

@ -0,0 +1,13 @@
diff --git i/src/ocrfeeder/studio/studioBuilder.py w/src/ocrfeeder/studio/studioBuilder.py
index 7a2ccdc..7af19d9 100644
--- i/src/ocrfeeder/studio/studioBuilder.py
+++ w/src/ocrfeeder/studio/studioBuilder.py
@@ -144,7 +144,7 @@ class Studio:
if not self.ocr_engines:
engines = self.configuration_manager.getEnginesInSystem()
if engines:
- add_engines_dialog = widgetPresenter.SystemEnginesDialog(engines)
+ add_engines_dialog = widgetPresenter.SystemEnginesDialog(self.main_window, engines)
response = add_engines_dialog.run()
if response == Gtk.ResponseType.ACCEPT:
for engine in add_engines_dialog.getChosenEngines():

View file

@ -44,11 +44,11 @@ in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "bluejeans"; pname = "bluejeans";
version = "2.27.0.130"; version = "2.29.1.3";
src = fetchurl { src = fetchurl {
url = "https://swdl.bluejeans.com/desktop-app/linux/${getFirst 3 version}/BlueJeans_${version}.rpm"; url = "https://swdl.bluejeans.com/desktop-app/linux/${getFirst 3 version}/BlueJeans_${version}.rpm";
sha256 = "sha256-J0BGL03k1NAJLLEUOfvKjZEsBlupeHJR2Bp3c0ANBwg="; sha256 = "sha256-vWViSJXRPZ4B40LNnoKRZNbxB1YKnaW2ay6GCjnFLGY=";
}; };
nativeBuildInputs = [ rpmextract makeWrapper ]; nativeBuildInputs = [ rpmextract makeWrapper ];

View file

@ -0,0 +1 @@
"0cwplzza8vv4nzxf35i2p4gfnna4dpgp0ddqbpdxl8cxrikq5rji"

View file

@ -0,0 +1 @@
"5.11.1.8356"

View file

@ -1,6 +1,7 @@
{ stdenv { stdenv
, lib , lib
, fetchurl , fetchurl
, pipewire
, makeWrapper , makeWrapper
, xar , xar
, cpio , cpio
@ -44,23 +45,23 @@ let
# Zoom versions are released at different times for each platform # Zoom versions are released at different times for each platform
version = { version = {
aarch64-darwin = "5.10.4.6592"; aarch64-darwin =import ./arm64-darwin-version.nix;
x86_64-darwin = "5.10.4.6592"; x86_64-darwin = import ./x86_64-darwin-version.nix;
x86_64-linux = "5.10.6.3192"; x86_64-linux = import ./x86_64-linux-version.nix;
}.${system} or throwSystem; }.${system} or throwSystem;
srcs = { srcs = {
aarch64-darwin = fetchurl { aarch64-darwin = fetchurl {
url = "https://zoom.us/client/${version}/Zoom.pkg?archType=arm64"; url = "https://zoom.us/client/${version}/Zoom.pkg?archType=arm64";
sha256 = "0jg5f9hvb67hhfnifpx5fzz65fcijldy1znlia6pqflxwci3m5rq"; sha256 = import ./arm64-darwin-sha.nix;
}; };
x86_64-darwin = fetchurl { x86_64-darwin = fetchurl {
url = "https://zoom.us/client/${version}/Zoom.pkg"; url = "https://zoom.us/client/${version}/Zoom.pkg";
sha256 = "1p83691bid8kz5mw09x6l9zvjglfszi5vbhfmbbpiqhiqcxlfz83"; sha256 = import ./x86_64-darwin-sha.nix;
}; };
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 = "8QIkF5+875VFoGK6T0CROsqML6bJDG934c1gkuz8Klk="; sha256 = import ./x86_64-linux-sha.nix;
}; };
}; };
@ -76,6 +77,7 @@ let
expat expat
libdrm libdrm
libGL libGL
pipewire
fontconfig fontconfig
freetype freetype
gtk3 gtk3

View file

@ -1,10 +1,30 @@
#!/usr/bin/env nix-shell #!/usr/bin/env nix-shell
#!nix-shell -i bash -p curl pup common-updater-scripts #!nix-shell -i bash -p curl pup
set -eu -o pipefail set -eu -o pipefail
version="$(curl -Ls https://zoom.us/download\?os\=linux | \ dirname="$(dirname "$0")"
pup '.linux-ver-text text{}' | \
awk -F'[ ().]' '{printf $2"."$3"."$4"."$6"\n"}')"
update-source-version zoom-us "$version" uname="$(uname)"
if [[ "$uname" == "Linux" ]]; then
version="$(curl -Ls https://zoom.us/download\?os\=linux | \
pup '.linux-ver-text text{}' | \
awk -F'[ ().]' '{printf $2"."$3"."$4"."$6"\n"}')"
printf '"%s"\n' ${version} > $dirname/x86_64-linux-version.nix
printf '"%s"\n' \
$(nix-prefetch-url https://zoom.us/client/${version}/zoom_x86_64.pkg.tar.xz) > \
$dirname/x86_64-linux-sha.nix
elif [[ $uname == "Darwin" ]]; then
# The 1st line might be empty
# 2nd line is the version of the conference room application
version="$(curl -Ls https://zoom.us/download\?os\=mac | \
pup '.ver text{}' | \
sed '/^$/d' |\
head -1 | \
awk -F'[ ().]' '{printf $2"."$3"."$4"."$6"\n"}')"
printf '"%s"\n' ${version} > "$dirname/$(uname -m)-darwin-version.nix"
printf '"%s"\n' \
$(nix-prefetch-url "https://zoom.us/client/${version}/Zoom.pkg?archType=$(uname -m)") > \
"$dirname/$(uname -m)-darwin-sha.nix"
fi

View file

@ -0,0 +1 @@
"12s4z80n1qk1vcp5vppabj6fxanm4q7pjj7mggalmjbj6984fsza"

View file

@ -0,0 +1 @@
"5.11.1.8356"

View file

@ -0,0 +1 @@
"1ir5akl4vrzb0b5s37s2viqisvf4sylw8rfnfj434h1q0gqz79sc"

View file

@ -0,0 +1 @@
"5.11.1.3595"

View file

@ -9,7 +9,7 @@
# is always preferred, see `sage-src.nix` for that. # is always preferred, see `sage-src.nix` for that.
let let
inherit (pkgs) symlinkJoin callPackage nodePackages; inherit (pkgs) symlinkJoin callPackage nodePackages lib;
python3 = pkgs.python3.override { python3 = pkgs.python3.override {
packageOverrides = self: super: { packageOverrides = self: super: {
@ -46,7 +46,7 @@ let
# just one 16x16 logo is available # just one 16x16 logo is available
logo32 = "${sage-src}/src/doc/common/themes/sage/static/sageicon.png"; logo32 = "${sage-src}/src/doc/common/themes/sage/static/sageicon.png";
logo64 = "${sage-src}/src/doc/common/themes/sage/static/sageicon.png"; logo64 = "${sage-src}/src/doc/common/themes/sage/static/sageicon.png";
}; } // lib.optionalAttrs withDoc { extraPaths = { "doc" = "${sagedoc}/share/doc/sage/html/en"; }; };
jupyter-kernel-specs = pkgs.jupyter-kernel.create { jupyter-kernel-specs = pkgs.jupyter-kernel.create {
definitions = pkgs.jupyter-kernel.default // { definitions = pkgs.jupyter-kernel.default // {
@ -113,6 +113,7 @@ let
tkinter # optional, as a matplotlib backend (use with `%matplotlib tk`) tkinter # optional, as a matplotlib backend (use with `%matplotlib tk`)
scipy scipy
ipywidgets ipywidgets
notebook # for "sage -n"
rpy2 rpy2
sphinx sphinx
pillow pillow

View file

@ -2,13 +2,13 @@
buildGoModule rec { buildGoModule rec {
pname = "lefthook"; pname = "lefthook";
version = "1.0.0"; version = "1.0.4";
src = fetchFromGitHub { src = fetchFromGitHub {
rev = "v${version}"; rev = "v${version}";
owner = "evilmartians"; owner = "evilmartians";
repo = "lefthook"; repo = "lefthook";
sha256 = "sha256-UpMzqp4NVvj/Y3OdtI5nGhJHgPIfSlopmyv7jDDpWdM="; sha256 = "sha256-uaIZrxfzV2WPvnAPm6Q67yKx1EVmSMcChSxZG/Huw48=";
}; };
vendorSha256 = "sha256-LCBQyVSkUywceIlioYRNuRc6FrbPKuhgfw5OocR3NvI="; vendorSha256 = "sha256-LCBQyVSkUywceIlioYRNuRc6FrbPKuhgfw5OocR3NvI=";

View file

@ -1,7 +1,7 @@
{ lib, fetchzip }: { lib, fetchzip }:
let let
version = "1.3.0"; version = "1.3.3";
mkPretendard = { pname, typeface, sha256 }: mkPretendard = { pname, typeface, sha256 }:
fetchzip { fetchzip {
@ -10,9 +10,12 @@ let
url = "https://github.com/orioncactus/pretendard/releases/download/v${version}/${typeface}-${version}.zip"; url = "https://github.com/orioncactus/pretendard/releases/download/v${version}/${typeface}-${version}.zip";
inherit sha256; inherit sha256;
stripRoot = false;
postFetch = '' postFetch = ''
mkdir -p $out/share/fonts/opentype mkdir -p $out/share/fonts/
unzip -j $downloadedFile "*.otf" -d $out/share/fonts/opentype install -Dm644 $out/public/static/*.otf -t $out/share/fonts/opentype
rm -rf $out/{public,web,LICENSE.txt}
''; '';
meta = with lib; { meta = with lib; {
@ -29,18 +32,18 @@ in
pretendard = mkPretendard { pretendard = mkPretendard {
pname = "pretendard"; pname = "pretendard";
typeface = "Pretendard"; typeface = "Pretendard";
sha256 = "sha256-4DM8PZjxW93sgQChs+qu5Svo+iGlFnpglu6acYMCkSQ="; sha256 = "sha256-lRHRdCAg3i3+3Y6j0dCXUgwLdeS/VeI6KNkbDKchNEY=";
}; };
pretendard-jp = mkPretendard { pretendard-jp = mkPretendard {
pname = "pretendard-jp"; pname = "pretendard-jp";
typeface = "PretendardJP"; typeface = "PretendardJP";
sha256 = "sha256-3OOUUDiurCpIGNIVjrr2KW0CB3fCXt11P+13teK5kOQ="; sha256 = "sha256-VgGt/WoaaJJDAzw+gUQVgTQ+q34bdAaKUB4cA9eU0dQ=";
}; };
pretendard-std = mkPretendard { pretendard-std = mkPretendard {
pname = "pretendard-std"; pname = "pretendard-std";
typeface = "PretendardStd"; typeface = "PretendardStd";
sha256 = "sha256-iVAPdA6qAiE7pseaB0NKPJBPNGdw/nT6PzXIsLajJH4="; sha256 = "sha256-FOlZrr6CHPfUm9Q+Yoi0HLQUI7cAhQYq6P6sJGXBIWg=";
}; };
} }

View file

@ -63,11 +63,11 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "gnome-control-center"; pname = "gnome-control-center";
version = "42.2"; version = "42.3";
src = fetchurl { src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz"; url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz";
sha256 = "sha256-eLolewn73cBYh5F00Tg3p5zVnpWoSQEX5Myi5SLJ6wA="; sha256 = "sha256-zgrjZQ3ir368sKfh/JkS7dtu/40lfz/lD/iynBk0HH4=";
}; };
patches = [ patches = [

View file

@ -42,11 +42,11 @@ in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "gnome-software"; pname = "gnome-software";
version = "42.2"; version = "42.3";
src = fetchurl { src = fetchurl {
url = "mirror://gnome/sources/gnome-software/${lib.versions.major version}/${pname}-${version}.tar.xz"; url = "mirror://gnome/sources/gnome-software/${lib.versions.major version}/${pname}-${version}.tar.xz";
sha256 = "6ENJYyp/XQhmzlwMVi5f6oQRoF8ickRBzZqCQgRiMiQ="; sha256 = "OM9whWmj12TU0NLt7KqG9Og57CK5ZvQf2tVleKDdM8A=";
}; };
patches = [ patches = [

View file

@ -9,14 +9,14 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "blueprint-compiler"; pname = "blueprint-compiler";
version = "unstable-2022-05-27"; version = "0.2.0";
src = fetchFromGitLab { src = fetchFromGitLab {
domain = "gitlab.gnome.org"; domain = "gitlab.gnome.org";
owner = "jwestman"; owner = "jwestman";
repo = pname; repo = pname;
rev = "cebd9ecadc53790cd547392899589dd5de0ac552"; rev = "v${version}";
sha256 = "sha256-mNR0ooJSRBIXy2E4avXYEdO1aSST+j41TsVg8+kitwo="; sha256 = "sha256-LXZ6n1oCbPa0taVbUZf52mGECrzXIcF8EaMVJ30rMtc=";
}; };
# Requires pythonfuzz, which I've found difficult to package # Requires pythonfuzz, which I've found difficult to package
@ -25,7 +25,6 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ nativeBuildInputs = [
meson meson
ninja ninja
python3.pkgs.wrapPython
]; ];
buildInputs = [ buildInputs = [
@ -37,10 +36,6 @@ stdenv.mkDerivation rec {
gobject-introspection gobject-introspection
]; ];
postFixup = ''
wrapPythonPrograms
'';
meta = with lib; { meta = with lib; {
description = "A markup language for GTK user interface files"; description = "A markup language for GTK user interface files";
homepage = "https://gitlab.gnome.org/jwestman/blueprint-compiler"; homepage = "https://gitlab.gnome.org/jwestman/blueprint-compiler";

View file

@ -15,13 +15,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "amtk"; pname = "amtk";
version = "5.4.1"; version = "5.5.1";
outputs = [ "out" "dev" "devdoc" ]; outputs = [ "out" "dev" "devdoc" ];
src = fetchurl { src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "frq8QpsO67KzI2DJv9vjaOSJs1w83AhqhWz8mzpGanI="; sha256 = "7Ilt0BfiwUNoUuXmCXD80IML0SFI1XzBvcDZOCa925w=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View file

@ -33,6 +33,11 @@ stdenv.mkDerivation rec {
url = "https://github.com/duckdb/duckdb/commit/82e13a4bb9f0683af6c52468af2fb903cce4286d.patch"; url = "https://github.com/duckdb/duckdb/commit/82e13a4bb9f0683af6c52468af2fb903cce4286d.patch";
sha256 = "sha256-m0Bs0DOJQtkadbKZKk88NHyBFJkjxXUsiWYciuRIJLU="; sha256 = "sha256-m0Bs0DOJQtkadbKZKk88NHyBFJkjxXUsiWYciuRIJLU=";
}) })
(fetchpatch {
name = "fix-list-type-metadata.patch";
url = "https://github.com/duckdb/duckdb/commit/26d123fdc57273903573c72b1ddafc52f365e378.patch";
sha256 = "sha256-ttqs5EjeSLhZQOXc43Y5/N5IYSESQTD1FZWV1uJ15Fo=";
})
]; ];
postPatch = '' postPatch = ''

View file

@ -18,13 +18,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "glib-networking"; pname = "glib-networking";
version = "2.72.0"; version = "2.72.1";
outputs = [ "out" "installedTests" ]; outputs = [ "out" "installedTests" ];
src = fetchurl { src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "EAquuzaShQQd5S2kIra3FnidXk11SaOnG6WHuTLggjs="; sha256 = "b8G+3IBiSE3IoCBJZZle8jZ8PbXJNAWP8WB+WiTZWnQ=";
}; };
patches = [ patches = [

View file

@ -17,13 +17,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "libdeltachat"; pname = "libdeltachat";
version = "1.86.0"; version = "1.87.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "deltachat"; owner = "deltachat";
repo = "deltachat-core-rust"; repo = "deltachat-core-rust";
rev = version; rev = version;
hash = "sha256-VLS93Ffeit2rVmXxYkXcnf8eDA3DC2/wKYZTh56QCk0="; hash = "sha256-iRGLNMGs5WawzcqQb5AQTuD4NCJoBUSHfFUXXvm5+jE=";
}; };
patches = [ patches = [
@ -33,7 +33,7 @@ stdenv.mkDerivation rec {
cargoDeps = rustPlatform.fetchCargoTarball { cargoDeps = rustPlatform.fetchCargoTarball {
inherit src; inherit src;
name = "${pname}-${version}"; name = "${pname}-${version}";
hash = "sha256-4rpoDQ3o0WdWg/TmazTI+J0hL/MxwHcNMXWMq7GE7Tk="; hash = "sha256-bmtm+cvjBIlZVRq/vjHd5Sl4FXJHP3cPp4+bWY5SKus=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View file

@ -7,13 +7,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "rapidfuzz-cpp"; pname = "rapidfuzz-cpp";
version = "1.0.3"; version = "1.0.4";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "maxbachmann"; owner = "maxbachmann";
repo = "rapidfuzz-cpp"; repo = "rapidfuzz-cpp";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-8SJU+ERFRGkbGBmGJa5Ypetc3LPeytg5pR4S29RkvR8="; hash = "sha256-ocR88dgRo7dF7scATv8kPYmcK3R6a8DcoJfNHq1hZnM=";
}; };
patches = [ patches = [

View file

@ -350,7 +350,7 @@ final: prev: {
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/prisma/-/prisma-${version}.tgz"; url = "https://registry.npmjs.org/prisma/-/prisma-${version}.tgz";
sha512 = "sha512-MLO3JUGJpe5+EVisA/i47+zlyF8Ug0ivvGYG4B9oSXQcPiUHB1ccmnpxqR7o0Up5SQgmxkBiEU//HgR6UuIKOw=="; sha512 = "sha512-Dtsar03XpCBkcEb2ooGWO/WcgblDTLzGhPcustbehwlFXuTMliMDRzXsfygsgYwQoZnAUKRd1rhpvBNEUziOVw==";
}; };
postInstall = with pkgs; '' postInstall = with pkgs; ''
wrapProgram "$out/bin/prisma" \ wrapProgram "$out/bin/prisma" \

View file

@ -19,14 +19,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "boxx"; pname = "boxx";
version = "0.10.4"; version = "0.10.5";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-HnEXvge1R2GAcrP+2yEecwIlT95/oKrWiK+TB9+CRxs="; hash = "sha256-6qO/aPegHk+1PAu8qzIkC3fULh2WjgJcqNui+XEaLQw=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View file

@ -1,5 +1,6 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchpatch
, duckdb , duckdb
, google-cloud-storage , google-cloud-storage
, mypy , mypy
@ -13,10 +14,12 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "duckdb"; pname = "duckdb";
inherit (duckdb) version src; inherit (duckdb) version src patches;
format = "setuptools"; format = "setuptools";
sourceRoot = "source/tools/pythonpkg"; preConfigure = ''
cd tools/pythonpkg
'';
SETUPTOOLS_SCM_PRETEND_VERSION = version; SETUPTOOLS_SCM_PRETEND_VERSION = version;
@ -45,6 +48,6 @@ buildPythonPackage rec {
description = "Python binding for DuckDB"; description = "Python binding for DuckDB";
homepage = "https://duckdb.org/"; homepage = "https://duckdb.org/";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ costrouc ]; maintainers = with maintainers; [ costrouc cpcloud ];
}; };
} }

View file

@ -14,7 +14,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "env-canada"; pname = "env-canada";
version = "0.5.23"; version = "0.5.24";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.8"; disabled = pythonOlder "3.8";
@ -23,7 +23,7 @@ buildPythonPackage rec {
owner = "michaeldavie"; owner = "michaeldavie";
repo = "env_canada"; repo = "env_canada";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
sha256 = "sha256-ksQQ3jujfu2XR0ZaR5fc8GNYDL8Tos+8U4OHS1mMyRY="; sha256 = "sha256-R6X4TY0yrfSj30FXHmHHK6QBHAT3pb+UXjjZ3SW1SP8=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View file

@ -15,7 +15,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "jarowinkler"; pname = "jarowinkler";
version = "1.0.4"; version = "1.0.5";
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.6";
@ -25,7 +25,7 @@ buildPythonPackage rec {
owner = "maxbachmann"; owner = "maxbachmann";
repo = "JaroWinkler"; repo = "JaroWinkler";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-2bhKl7l3ByfrtkXnXifQd/AhWVFGSMzULkzJftd1mVE="; hash = "sha256-5LWJeNfQ0d8wiqjIha+CCcmBf+GU36VTYFqRlg4+6qA=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View file

@ -20,7 +20,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "rapidfuzz"; pname = "rapidfuzz";
version = "2.0.15"; version = "2.1.0";
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.6";
@ -30,7 +30,7 @@ buildPythonPackage rec {
owner = "maxbachmann"; owner = "maxbachmann";
repo = "RapidFuzz"; repo = "RapidFuzz";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-wn77gA6UCgsdDf3FZgjrA5gSWpWJg3YoUhx88X7aVcM="; hash = "sha256-bvuT31qxYj/agEtPIJf/6YAOe6CGpEmaKpfNocw4wYQ=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View file

@ -7,28 +7,41 @@
, requests , requests
, packaging , packaging
, dparse , dparse
, ruamel-yaml
, pytestCheckHook , pytestCheckHook
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "safety"; pname = "safety";
version = "1.10.3"; version = "2.0.0";
disabled = pythonOlder "3.5"; disabled = pythonOlder "3.6";
format = "setuptools"; format = "pyproject";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "sha256-MOOU0CogrEm39lKS0Z04+pJ6j5WCzf060a27xmxkGtU="; sha256 = "d739d00a9e4203cfaba34540c822a73ca1d327159ed7776b3dce09391f81c35d";
}; };
postPatch = ''
substituteInPlace safety/safety.py \
--replace "telemetry=True" "telemetry=False"
substituteInPlace safety/cli.py \
--replace "telemetry', default=True" "telemetry', default=False"
'';
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [ propagatedBuildInputs = [
setuptools setuptools
click click
requests requests
packaging packaging
dparse dparse
ruamel-yaml
]; ];
checkInputs = [ checkInputs = [
@ -37,6 +50,7 @@ buildPythonPackage rec {
# Disable tests depending on online services # Disable tests depending on online services
disabledTests = [ disabledTests = [
"test_announcements_if_is_not_tty"
"test_check_live" "test_check_live"
"test_check_live_cached" "test_check_live_cached"
]; ];
@ -48,6 +62,7 @@ buildPythonPackage rec {
meta = with lib; { meta = with lib; {
description = "Checks installed dependencies for known vulnerabilities"; description = "Checks installed dependencies for known vulnerabilities";
homepage = "https://github.com/pyupio/safety"; homepage = "https://github.com/pyupio/safety";
changelog = "https://github.com/pyupio/safety/blob/${version}/CHANGELOG.md";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ thomasdesr dotlambda ]; maintainers = with maintainers; [ thomasdesr dotlambda ];
}; };

View file

@ -1,20 +1,29 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, isPy27
, fetchFromGitHub , fetchFromGitHub
, selenium , selenium
, cssselect
, django
, flask , flask
, lxml
, pytestCheckHook , pytestCheckHook
, zope-testbrowser
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "splinter"; pname = "splinter";
version = "0.17.0"; version = "0.18.0";
disabled = isPy27;
format = "setuptools";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "cobrateam"; owner = "cobrateam";
repo = "splinter"; repo = "splinter";
rev = version; rev = version;
hash = "sha256-7QhFz/qBh2ECyeyvjCyqOYy/YrUK7KVX13VC/gem5BQ="; hash = "sha256-kJ5S/fBesaxTbxCQ0yBR30+CfCV6U5jgbfDZA7eF6ac=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -22,27 +31,35 @@ buildPythonPackage rec {
]; ];
checkInputs = [ checkInputs = [
cssselect
django
flask flask
lxml
pytestCheckHook pytestCheckHook
zope-testbrowser
]; ];
disabledTests = [ disabledTests = [
# driver is present and fails with a different error during loading # driver is present and fails with a different error during loading
"test_browser_local_driver_not_present"
"test_local_driver_not_present" "test_local_driver_not_present"
]; ];
disabledTestPaths = [ disabledTestPaths = [
"samples" "samples"
# TODO: requires optional dependencies which should be defined in passthru.optional-dependencies.$name # We run neither Chromium nor Firefox nor ...
"tests/test_djangoclient.py" "tests/test_async_finder.py"
"tests/test_flaskclient.py" "tests/test_html_snapshot.py"
"tests/test_iframes.py"
"tests/test_mouse_interaction.py"
"tests/test_popups.py" "tests/test_popups.py"
"tests/test_screenshot.py"
"tests/test_shadow_root.py"
"tests/test_webdriver.py" "tests/test_webdriver.py"
"tests/test_webdriver_chrome.py" "tests/test_webdriver_chrome.py"
"tests/test_webdriver_edge_chromium.py" "tests/test_webdriver_edge_chromium.py"
"tests/test_webdriver_firefox.py" "tests/test_webdriver_firefox.py"
"tests/test_webdriver_remote.py" "tests/test_webdriver_remote.py"
"tests/test_zopetestbrowser.py"
]; ];
pythonImportsCheck = [ "splinter" ]; pythonImportsCheck = [ "splinter" ];

View file

@ -7,14 +7,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "stripe"; pname = "stripe";
version = "3.4.0"; version = "3.5.0";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-XcN979nWXgUwItq8tlnnNisFinr3QEfuWFGKKQenYfI="; hash = "sha256-CPdMrmYZ1KfXj4Fi/3K8PpyRP1PsluzV3cfYI8Lnnd0=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View file

@ -28,11 +28,11 @@
buildPythonApplication rec { buildPythonApplication rec {
pname = "tempest"; pname = "tempest";
version = "31.0.0"; version = "31.1.0";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "sha256-g/fpVDGa2TFAzMVvC/370bStPJvhWSZ2tkbmP54nzc4="; sha256 = "sha256-EaDFnIxaAGBDViAVzMjZev3jXmb3NIlMlcg4BiwoAq4=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View file

@ -7,7 +7,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "ua-parser"; pname = "ua-parser";
version = "0.10.0"; version = "0.15.0";
format = "setuptools"; format = "setuptools";
@ -16,13 +16,18 @@ buildPythonPackage rec {
repo = "uap-python"; repo = "uap-python";
rev = version; rev = version;
fetchSubmodules = true; fetchSubmodules = true;
hash = "sha256-kaTAfUtHj2vH7i7eIU61efuB4/XVHoc/z6o3ny+sgrQ="; hash = "sha256-CwwVaToy5se5dZ4m1EHn8qgvprK82/Sgpos4lHedIUc=";
}; };
patches = [ patches = [
./dont-fetch-submodule.patch ./dont-fetch-submodule.patch
]; ];
postPatch = ''
substituteInPlace setup.py \
--replace "pyyaml ~= 5.4.0" pyyaml
'';
nativeBuildInputs = [ nativeBuildInputs = [
pyyaml pyyaml
]; ];

View file

@ -0,0 +1,40 @@
{ lib
, buildPythonPackage
, fetchPypi
, setuptools
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "zope-cachedescriptors";
version = "4.3.1";
format = "setuptools";
src = fetchPypi {
pname = "zope.cachedescriptors";
inherit version;
sha256 = "1f4d1a702f2ea3d177a1ffb404235551bb85560100ec88e6c98691734b1d194a";
};
propagatedBuildInputs = [
setuptools
];
checkInputs = [
pytestCheckHook
];
pytestFlagsArray = [
"src/zope/cachedescriptors/tests.py"
];
pythonImportsCheck = [ "zope.cachedescriptors" ];
meta = {
description = "Method and property caching decorators";
homepage = "https://github.com/zopefoundation/zope.cachedescriptors";
license = lib.licenses.zpl21;
maintainers = with lib.maintainers; [ dotlambda ];
};
}

View file

@ -0,0 +1,75 @@
{ lib
, buildPythonPackage
, fetchPypi
, setuptools
, zope_interface
, zope_schema
, zope-cachedescriptors
, pytz
, webtest
, beautifulsoup4
, soupsieve
, wsgiproxy2
, six
, mock
, zope_testing
, zope_testrunner
, python
}:
buildPythonPackage rec {
pname = "zope-testbrowser";
version = "5.6.1";
format = "setuptools";
src = fetchPypi {
pname = "zope.testbrowser";
inherit version;
sha256 = "035bf63d9f7244e885786c3327448a7d9fff521dba596429698b8474961b05e7";
};
postPatch = ''
# remove test that requires network access
substituteInPlace src/zope/testbrowser/tests/test_doctests.py \
--replace "suite.addTests(wire)" ""
'';
propagatedBuildInputs = [
setuptools
zope_interface
zope_schema
zope-cachedescriptors
pytz
webtest
beautifulsoup4
soupsieve
wsgiproxy2
six
];
checkInputs = [
mock
zope_testing
zope_testrunner
];
checkPhase = ''
${python.interpreter} -m zope.testrunner --test-path=src
'';
pythonImportsCheck = [
"zope.testbrowser"
"zope.testbrowser.browser"
"zope.testbrowser.interfaces"
"zope.testbrowser.testing"
"zope.testbrowser.wsgi"
];
meta = {
description = "Programmable browser for functional black-box tests";
homepage = "https://github.com/zopefoundation/zope.testbrowser";
license = lib.licenses.zpl21;
maintainers = with lib.maintainers; [ dotlambda ];
};
}

View file

@ -11,13 +11,13 @@
mkDerivation rec { mkDerivation rec {
pname = "cutter"; pname = "cutter";
version = "2.0.5"; version = "2.1.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "rizinorg"; owner = "rizinorg";
repo = "cutter"; repo = "cutter";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-ljws9S7ZxZK/Ou8jgGSoR++vtzFTEBywHMhCC/UOLEs="; sha256 = "sha256-JfJQuEUeLXCjzm4d0ZNHRVazF0Bk6fVAsNvBb+okoXs=";
fetchSubmodules = true; fetchSubmodules = true;
}; };

View file

@ -23,11 +23,11 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "rizin"; pname = "rizin";
version = "0.3.4"; version = "0.4.0";
src = fetchurl { src = fetchurl {
url = "https://github.com/rizinorg/rizin/releases/download/v${version}/rizin-src-v${version}.tar.xz"; url = "https://github.com/rizinorg/rizin/releases/download/v${version}/rizin-src-v${version}.tar.xz";
sha256 = "sha256-7qSbOWOHwJ0ZcFqrAqYXzbFWgvymfxAf8rJ+75SnEOk="; sha256 = "sha256-CeuoaE/oE89Cpxa1mobT1lr84BPX6LJ14UXoSdM2a1o=";
}; };
mesonFlags = [ mesonFlags = [

View file

@ -48,6 +48,7 @@ python3.pkgs.buildPythonApplication rec {
substituteInPlace requirements/base.txt \ substituteInPlace requirements/base.txt \
--replace "aws_lambda_builders==" "aws-lambda-builders #" \ --replace "aws_lambda_builders==" "aws-lambda-builders #" \
--replace "click~=7.1" "click~=8.1" \ --replace "click~=7.1" "click~=8.1" \
--replace "cookiecutter~=1.7.2" "cookiecutter>=1.7.2" \
--replace "dateparser~=1.0" "dateparser>=0.7" \ --replace "dateparser~=1.0" "dateparser>=0.7" \
--replace "docker~=4.2.0" "docker>=4.2.0" \ --replace "docker~=4.2.0" "docker>=4.2.0" \
--replace "Flask~=1.1.2" "Flask~=2.0" \ --replace "Flask~=1.1.2" "Flask~=2.0" \

View file

@ -13,19 +13,19 @@
# function correctly. # function correctly.
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "prisma-engines"; pname = "prisma-engines";
version = "3.15.1"; version = "4.0.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "prisma"; owner = "prisma";
repo = "prisma-engines"; repo = "prisma-engines";
rev = version; rev = version;
sha256 = "sha256-p636B8NUu/XncHLTQTiAYfvBaMbiopLVRwGrFf45BW8="; sha256 = "sha256-TlKjAfpygQq2c77d6ZoMIBtWC0bAiMiKygFkh5GrBBc=";
}; };
# Use system openssl. # Use system openssl.
OPENSSL_NO_VENDOR = 1; OPENSSL_NO_VENDOR = 1;
cargoSha256 = "sha256-miDdP4kokRwhR9tif6llI1PI+F4O6tC4pAWucRRyLNQ="; cargoSha256 = "sha256-//Kis4lDi3SxeptCCnLi/GWPj+Kyay2pQbILYnlEkXE=";
nativeBuildInputs = [ pkg-config ]; nativeBuildInputs = [ pkg-config ];

View file

@ -1,24 +0,0 @@
{ lib, buildGoPackage, fetchFromGitHub }:
buildGoPackage rec {
pname = "go-langserver";
version = "2.0.0";
goPackagePath = "github.com/sourcegraph/go-langserver";
subPackages = [ "." ];
src = fetchFromGitHub {
rev = "v${version}";
owner = "sourcegraph";
repo = "go-langserver";
sha256 = "1wv7xf81s3qi8xydxjkkp8vacdzrq8sbj04346fz73nsn85z0sgp";
};
meta = with lib; {
description = "A Go language server protocol server";
homepage = "https://github.com/sourcegraph/go-langserver";
license = licenses.mit;
maintainers = with maintainers; [ johnchildren ];
platforms = platforms.unix;
};
}

View file

@ -1,34 +0,0 @@
{ lib
, buildGoModule
, fetchFromGitHub
, gosca
, testers
}:
buildGoModule rec {
pname = "gosca";
version = "0.4.2";
src = fetchFromGitHub {
owner = "TARI0510";
repo = pname;
rev = "v${version}";
hash = "sha256-mjQSYkcLl9X3IPv0liX26hvystsQOSVXvovKp4VekAY=";
};
vendorSha256 = "sha256-0EqMW4aNYPZEuk+mxmLTuenGdam56YneEad8lodVeBo=";
passthru.tests.version = testers.testVersion {
package = gosca;
command = "gosca -v";
version = "GoSCA_v${version}";
};
meta = with lib; {
description = "Golang dependence security checker";
homepage = "https://github.com/TARI0510/gosca";
changelog = "https://github.com/TARI0510/gosca/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View file

@ -0,0 +1,53 @@
{ buildGoModule, fetchFromGitHub, lib }:
buildGoModule rec {
pname = "revive";
version = "1.2.1";
src = fetchFromGitHub {
owner = "mgechev";
repo = pname;
rev = "v${version}";
sha256 = "sha256-xZakVuw+QKzFh6wsnZbltLEEwyb9WcMvVWEzKnS9aWc=";
# populate values that require us to use git. By doing this in postFetch we
# can delete .git afterwards and maintain better reproducibility of the src.
leaveDotGit = true;
postFetch = ''
date -u -d "@$(git -C $out log -1 --pretty=%ct)" "+%Y-%m-%d %H:%M UTC" > $out/DATE
git -C $out rev-parse HEAD > $out/COMMIT
rm -rf $out/.git
'';
};
vendorSha256 = "sha256-Fpl5i+qMvJ/CDh8X0gps9C/BxF7/Uvln+3DpVOXE0WQ=";
ldflags = [
"-s"
"-w"
"-X github.com/mgechev/revive/cli.version=${version}"
"-X github.com/mgechev/revive/cli.builtBy=nix"
];
# ldflags based on metadata from git and source
preBuild = ''
ldflags+=" -X github.com/mgechev/revive/cli.commit=$(cat COMMIT)"
ldflags+=" -X 'github.com/mgechev/revive/cli.date=$(cat DATE)'"
'';
# The following tests fail when built by nix:
#
# $ nix log /nix/store/build-revive.1.2.1.drv | grep FAIL
#
# --- FAIL: TestAll (0.01s)
# --- FAIL: TestTimeEqual (0.00s)
# --- FAIL: TestTimeNaming (0.00s)
# --- FAIL: TestUnhandledError (0.00s)
# --- FAIL: TestUnhandledErrorWithBlacklist (0.00s)
doCheck = false;
meta = with lib; {
description = "Fast, configurable, extensible, flexible, and beautiful linter for Go";
homepage = "https://revive.run";
license = licenses.mit;
maintainers = with maintainers; [ maaslalani ];
};
}

View file

@ -1,4 +1,4 @@
{ coreutils, db, fetchurl, openssl, pcre, perl, pkg-config, lib, stdenv { coreutils, db, fetchurl, openssl, pcre2, perl, pkg-config, lib, stdenv
, enableLDAP ? false, openldap , enableLDAP ? false, openldap
, enableMySQL ? false, libmysqlclient, zlib , enableMySQL ? false, libmysqlclient, zlib
, enableAuthDovecot ? false, dovecot , enableAuthDovecot ? false, dovecot
@ -10,15 +10,15 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "exim"; pname = "exim";
version = "4.95"; version = "4.96";
src = fetchurl { src = fetchurl {
url = "https://ftp.exim.org/pub/exim/exim4/${pname}-${version}.tar.xz"; url = "https://ftp.exim.org/pub/exim/exim4/${pname}-${version}.tar.xz";
sha256 = "0rzi0kc3qiiaw8vnv5qrpwdvvh4sr5chns026xy99spjzx9vd76c"; hash = "sha256-KZpWknsus0d9qv08W9oCvGflxOWJinrq8nQIdSeM8aM=";
}; };
nativeBuildInputs = [ pkg-config ]; nativeBuildInputs = [ pkg-config ];
buildInputs = [ coreutils db openssl perl pcre ] buildInputs = [ coreutils db openssl perl pcre2 ]
++ lib.optional enableLDAP openldap ++ lib.optional enableLDAP openldap
++ lib.optionals enableMySQL [ libmysqlclient zlib ] ++ lib.optionals enableMySQL [ libmysqlclient zlib ]
++ lib.optional enableAuthDovecot dovecot ++ lib.optional enableAuthDovecot dovecot

View file

@ -2,21 +2,21 @@
python3Packages.buildPythonApplication rec { python3Packages.buildPythonApplication rec {
pname = "audible-cli"; pname = "audible-cli";
version = "0.1.3"; version = "0.2.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "mkb79"; owner = "mkb79";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "0i71vwq2bhndndb0mlx21bc5jkv75cr60max5iaxk23agg3xpgwv"; sha256 = "1dalil8aaywdshf48d45ap4mgzxbyzhklr8nga7qhpwi22w84cgz";
}; };
propagatedBuildInputs = with python3Packages; [ aiofiles audible click httpx pillow tabulate toml tqdm packaging setuptools ]; propagatedBuildInputs = with python3Packages; [ aiofiles audible click httpx pillow tabulate toml tqdm packaging setuptools questionary ];
postPatch = '' postPatch = ''
substituteInPlace setup.py \ substituteInPlace setup.py \
--replace "httpx==0.20.*" "httpx" \ --replace "httpx>=0.20.0,<0.24.0" "httpx" \
--replace "audible==0.7.2" "audible" --replace "audible>=0.8.2" "audible"
''; '';
meta = with lib; { meta = with lib; {

View file

@ -1,34 +1,37 @@
{ lib, stdenv, fetchFromGitHub, substituteAll, perl, file, ncurses, bash }: { lib, stdenv, fetchFromGitHub, substituteAll, makeWrapper, perl, procps, file, gnused, bash }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "lesspipe"; pname = "lesspipe";
version = "1.85"; version = "2.05";
nativeBuildInputs = [ perl ];
buildInputs = [ perl bash ];
strictDeps = true;
preConfigure = ''
patchShebangs --build configure
'';
configureFlags = [ "--shell=${bash}/bin/bash" "--yes" ];
configurePlatforms = [];
dontBuild = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "wofr06"; owner = "wofr06";
repo = "lesspipe"; repo = "lesspipe";
rev = version; rev = "v${version}";
sha256 = "1v1jdkdq1phc93gdr6mjlk98gipxrkkq4bj8kks0kfdvjgdwkdaa"; sha256 = "sha256-mRgOndoDpyMnlj/BIoqwpZzuth4eA6yoB2VFZOigRw4=";
}; };
patches = [ nativeBuildInputs = [ perl makeWrapper ];
(substituteAll { buildInputs = [ perl bash ];
src = ./fix-paths.patch; strictDeps = true;
file = "${file}/bin/file";
tput = "${ncurses}/bin/tput"; postPatch = ''
}) patchShebangs --build configure
./override-shell-detection.patch substituteInPlace configure --replace '/etc/bash_completion.d' '/share/bash-completion/completions'
]; '';
configureFlags = [ "--shell=${bash}/bin/bash" "--prefix=/" ];
configurePlatforms = [ ];
dontBuild = true;
installFlags = [ "DESTDIR=$(out)" ];
postInstall = ''
for f in lesspipe.sh lesscomplete; do
wrapProgram "$out/bin/$f" --prefix-each PATH : "${lib.makeBinPath [ file gnused procps ]}"
done
'';
meta = with lib; { meta = with lib; {
description = "A preprocessor for less"; description = "A preprocessor for less";

View file

@ -1,22 +0,0 @@
--- a/lesspipe.sh.in
+++ b/lesspipe.sh.in
@@ -48,8 +48,8 @@ if [[ "$LESS_ADVANCED_PREPROCESSOR" = '' ]]; then
fi
filecmd() {
- file -L -s "$@"
- file -L -s -i "$@" 2> /dev/null | sed -n 's/.*charset=/;/p' | tr a-z A-Z
+ @file@ -L -s "$@"
+ @file@ -L -s -i "$@" 2> /dev/null | sed -n 's/.*charset=/;/p' | tr a-z A-Z
}
sep=: # file name separator
@@ -546,7 +546,7 @@ isfinal() {
# color requires -r or -R when calling less
typeset COLOR
- if [[ $(tput colors) -ge 8 && ("$LESS" = *-*r* || "$LESS" = *-*R*) ]]; then
+ if [[ $(@tput@ colors) -ge 8 && ("$LESS" = *-*r* || "$LESS" = *-*R*) ]]; then
COLOR="--color=always"
fi

View file

@ -1,12 +0,0 @@
--- a/configure
+++ b/configure
@@ -101,7 +101,8 @@
open OUT, ">lesspipe.sh.tmp";
my $in = 1;
my $anyin;
-my $shell = check_shell_vers();
+my $shell = $opt_shell;
+print OUT "#!$shell\n";
# ask if syntax highlighting should be included
$ifsyntax = '';
if ($opt_yes) {

View file

@ -2,7 +2,6 @@
, stdenv , stdenv
, fetchFromGitHub , fetchFromGitHub
, makeWrapper , makeWrapper
, chafa
, coreutils , coreutils
, curl , curl
, dmenu , dmenu
@ -16,13 +15,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "ytfzf"; pname = "ytfzf";
version = "2.3"; version = "2.4.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "pystardust"; owner = "pystardust";
repo = "ytfzf"; repo = "ytfzf";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-zfoICi1VChmrRHZ3dSHGTcXkVf/zirQTycFz98xj+QY="; hash = "sha256-IQ6YIHcFriqLAGoB8QhvWiYkI7Aq4RL12TL3c/N+YqE=";
}; };
nativeBuildInputs = [ makeWrapper ]; nativeBuildInputs = [ makeWrapper ];
@ -39,7 +38,7 @@ stdenv.mkDerivation rec {
postInstall = '' postInstall = ''
wrapProgram "$out/bin/ytfzf" \ wrapProgram "$out/bin/ytfzf" \
--prefix PATH : ${lib.makeBinPath [ --prefix PATH : ${lib.makeBinPath [
chafa coreutils curl dmenu fzf gnused jq mpv ueberzug yt-dlp coreutils curl dmenu fzf gnused jq mpv ueberzug yt-dlp
]} \ ]} \
--set YTFZF_SYSTEM_ADDON_DIR "$out/share/ytfzf/addons" --set YTFZF_SYSTEM_ADDON_DIR "$out/share/ytfzf/addons"
''; '';

View file

@ -530,8 +530,10 @@ mapAliases ({
google-gflags = gflags; # Added 2019-07-25 google-gflags = gflags; # Added 2019-07-25
google-musicmanager = throw "google-musicmanager has been removed because Google Play Music was discontinued"; # Added 2021-03-07 google-musicmanager = throw "google-musicmanager has been removed because Google Play Music was discontinued"; # Added 2021-03-07
google-music-scripts = throw "google-music-scripts has been removed because Google Play Music was discontinued"; # Added 2021-03-07 google-music-scripts = throw "google-music-scripts has been removed because Google Play Music was discontinued"; # Added 2021-03-07
gosca = throw "gosca has been dropped due to the lack of maintanence from upstream since 2018"; # Added 2022-06-30
gotags = throw "gotags has been dropped due to the lack of maintenance from upstream since 2018"; # Added 2022-06-03 gotags = throw "gotags has been dropped due to the lack of maintenance from upstream since 2018"; # Added 2022-06-03
google-play-music-desktop-player = throw "GPMDP shows a black screen, upstream homepage is dead, use 'ytmdesktop' instead"; # Added 2022-06-16 google-play-music-desktop-player = throw "GPMDP shows a black screen, upstream homepage is dead, use 'ytmdesktop' instead"; # Added 2022-06-16
go-langserver = throw "go-langserver has been replaced by gopls"; # Added 2022-06-30
go-mk = throw "go-mk has been dropped due to the lack of maintanence from upstream since 2015"; # Added 2022-06-02 go-mk = throw "go-mk has been dropped due to the lack of maintanence from upstream since 2015"; # Added 2022-06-02
go-pup = throw "'go-pup' has been renamed to/replaced by 'pup'"; # Converted to throw 2022-02-22 go-pup = throw "'go-pup' has been renamed to/replaced by 'pup'"; # Converted to throw 2022-02-22
go-repo-root = throw "go-repo-root has been dropped due to the lack of maintanence from upstream since 2014"; # Added 2022-06-02 go-repo-root = throw "go-repo-root has been dropped due to the lack of maintanence from upstream since 2014"; # Added 2022-06-02

View file

@ -2584,8 +2584,6 @@ with pkgs;
buildGoModule = buildGo118Module; buildGoModule = buildGo118Module;
}; };
gosca = callPackage ../development/tools/gosca { };
gosh = callPackage ../tools/security/gosh { }; gosh = callPackage ../tools/security/gosh { };
gospider = callPackage ../tools/security/gospider { }; gospider = callPackage ../tools/security/gospider { };
@ -16391,6 +16389,10 @@ with pkgs;
reviewdog = callPackage ../development/tools/misc/reviewdog { }; reviewdog = callPackage ../development/tools/misc/reviewdog { };
revive = callPackage ../development/tools/revive {
buildGoModule = buildGo118Module;
};
rman = callPackage ../development/tools/misc/rman { }; rman = callPackage ../development/tools/misc/rman { };
rnix-lsp = callPackage ../development/tools/rnix-lsp { }; rnix-lsp = callPackage ../development/tools/rnix-lsp { };
@ -23890,8 +23892,6 @@ with pkgs;
gomodifytags = callPackage ../development/tools/gomodifytags { }; gomodifytags = callPackage ../development/tools/gomodifytags { };
go-langserver = callPackage ../development/tools/go-langserver { };
gopls = callPackage ../development/tools/gopls { gopls = callPackage ../development/tools/gopls {
buildGoModule = buildGo118Module; buildGoModule = buildGo118Module;
}; };

View file

@ -11637,6 +11637,8 @@ in {
zope_broken = callPackage ../development/python-modules/zope_broken { }; zope_broken = callPackage ../development/python-modules/zope_broken { };
zope-cachedescriptors = callPackage ../development/python-modules/zope-cachedescriptors { };
zope_component = callPackage ../development/python-modules/zope_component { }; zope_component = callPackage ../development/python-modules/zope_component { };
zope_configuration = callPackage ../development/python-modules/zope_configuration { }; zope_configuration = callPackage ../development/python-modules/zope_configuration { };
@ -11673,6 +11675,8 @@ in {
zope_size = callPackage ../development/python-modules/zope_size { }; zope_size = callPackage ../development/python-modules/zope_size { };
zope-testbrowser = callPackage ../development/python-modules/zope-testbrowser { };
zope_testing = callPackage ../development/python-modules/zope_testing { }; zope_testing = callPackage ../development/python-modules/zope_testing { };
zope_testrunner = callPackage ../development/python-modules/zope_testrunner { }; zope_testrunner = callPackage ../development/python-modules/zope_testrunner { };