Merge master into staging-next

This commit is contained in:
github-actions[bot] 2022-08-01 12:01:37 +00:00 committed by GitHub
commit c8b4067ae8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
37 changed files with 141 additions and 99 deletions

View file

@ -180,18 +180,27 @@ See `node2nix` [docs](https://github.com/svanderburg/node2nix) for more info.
#### Preparation {#javascript-yarn2nix-preparation} #### Preparation {#javascript-yarn2nix-preparation}
You will need at least a yarn.lock and yarn.nix file. You will need at least a `yarn.lock` file. If upstream does not have one you need to generate it and reference it in your package definition.
- Generate a yarn.lock in upstream if it is not already there. If the downloaded files contain the `package.json` and `yarn.lock` files they can be used like this:
- `yarn2nix > yarn.nix` will generate the dependencies in a Nix format.
```nix
offlineCache = fetchYarnDeps {
yarnLock = src + "/yarn.lock";
sha256 = "....";
};
```
#### mkYarnPackage {#javascript-yarn2nix-mkYarnPackage} #### mkYarnPackage {#javascript-yarn2nix-mkYarnPackage}
This will by default try to generate a binary. For package only generating static assets (Svelte, Vue, React...), you will need to explicitly override the build step with your instructions. It's important to use the `--offline` flag. For example if you script is `"build": "something"` in package.json use: `mkYarnPackage` will by default try to generate a binary. For package only generating static assets (Svelte, Vue, React, WebPack, ...), you will need to explicitly override the build step with your instructions.
It's important to use the `--offline` flag. For example if you script is `"build": "something"` in `package.json` use:
```nix ```nix
buildPhase = '' buildPhase = ''
yarn build --offline export HOME=$(mktemp -d)
yarn --offline build
''; '';
``` ```
@ -201,15 +210,27 @@ The dist phase is also trying to build a binary, the only way to override it is
distPhase = "true"; distPhase = "true";
``` ```
The configure phase can sometimes fail because it tries to be too clever. One common override is: The configure phase can sometimes fail because it makes many assumptions which may not always apply. One common override is:
```nix ```nix
configurePhase = "ln -s $node_modules node_modules"; configurePhase = ''
ln -s $node_modules node_modules
'';
```
or if you need a writeable node_modules directory:
```nix
configurePhase = ''
cp -r $node_modules node_modules
chmod +w node_modules
'';
``` ```
#### mkYarnModules {#javascript-yarn2nix-mkYarnModules} #### mkYarnModules {#javascript-yarn2nix-mkYarnModules}
This will generate a derivation including the node_modules. If you have to build a derivation for an integrated web framework (rails, phoenix..), this is probably the easiest way. [Plausible](https://github.com/NixOS/nixpkgs/blob/master/pkgs/servers/web-apps/plausible/default.nix#L39) offers a good example of how to do this. This will generate a derivation including the `node_modules` directory.
If you have to build a derivation for an integrated web framework (rails, phoenix..), this is probably the easiest way.
#### Overriding dependency behavior #### Overriding dependency behavior

View file

@ -7291,6 +7291,13 @@
githubId = 4158274; githubId = 4158274;
name = "Michiel Leenaars"; name = "Michiel Leenaars";
}; };
logo = {
email = "logo4poop@protonmail.com";
matrix = "@logo4poop:matrix.org";
github = "logo4poop";
githubId = 24994565;
name = "Isaac Silverstein";
};
lom = { lom = {
email = "legendofmiracles@protonmail.com"; email = "legendofmiracles@protonmail.com";
matrix = "@legendofmiracles:matrix.org"; matrix = "@legendofmiracles:matrix.org";

View file

@ -4,11 +4,11 @@
mkDerivation rec { mkDerivation rec {
pname = "okteta"; pname = "okteta";
version = "0.26.7"; version = "0.26.9";
src = fetchurl { src = fetchurl {
url = "mirror://kde/stable/okteta/${version}/src/${pname}-${version}.tar.xz"; url = "mirror://kde/stable/okteta/${version}/src/${pname}-${version}.tar.xz";
sha256 = "sha256-8SO1VpDWz19UfppdtziiZymoLnvQLMAAIjjOTZ/VMOM="; sha256 = "sha256-FoVMTU6Ug4IZrjEVpCujhf2lyH3GyYZayQ03dPjQX/s=";
}; };
nativeBuildInputs = [ qtscript extra-cmake-modules kdoctools ]; nativeBuildInputs = [ qtscript extra-cmake-modules kdoctools ];

View file

@ -2,10 +2,10 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "getdp"; pname = "getdp";
version = "3.4.0"; version = "3.5.0";
src = fetchurl { src = fetchurl {
url = "http://getdp.info/src/getdp-${version}-source.tgz"; url = "http://getdp.info/src/getdp-${version}-source.tgz";
sha256 = "sha256-d5YxJgtMf94PD6EHvIXpPBFPKC+skI/2v1K5Sad51hA="; sha256 = "sha256-C/dsSe+puIQBpFfBL3qr2XWXrUnvYy0/uTCKqOpDe9w=";
}; };
inherit (petsc) mpiSupport; inherit (petsc) mpiSupport;

View file

@ -47,13 +47,13 @@ let
in in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "mkvtoolnix"; pname = "mkvtoolnix";
version = "68.0.0"; version = "69.0.0";
src = fetchFromGitLab { src = fetchFromGitLab {
owner = "mbunkus"; owner = "mbunkus";
repo = "mkvtoolnix"; repo = "mkvtoolnix";
rev = "release-${version}"; rev = "release-${version}";
sha256 = "0m09r0w98dja9y1yp1vq5hdh46lw0k60aa0xfkdy5zlva568cb7c"; sha256 = "sha256-sKm/TjlVFj6Vy6lfy3v7UJoEUXALZZSKO3zoIrYtwrc=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View file

@ -115,7 +115,7 @@ let
description = "Programming language targeting JavaScript, Flash, NekoVM, PHP, C++"; description = "Programming language targeting JavaScript, Flash, NekoVM, PHP, C++";
homepage = "https://haxe.org"; homepage = "https://haxe.org";
license = with licenses; [ gpl2Plus mit ]; # based on upstream opam file license = with licenses; [ gpl2Plus mit ]; # based on upstream opam file
maintainers = [ maintainers.marcweber maintainers.locallycompact ]; maintainers = [ maintainers.marcweber maintainers.locallycompact maintainers.logo ];
platforms = platforms.linux ++ platforms.darwin; platforms = platforms.linux ++ platforms.darwin;
}; };
}; };
@ -147,7 +147,7 @@ in {
sha256 = "0rns6d28qzkbai6yyws08yzbyvxfn848nj0fsji7chdi0y7pzzj0"; sha256 = "0rns6d28qzkbai6yyws08yzbyvxfn848nj0fsji7chdi0y7pzzj0";
}; };
haxe_4_2 = generic { haxe_4_2 = generic {
version = "4.2.1"; version = "4.2.5";
sha256 = "sha256-0j6M21dh8DB1gC/bPYNJrVuDbJyqQbP+61ItO5RBUcA="; sha256 = "sha256-Y0gx6uOQX4OZgg8nK4GJxRR1rKh0S2JUjZQFVQ4cfTs=";
}; };
} }

View file

@ -9,13 +9,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "qtutilities"; pname = "qtutilities";
version = "6.6.0"; version = "6.6.2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "Martchus"; owner = "Martchus";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-ArPTWUQV9h+AK/m4oUIXsGWFO6Fj9IIOKSXCdWGztNM="; sha256 = "sha256-zt/d6V1/6Kqh0ZdJX3dLkj36NHlvlmFSxPPqcNyC6ZM=";
}; };
buildInputs = [ qtbase cpp-utilities ]; buildInputs = [ qtbase cpp-utilities ];

View file

@ -2,8 +2,8 @@
buildPecl { buildPecl {
pname = "event"; pname = "event";
version = "3.0.6"; version = "3.0.8";
sha256 = "sha256-BN43wydPQBCVla29YoPqKSVihSZCkLAIgDZb+CNQecw="; sha256 = "sha256-4+ke3T3BXglpuSVMw2Jq4Hgl45vybWG0mTX2b2A9e2s=";
configureFlags = [ configureFlags = [
"--with-event-libevent-dir=${libevent.dev}" "--with-event-libevent-dir=${libevent.dev}"

View file

@ -14,8 +14,8 @@
buildPecl { buildPecl {
pname = "mongodb"; pname = "mongodb";
version = "1.13.0"; version = "1.14.0";
sha256 = "sha256-IoZbYdJkyQyeqoXZTy9fV+VkFAyth8jCYB+jP4Dv4Ls="; sha256 = "sha256-VXdeaSB6f5xDxiiDIg87xgDT4/Zjr1AAC+cK0+5RgY4=";
nativeBuildInputs = [ pkg-config ]; nativeBuildInputs = [ pkg-config ];
buildInputs = [ buildInputs = [

View file

@ -3,8 +3,8 @@
buildPecl { buildPecl {
pname = "pdo_sqlsrv"; pname = "pdo_sqlsrv";
version = "5.10.0"; version = "5.10.1";
sha256 = "sha256-BEa7i/8egvz9mT69dl0dxWcVo+dURT9Dzo6f6EdlESo="; sha256 = "sha256-x4VBlqI2vINQijRvjG7x35mbwh7rvYOL2wUTIV4GKK0=";
internalDeps = [ php.extensions.pdo ]; internalDeps = [ php.extensions.pdo ];

View file

@ -1,14 +1,14 @@
{ mkDerivation, fetchurl, makeWrapper, lib, php }: { mkDerivation, fetchurl, makeWrapper, lib, php }:
let let
pname = "phing"; pname = "phing";
version = "2.17.2"; version = "2.17.4";
in in
mkDerivation { mkDerivation {
inherit pname version; inherit pname version;
src = fetchurl { src = fetchurl {
url = "https://www.phing.info/get/phing-${version}.phar"; url = "https://www.phing.info/get/phing-${version}.phar";
sha256 = "sha256-KDqJdHIqgtar6ofNG4ENRlpRg9XYFeL5YS7Rclh1+PQ="; sha256 = "sha256-3QZsl5QJkFX5Z4RovMtw2ELCp8Zl4xiZsIBikakJ474=";
}; };
dontUnpack = true; dontUnpack = true;

View file

@ -1,14 +1,14 @@
{ mkDerivation, fetchurl, makeWrapper, lib, php }: { mkDerivation, fetchurl, makeWrapper, lib, php }:
let let
pname = "php-cs-fixer"; pname = "php-cs-fixer";
version = "3.8.0"; version = "3.9.5";
in in
mkDerivation { mkDerivation {
inherit pname version; inherit pname version;
src = fetchurl { src = fetchurl {
url = "https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v${version}/php-cs-fixer.phar"; url = "https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v${version}/php-cs-fixer.phar";
sha256 = "sha256-kOdJ2xuS095xVdPxoz4q/XM0BpyJEy6V/CtkuTN/Chk="; sha256 = "sha256-uD8N/fJAb8lvsFvP/zuw9jwV8ng//xWE+oNuOZ553UU=";
}; };
dontUnpack = true; dontUnpack = true;

View file

@ -1,14 +1,14 @@
{ mkDerivation, fetchurl, makeWrapper, lib, php }: { mkDerivation, fetchurl, makeWrapper, lib, php }:
let let
pname = "phpstan"; pname = "phpstan";
version = "1.5.4"; version = "1.8.2";
in in
mkDerivation { mkDerivation {
inherit pname version; inherit pname version;
src = fetchurl { src = fetchurl {
url = "https://github.com/phpstan/phpstan/releases/download/${version}/phpstan.phar"; url = "https://github.com/phpstan/phpstan/releases/download/${version}/phpstan.phar";
sha256 = "sha256-6dXYrDpQ3E+z8mcZof7GSXOrUMoceuPTHO21Z8l4Wyw="; sha256 = "sha256-NnbEN9dhPUBtgEiKj5mBtW9RnTE9jmx/ZqRdqmuyIog=";
}; };
dontUnpack = true; dontUnpack = true;

View file

@ -3,8 +3,8 @@
buildPecl { buildPecl {
pname = "protobuf"; pname = "protobuf";
version = "3.19.4"; version = "3.21.4";
sha256 = "sha256-ijo+UZz+Hh3F8FUJmcUIbKBLkv4t4CWIrbRUfUp7Zbo="; sha256 = "sha256-vhfoUu63KhndfQTiITtTnaqFVF9OWMCaLf/9PUioKkQ=";
buildInputs = [ pcre2 ]; buildInputs = [ pcre2 ];

View file

@ -1,14 +1,14 @@
{ mkDerivation, fetchurl, makeWrapper, lib, php }: { mkDerivation, fetchurl, makeWrapper, lib, php }:
let let
pname = "psalm"; pname = "psalm";
version = "4.15.0"; version = "4.25.0";
in in
mkDerivation { mkDerivation {
inherit pname version; inherit pname version;
src = fetchurl { src = fetchurl {
url = "https://github.com/vimeo/psalm/releases/download/v${version}/psalm.phar"; url = "https://github.com/vimeo/psalm/releases/download/v${version}/psalm.phar";
sha256 = "jvUNnA5OTmw3h1O1Ur7pUojgU5IRgwq2U/JF/ByO0EA="; sha256 = "sha256-bEv9YzBycN+fs3DeAU/QpuOvsmUFLgrltGEe2KuUM0c=";
}; };
dontUnpack = true; dontUnpack = true;

View file

@ -1,14 +1,14 @@
{ mkDerivation, fetchurl, makeWrapper, lib, php }: { mkDerivation, fetchurl, makeWrapper, lib, php }:
let let
pname = "psysh"; pname = "psysh";
version = "0.11.2"; version = "0.11.8";
in in
mkDerivation { mkDerivation {
inherit pname version; inherit pname version;
src = fetchurl { src = fetchurl {
url = "https://github.com/bobthecow/psysh/releases/download/v${version}/psysh-v${version}.tar.gz"; url = "https://github.com/bobthecow/psysh/releases/download/v${version}/psysh-v${version}.tar.gz";
sha256 = "sha256-u7VTlZw9k7VDWKGK/8fzFw0bjNu6DMGsoQnDedHgCWg="; sha256 = "sha256-VK1e3qQGaN6Kc/5dUaGwrHAqk9yiJCwbW29x6i6nHQ4=";
}; };
dontUnpack = true; dontUnpack = true;

View file

@ -3,8 +3,8 @@
buildPecl { buildPecl {
pname = "rdkafka"; pname = "rdkafka";
version = "6.0.1"; version = "6.0.3";
sha256 = "sha256-ikq+cB5ZPRBCwhB0YQT0sEsVrJjbYzGEju2RrK388ZI="; sha256 = "sha256-Euqrl21JaX4x8WOLR4ietexhrbdYcIlBESsVf47H3Ug=";
buildInputs = [ rdkafka pcre2 ]; buildInputs = [ rdkafka pcre2 ];

View file

@ -3,8 +3,8 @@
buildPecl { buildPecl {
pname = "sqlsrv"; pname = "sqlsrv";
version = "5.10.0"; version = "5.10.1";
sha256 = "sha256-drPwg6Go8QNYHCG6OkbWyiV76uZyjNFYpkpGq1miJrQ="; sha256 = "sha256-XNrttNiihjQ+azuZmS2fy0So+2ndAqpde8IOsupeWdI=";
buildInputs = [ buildInputs = [
unixODBC unixODBC

View file

@ -3,8 +3,8 @@
buildPecl { buildPecl {
pname = "swoole"; pname = "swoole";
version = "4.8.8"; version = "4.8.11";
sha256 = "sha256-SnhDRC7/a7BTHn87c6YCz/R8jI6aES1ibSD6YAl6R+I="; sha256 = "sha256-MH3deQniTI7df2UNfK7v1qkP5JxyGw3j9adAeZBDD2c=";
buildInputs = [ pcre2 ] ++ lib.optionals (!stdenv.isDarwin) [ valgrind ]; buildInputs = [ pcre2 ] ++ lib.optionals (!stdenv.isDarwin) [ valgrind ];

View file

@ -3,8 +3,8 @@
buildPecl { buildPecl {
pname = "xdebug"; pname = "xdebug";
version = "3.1.4"; version = "3.1.5";
sha256 = "sha256-QZWSb59sToAv90m7LKhaxQY2cZpy5TieNy4171I1Bfk="; sha256 = "sha256-VfbvOBJF2gebL8XOHPvLeWEZfQwOBPnZd2E8+aqWmnk=";
doCheck = true; doCheck = true;
checkTarget = "test"; checkTarget = "test";

View file

@ -13,14 +13,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "google-cloud-secret-manager"; pname = "google-cloud-secret-manager";
version = "2.12.0"; version = "2.12.1";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.6";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-vlMh7Ww7ZPHWVUJMDqRO58bmn4nfTi3Gj/sBReHOvtQ="; hash = "sha256-LFEGqNi2KsAdoX2PEyQ8h0t0D3yDBtFMnanjhMwu+Lk=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View file

@ -1,7 +1,6 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, fetchpatch
, fetchurl , fetchurl
, pythonOlder , pythonOlder
, substituteAll , substituteAll
@ -28,7 +27,7 @@
let let
pname = "psycopg"; pname = "psycopg";
version = "3.0.15"; version = "3.0.16";
in in
buildPythonPackage { buildPythonPackage {
@ -41,7 +40,7 @@ buildPythonPackage {
owner = "psycopg"; owner = "psycopg";
repo = pname; repo = pname;
rev = version; rev = version;
hash = "sha256-1Wtp0wDuS6dxa1+u6DXu9fDLU7OtgsCUdbdcO5nhkxU="; hash = "sha256-jKhpmCcDi7FyMSpn51eSukFvmu3yacNovmRYG9jnu3g=";
}; };
outputs = [ outputs = [
@ -62,24 +61,6 @@ buildPythonPackage {
src = ./libpq.patch; src = ./libpq.patch;
libpq = "${postgresql.lib}/lib/libpq.so"; libpq = "${postgresql.lib}/lib/libpq.so";
}) })
# Work around docs build issues
# https://github.com/psycopg/psycopg/issues/337
(fetchpatch {
name = "sphinx-5.0-compat.patch";
url = "https://github.com/psycopg/psycopg/commit/ebff3a8392f002100d1e71d3deb94f27fb8cc0cf.patch";
hash = "sha256-QP9I6/xVJyWj5MQqWqxtmdBlesNUOwpYSMuzogJSnos=";
})
(fetchpatch {
name = "libpq-sqml-env-var.patch";
url = "https://github.com/psycopg/psycopg/commit/adf9cbdc1020abf87ae602fe0eb493c294459a93.patch";
hash = "sha256-HJ2Cx7Vg7PSitDEOqCUF7ehNU8aI+iFT886dk2wHsAI=";
})
(fetchpatch {
name = "avoid-dnspython-import-in-docs.patch";
url = "https://github.com/psycopg/psycopg/commit/3058421503b3fcbcf06382d558aac7b9ca2eaaec.patch";
hash = "sha256-D4vj5STafkQ34HWUyKZ3A9w9bY8holifPn3lsBjfVZA=";
})
]; ];
# only move to sourceRoot after patching, makes patching easier # only move to sourceRoot after patching, makes patching easier

View file

@ -8,7 +8,7 @@
let let
pname = "sphinx-autodoc-typehints"; pname = "sphinx-autodoc-typehints";
version = "1.18.3"; version = "1.19.1";
in in
buildPythonPackage { buildPythonPackage {
@ -20,7 +20,7 @@ buildPythonPackage {
src = fetchPypi { src = fetchPypi {
pname = "sphinx_autodoc_typehints"; pname = "sphinx_autodoc_typehints";
inherit version; inherit version;
hash = "sha256-wE2PjXDpiJYOJbIGrzmpDfhOfiwIW7JOEjvDaEAhsxM="; hash = "sha256-bIQdtV4Om+BIP/OWKiFStg55MG9CiNjE5+hqyESGpeo=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View file

@ -1,4 +1,5 @@
{ buildBazelPackage { buildBazelPackage
, bazel_5
, fetchFromGitHub , fetchFromGitHub
, git , git
, go , go
@ -10,28 +11,49 @@ let
patches = [ patches = [
./use-go-in-path.patch ./use-go-in-path.patch
]; ];
# Patch the protoc alias so that it always builds from source.
rulesProto = fetchFromGitHub {
owner = "bazelbuild";
repo = "rules_proto";
rev = "4.0.0-3.19.2";
sha256 = "sha256-wdmp+Tmf63PPr7G4X5F7rDas45WEETU3eKb47PFVI6o=";
postFetch = ''
sed -i 's|name = "protoc"|name = "_protoc_original"|' $out/proto/private/BUILD.release
cat <<EOF >>$out/proto/private/BUILD.release
alias(name = "protoc", actual = "@com_github_protocolbuffers_protobuf//:protoc", visibility = ["//visibility:public"])
EOF
'';
};
in in
buildBazelPackage rec { buildBazelPackage rec {
pname = "bazel-watcher"; pname = "bazel-watcher";
version = "0.14.0"; version = "0.17.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "bazelbuild"; owner = "bazelbuild";
repo = "bazel-watcher"; repo = "bazel-watcher";
rev = "v${version}"; rev = "v${version}";
sha256 = "0gigl1lg8sb4bj5crvj54329ws4yirldbncs15f96db6vhp0ig7r"; sha256 = "sha256-aK18Q2nYxYajk9f/EEmtV7YJ8cYqbamR7vh3BTgu53Q=";
}; };
nativeBuildInputs = [ go git python3 ]; nativeBuildInputs = [ go git python3 ];
removeRulesCC = false; removeRulesCC = false;
bazel = bazel_5;
bazelFlags = [ "--override_repository=rules_proto=${rulesProto}" ];
bazelBuildFlags = lib.optionals stdenv.cc.isClang [ "--cxxopt=-x" "--cxxopt=c++" "--host_cxxopt=-x" "--host_cxxopt=c++" ];
bazelTarget = "//ibazel"; bazelTarget = "//ibazel";
fetchConfigured = false; # we want to fetch all dependencies, regardless of the current system
fetchAttrs = { fetchAttrs = {
inherit patches; inherit patches;
preBuild = '' preBuild = ''
patchShebangs . patchShebangs .
echo ${bazel_5.version} > .bazelversion
''; '';
preInstall = '' preInstall = ''
@ -54,9 +76,12 @@ buildBazelPackage rec {
# should be equivalent. # should be equivalent.
rm -rf $bazelOut/external/{bazel_gazelle_go_repository_tools,\@bazel_gazelle_go_repository_tools.marker} rm -rf $bazelOut/external/{bazel_gazelle_go_repository_tools,\@bazel_gazelle_go_repository_tools.marker}
sed -e '/^FILE:@bazel_gazelle_go_repository_tools.*/d' -i $bazelOut/external/\@*.marker sed -e '/^FILE:@bazel_gazelle_go_repository_tools.*/d' -i $bazelOut/external/\@*.marker
# remove com_google_protobuf because it had files with different permissions on linux and darwin
rm -rf $bazelOut/external/com_google_protobuf
''; '';
sha256 = "1j175z3d4fbi4pl35py7yjq7ywrvwin6id131jv32hx0ck4g1m46"; sha256 = "sha256-R+Hc9ldYcKgAXETKr2+Hk7IrjJ93WkrjyJ1SQRoM9V4=";
}; };
buildAttrs = { buildAttrs = {
@ -66,10 +91,11 @@ buildBazelPackage rec {
patchShebangs . patchShebangs .
substituteInPlace ibazel/BUILD --replace '{STABLE_GIT_VERSION}' ${version} substituteInPlace ibazel/BUILD --replace '{STABLE_GIT_VERSION}' ${version}
echo ${bazel_5.version} > .bazelversion
''; '';
installPhase = '' installPhase = ''
install -Dm755 bazel-bin/ibazel/*_pure_stripped/ibazel $out/bin/ibazel install -Dm755 bazel-bin/ibazel/ibazel_/ibazel $out/bin/ibazel
''; '';
}; };
@ -78,8 +104,7 @@ buildBazelPackage rec {
description = "Tools for building Bazel targets when source files change"; description = "Tools for building Bazel targets when source files change";
license = licenses.asl20; license = licenses.asl20;
maintainers = with maintainers; [ kalbasit ]; maintainers = with maintainers; [ kalbasit ];
mainProgram = "ibazel";
platforms = platforms.all; platforms = platforms.all;
# broken on darwin, see https://github.com/NixOS/nixpkgs/issues/105573
broken = stdenv.isDarwin;
}; };
} }

View file

@ -6,7 +6,7 @@ index 51273b6..fcf9ffb 100644
go_rules_dependencies() go_rules_dependencies()
-go_register_toolchains() -go_register_toolchains(version = "1.17.6")
+go_register_toolchains(go_version = "host") +go_register_toolchains(go_version = "host")
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies", "go_repository") load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies", "go_repository")

View file

@ -110,7 +110,9 @@ let
# and libraries path. # and libraries path.
# We prefetch it, patch it, and override it in a global bazelrc. # We prefetch it, patch it, and override it in a global bazelrc.
system = if stdenv.hostPlatform.isDarwin then "darwin" else "linux"; system = if stdenv.hostPlatform.isDarwin then "darwin" else "linux";
arch = stdenv.hostPlatform.parsed.cpu.name;
# on aarch64 Darwin, `uname -m` returns "arm64"
arch = with stdenv.hostPlatform; if isDarwin && isAarch64 then "arm64" else parsed.cpu.name;
remote_java_tools = stdenv.mkDerivation { remote_java_tools = stdenv.mkDerivation {
name = "remote_java_tools_${system}"; name = "remote_java_tools_${system}";

View file

@ -135,7 +135,9 @@ let
# and libraries path. # and libraries path.
# We prefetch it, patch it, and override it in a global bazelrc. # We prefetch it, patch it, and override it in a global bazelrc.
system = if stdenv.hostPlatform.isDarwin then "darwin" else "linux"; system = if stdenv.hostPlatform.isDarwin then "darwin" else "linux";
arch = stdenv.hostPlatform.parsed.cpu.name;
# on aarch64 Darwin, `uname -m` returns "arm64"
arch = with stdenv.hostPlatform; if isDarwin && isAarch64 then "arm64" else parsed.cpu.name;
remote_java_tools = stdenv.mkDerivation { remote_java_tools = stdenv.mkDerivation {
name = "remote_java_tools_${system}"; name = "remote_java_tools_${system}";

View file

@ -126,7 +126,9 @@ let
platforms = lib.platforms.linux ++ lib.platforms.darwin; platforms = lib.platforms.linux ++ lib.platforms.darwin;
system = if stdenv.hostPlatform.isDarwin then "darwin" else "linux"; system = if stdenv.hostPlatform.isDarwin then "darwin" else "linux";
arch = stdenv.hostPlatform.parsed.cpu.name;
# on aarch64 Darwin, `uname -m` returns "arm64"
arch = with stdenv.hostPlatform; if isDarwin && isAarch64 then "arm64" else parsed.cpu.name;
bazelRC = writeTextFile { bazelRC = writeTextFile {
name = "bazel-rc"; name = "bazel-rc";

View file

@ -2,11 +2,11 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "lttng-tools"; pname = "lttng-tools";
version = "2.13.4"; version = "2.13.7";
src = fetchurl { src = fetchurl {
url = "https://lttng.org/files/lttng-tools/${pname}-${version}.tar.bz2"; url = "https://lttng.org/files/lttng-tools/${pname}-${version}.tar.bz2";
sha256 = "sha256-Vl8xAkEKU9SE9Mj/UXl48dxZ9n+dFvhy9DV/PKEiAPY="; sha256 = "sha256-0XoC6PF4p880A+PJ7fuQrToWKOIKoLUTFAiuR/ci8I0=";
}; };
nativeBuildInputs = [ pkg-config ]; nativeBuildInputs = [ pkg-config ];

View file

@ -2,16 +2,16 @@
buildGoModule rec { buildGoModule rec {
pname = "yq-go"; pname = "yq-go";
version = "4.26.1"; version = "4.27.2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "mikefarah"; owner = "mikefarah";
repo = "yq"; repo = "yq";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-5EDFttaUgef2/EQUSORY17UjbErCjVDdy3Dls1mMYLQ="; sha256 = "sha256-42rcptmZrMfUTN4kjnbulwosLOUNf0qw85eqmpD31gw=";
}; };
vendorSha256 = "sha256-w9TaCYxu3a8R3oCfyNyioe2W9PrejhTj/3eaBeg7UAw="; vendorSha256 = "sha256-fHqTgFsUKaDlWU9PGYqAFknzgq7tYzSTqNb+edwWZJg=";
nativeBuildInputs = [ installShellFiles ]; nativeBuildInputs = [ installShellFiles ];

View file

@ -16,11 +16,11 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "nsd"; pname = "nsd";
version = "4.4.0"; version = "4.6.0";
src = fetchurl { src = fetchurl {
url = "https://www.nlnetlabs.nl/downloads/${pname}/${pname}-${version}.tar.gz"; url = "https://www.nlnetlabs.nl/downloads/${pname}/${pname}-${version}.tar.gz";
sha256 = "sha256-z81v3Zk0TKWn73wpQMJBvO9HH8MlK6PcvUxX4GOOiDY="; sha256 = "sha256-CQYtm4Pfzd5OTlPsNhVJbWjCgh2DgdDUZOvqMaWXXIE=";
}; };
prePatch = '' prePatch = ''

View file

@ -8,13 +8,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "keyd"; pname = "keyd";
version = "2.4.1"; version = "2.4.2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "rvaiya"; owner = "rvaiya";
repo = "keyd"; repo = "keyd";
rev = "v" + version; rev = "v" + version;
hash = "sha256-p0f8iGT4QtyWAnlcG4SfOhD94ySNNkQrnVjnGCmQwAk="; hash = "sha256-QWr+xog16MmybhQlEWbskYa/dypb9Ld54MOdobTbyMo=";
}; };
postPatch = '' postPatch = ''

View file

@ -2,11 +2,11 @@
stdenvNoCC.mkDerivation rec { stdenvNoCC.mkDerivation rec {
pname = "panoply"; pname = "panoply";
version = "5.1.0"; version = "5.1.1";
src = fetchurl { src = fetchurl {
url = "https://www.giss.nasa.gov/tools/panoply/download/PanoplyJ-${version}.tgz"; url = "https://www.giss.nasa.gov/tools/panoply/download/PanoplyJ-${version}.tgz";
sha256 = "08wh9i0pk7qq2az0nd8g8gqlzwril49qffi0zcrmn7r0nx44cdjm"; sha256 = "sha256-qx/Uz/X9ZJ4ebV+OMtXVoReh61YAp9iRcJmywGfKiUw=";
}; };
nativeBuildInputs = [ makeWrapper ]; nativeBuildInputs = [ makeWrapper ];

View file

@ -2,16 +2,16 @@
buildGoModule rec { buildGoModule rec {
pname = "topicctl"; pname = "topicctl";
version = "1.3.1"; version = "1.4.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "segmentio"; owner = "segmentio";
repo = "topicctl"; repo = "topicctl";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-hbsVk82iTZGVvypZHhUk/By0sSQxmZQBog2/3qKE94s="; sha256 = "sha256-uuASiJXyYzQC+9TkoALKiygRrgoEeR2cFPDQeZ9pIQ4=";
}; };
vendorSha256 = "sha256-i1ir/aT/jaK//rmH9k/eK4LIRh0OmEytc0mGO7IrpqI="; vendorSha256 = "sha256-u5U6JnlkQOjzKjbwdKgJ2YAh8//x7H/F3PC/H60boZc=";
ldflags = [ ldflags = [
"-X main.BuildVersion=${version}" "-X main.BuildVersion=${version}"

View file

@ -3,13 +3,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "yad"; pname = "yad";
version = "11.0"; version = "12.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "v1cont"; owner = "v1cont";
repo = "yad"; repo = "yad";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-I+3euq3qel9VCDVf0Bd4XdMOCt+g/CYlnnje50lbRr8="; sha256 = "sha256-Lp7KHASUYx3pKKCNTDGyOZslSiKFl9EGulR2yjfha9k=";
}; };
configureFlags = [ configureFlags = [

View file

@ -2,11 +2,11 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "OpenIPMI"; pname = "OpenIPMI";
version = "2.0.32"; version = "2.0.33";
src = fetchurl { src = fetchurl {
url = "mirror://sourceforge/openipmi/OpenIPMI-${version}.tar.gz"; url = "mirror://sourceforge/openipmi/OpenIPMI-${version}.tar.gz";
sha256 = "sha256-9tD9TAp0sF+AkHIp0LJw9UyiMpS8wRl5+LjRJ2Z4aUU="; sha256 = "sha256-+1Pp6l4mgc+K982gJLGgBExnX4QRbKJ66WFsi3rZW0k=";
}; };
buildInputs = [ ncurses popt python39 readline ]; buildInputs = [ ncurses popt python39 readline ];

View file

@ -15369,7 +15369,9 @@ with pkgs;
bazel-remote = callPackage ../development/tools/build-managers/bazel/bazel-remote { }; bazel-remote = callPackage ../development/tools/build-managers/bazel/bazel-remote { };
bazel-watcher = callPackage ../development/tools/bazel-watcher { }; bazel-watcher = callPackage ../development/tools/bazel-watcher {
go = go_1_18;
};
bazel-gazelle = callPackage ../development/tools/bazel-gazelle { }; bazel-gazelle = callPackage ../development/tools/bazel-gazelle { };