Skip to content

Commit

Permalink
Merge staging-next into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Sep 30, 2022
2 parents c7724c7 + 7170a03 commit 1d5f427
Show file tree
Hide file tree
Showing 27 changed files with 223 additions and 96 deletions.
7 changes: 5 additions & 2 deletions nixos/modules/services/misc/nix-daemon.nix
Original file line number Diff line number Diff line change
Expand Up @@ -228,13 +228,16 @@ in
'';
};
protocol = mkOption {
type = types.enum [ "ssh" "ssh-ng" ];
type = types.enum [ null "ssh" "ssh-ng" ];
default = "ssh";
example = "ssh-ng";
description = lib.mdDoc ''
The protocol used for communicating with the build machine.
Use `ssh-ng` if your remote builder and your
local Nix version support that improved protocol.
Use `null` when trying to change the special localhost builder
without a protocol which is for example used by hydra.
'';
};
system = mkOption {
Expand Down Expand Up @@ -680,7 +683,7 @@ in
concatMapStrings
(machine:
(concatStringsSep " " ([
"${machine.protocol}://${optionalString (machine.sshUser != null) "${machine.sshUser}@"}${machine.hostName}"
"${optionalString (machine.protocol != null) "${machine.protocol}://"}${optionalString (machine.sshUser != null) "${machine.sshUser}@"}${machine.hostName}"
(if machine.system != null then machine.system else if machine.systems != [ ] then concatStringsSep "," machine.systems else "-")
(if machine.sshKey != null then machine.sshKey else "-")
(toString machine.maxJobs)
Expand Down
12 changes: 8 additions & 4 deletions pkgs/applications/editors/lapce/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,30 @@
, ApplicationServices
, Carbon
, AppKit
, wrapGAppsHook
, gobject-introspection
}:

rustPlatform.buildRustPackage rec {
pname = "lapce";
version = "0.1.2";
version = "unstable-2022-09-21";

src = fetchFromGitHub {
owner = "lapce";
repo = pname;
rev = "v${version}";
sha256 = "sha256-jH473FdBI3rGt90L3WwMDPP8M3w0rtG5D758ceCMw94=";
rev = "c5a924ef34250e9117e2b57c19c1f29f6b9b3ea7";
sha256 = "sha256-0nAUbtokDgSxPcJCa9xGM8Rpbu282o7OHAQtAfdNmJU=";
};

cargoSha256 = "sha256-0Kya2KcyBDlt0TpFV60VAA3+JPfwId/+k8k+H97EhB0=";
cargoSha256 = "sha256-uIFC5x8TzsvTGylQ0AttIRAUWU0k0P7UeF96vUc7cKw=";

nativeBuildInputs = [
cmake
pkg-config
perl
copyDesktopItems
wrapGAppsHook # FIX: No GSettings schemas are installed on the system
gobject-introspection
];

# Get openssl-sys to use pkg-config
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/misc/chrysalis/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

let
pname = "chrysalis";
version = "0.9.4";
version = "0.11.5";
in appimageTools.wrapAppImage rec {
name = "${pname}-${version}-binary";

src = appimageTools.extract {
inherit name;
src = fetchurl {
url = "https://github.com/keyboardio/${pname}/releases/download/v${version}/${pname}-${version}.AppImage";
sha256 = "sha256-DAJGS1vKOOLMRgMczAiEfrT9awRNjz9r/MEr4ZFc3Bo=";
sha256 = "sha256-3GdObGW91nDqOAlHcaI/4wnbl2EG2RGGzpwY+XYQ0u4=";
};
};

Expand Down
76 changes: 76 additions & 0 deletions pkgs/applications/misc/inlyne/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
{ lib
, rustPlatform
, fetchFromGitHub
, stdenv
, pkg-config
, fontconfig
, libXcursor
, libXi
, libXrandr
, libxcb
, libGL
, libX11
, openssl
, AppKit
, ApplicationServices
, CoreFoundation
, CoreGraphics
, CoreServices
, CoreText
, CoreVideo
, Foundation
, Metal
, QuartzCore
, Security
, libobjc
}:

rustPlatform.buildRustPackage rec {
pname = "inlyne";
version = "0.2.0";

src = fetchFromGitHub {
owner = "trimental";
repo = pname;
rev = "v${version}";
sha256 = "1y8nxz20agmrdcl25wry8lnpg86zbkkkkiscljwd7g7a831hlb9z";
};

cargoSha256 = "sha256-NXVwydEn4hX/4NorDx6eE+sWQXj1jwZgzpDE3wg8OkU=";

nativeBuildInputs = lib.optionals stdenv.isLinux [ pkg-config ];

buildInputs = lib.optionals stdenv.isLinux [
fontconfig
libXcursor
libXi
libXrandr
libxcb
openssl
] ++ lib.optionals stdenv.isDarwin [
AppKit
ApplicationServices
CoreFoundation
CoreGraphics
CoreServices
CoreText
CoreVideo
Foundation
Metal
QuartzCore
Security
libobjc
];

postFixup = lib.optionalString stdenv.isLinux ''
patchelf $out/bin/inlyne \
--add-rpath ${lib.makeLibraryPath [ libGL libX11 ]}
'';

meta = with lib; {
description = "A GPU powered browserless markdown viewer";
homepage = "https://github.com/trimental/inlyne";
license = licenses.mit;
maintainers = with maintainers; [ figsoda ];
};
}
8 changes: 4 additions & 4 deletions pkgs/applications/networking/cluster/fluxcd/default.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{ lib, buildGoModule, fetchFromGitHub, fetchzip, installShellFiles, stdenv }:

let
version = "0.34.0";
sha256 = "1znxhjqvch0z0s98v3hvvh1pa3nlv0l6qhlm0f61z64srz3i5d1k";
manifestsSha256 = "1fchzr7fb894hdya9bbh59avqsa66wcz06fck60wmwpc93m64cqs";
version = "0.35.0";
sha256 = "11bbrxgfwvf6gnm402mcq6na75gcifx8m1b28pzspvw01p2yshf9";
manifestsSha256 = "0ink2cvysgnqvid4hh2x969iqc86pmz654nd7wv37iqndfhy7rd5";

manifests = fetchzip {
url =
Expand All @@ -23,7 +23,7 @@ in buildGoModule rec {
inherit sha256;
};

vendorSha256 = "sha256-0oHcitczG+sW9mkwxY6hCdR2ASpat2XQ+IsLAiqCUb8=";
vendorSha256 = "sha256-HCBEMMFMoepr4bUYICAGMb2A42smgd3VlE7b9TR6LAc=";

postUnpack = ''
cp -r ${manifests} source/cmd/flux/manifests
Expand Down
6 changes: 3 additions & 3 deletions pkgs/applications/office/treesheets/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@

stdenv.mkDerivation rec {
pname = "treesheets";
version = "unstable-2022-03-12";
version = "unstable-2022-09-26";

src = fetchFromGitHub {
owner = "aardappel";
repo = "treesheets";
rev = "120c10d4d9ea1ce76db5c1bbd6f5d705b397b57d";
sha256 = "oXgOvvRoZpueEeWnD3jsc6y5RIAzkXzLeEe7BSErBpw=";
rev = "4778c343ac78a3b3ccdaf079187b53d8cd64e235";
sha256 = "UyltzT9B+7/hME7famQa/XgrDPaNw3apwchKgxwscOo=";
};

nativeBuildInputs = [
Expand Down
10 changes: 5 additions & 5 deletions pkgs/applications/version-management/gitlab/data.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"version": "15.4.0",
"repo_hash": "sha256-AONzkIZbrOJkxGUYAunoWTc9xuCykKr4YkYeQQxRW8A=",
"version": "15.4.1",
"repo_hash": "sha256-z4J0ia9WxL+tJnoYNBtb6ZMuqGHiyhQ0tc0L8kzj26w=",
"yarn_hash": "1r33qrvwf2wmq5c1d2awk9qhk9nzvafqn3drdvnczfv43sda4lg8",
"owner": "gitlab-org",
"repo": "gitlab",
"rev": "v15.4.0-ee",
"rev": "v15.4.1-ee",
"passthru": {
"GITALY_SERVER_VERSION": "15.4.0",
"GITALY_SERVER_VERSION": "15.4.1",
"GITLAB_PAGES_VERSION": "1.62.0",
"GITLAB_SHELL_VERSION": "14.10.0",
"GITLAB_WORKHORSE_VERSION": "15.4.0"
"GITLAB_WORKHORSE_VERSION": "15.4.1"
},
"vendored_gems": [
"bundler-checksum",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ let
gemdir = ./.;
};

version = "15.4.0";
version = "15.4.1";
package_version = "v${lib.versions.major version}";
gitaly_package = "gitlab.com/gitlab-org/gitaly/${package_version}";

Expand All @@ -22,7 +22,7 @@ let
owner = "gitlab-org";
repo = "gitaly";
rev = "v${version}";
sha256 = "sha256-cESZfLlwyC6khUrvS0LGfkvzCLudjFmlGXculYLrcDM=";
sha256 = "sha256-7f4TxCI/k2yirQxYI8i/6PXGVDs4x4ncIou1qH0TKAc=";
};

vendorSha256 = "sha256-CUFYHjmOfosM3mfw0qEY+AQcR8U3J/1lU2Ml6wSZ/QM=";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ in
buildGoModule rec {
pname = "gitlab-workhorse";

version = "15.4.0";
version = "15.4.1";

src = fetchFromGitLab {
owner = data.owner;
Expand Down
18 changes: 14 additions & 4 deletions pkgs/applications/version-management/sourcehut/builds.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{ lib
, fetchFromSourcehut
, fetchpatch
, buildGoModule
, buildPythonPackage
, srht
Expand All @@ -12,27 +13,36 @@
, unzip
}:
let
version = "0.81.0";
version = "0.82.8";

src = fetchFromSourcehut {
owner = "~sircmpwn";
repo = "builds.sr.ht";
rev = version;
sha256 = "sha256-oUSzanRFZ2dQTgm/VuNhqUaUAPq7ffxR7OtBKtE61DE=";
hash = "sha256-M94zkEUJU8EwksN34sd5IkASDCQ0hHb98G5wzZsCrpg=";
};

buildsrht-api = buildGoModule ({
inherit src version;
pname = "buildsrht-api";
modRoot = "api";
vendorSha256 = "sha256-roTwqtg4Y846PNtLdRN/LV3Jd0LVElqjFy3DJcrwoaI=";
vendorHash = "sha256-8z5m4bMwLeYg4i91MMjLMqbciWvqS0icCHFUJTUHBgk=";
} // import ./fix-gqlgen-trimpath.nix { inherit unzip; });

buildsrht-worker = buildGoModule {
inherit src version;
sourceRoot = "source/worker";
pname = "buildsrht-worker";
vendorSha256 = "sha256-Pf1M9a43eK4jr6QMi6kRHA8DodXQU0pqq9ua5VC3ER0=";
vendorHash = "sha256-y5RFPbtaGmgPpiV2Q3njeWORGZF1TJRjAbY6VgC1hek=";

patches = [
(fetchpatch {
name = "update-x-sys-for-go-1.18-on-aarch64-darwin.patch";
url = "https://git.sr.ht/~sircmpwn/builds.sr.ht/commit/f58bbde6bfed7d2321a3b17e991c91fc83d4c230.patch";
stripLen = 1;
hash = "sha256-vQR/T5G5Gz5tY+SEZZabsbnFKW44b+Bs+GDdydyeCDs=";
})
];
};
in
buildPythonPackage rec {
Expand Down
5 changes: 5 additions & 0 deletions pkgs/development/libraries/libelf/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ stdenv.mkDerivation rec {

doCheck = true;

preConfigure = if !stdenv.hostPlatform.useAndroidPrebuilt then null else ''
sed -i 's|DISTSUBDIRS = lib po|DISTSUBDIRS = lib|g' Makefile.in
sed -i 's|SUBDIRS = lib @POSUB@|SUBDIRS = lib|g' Makefile.in
'';

configureFlags = []
# Configure check for dynamic lib support is broken, see
# http://lists.uclibc.org/pipermail/uclibc-cvs/2005-August/019383.html
Expand Down
3 changes: 2 additions & 1 deletion pkgs/development/libraries/opencolorio/1.x.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ stdenv.mkDerivation rec {
# External libyamlcpp 0.6.* not compatible: https://github.com/imageworks/OpenColorIO/issues/517
"-DUSE_EXTERNAL_YAML=OFF"
] ++ lib.optional stdenv.isDarwin "-DOCIO_USE_BOOST_PTR=ON"
++ lib.optional (!stdenv.hostPlatform.isx86) "-DOCIO_USE_SSE=OFF";
++ lib.optional (!stdenv.hostPlatform.isx86) "-DOCIO_USE_SSE=OFF"
++ lib.optional (stdenv.isDarwin && stdenv.isAarch64) "-DCMAKE_OSX_ARCHITECTURES=arm64";

postInstall = ''
mkdir -p $bin/bin; mv $out/bin $bin/
Expand Down
13 changes: 10 additions & 3 deletions pkgs/development/libraries/pc-ble-driver/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,28 @@ stdenv.mkDerivation rec {

src = fetchFromGitHub {
owner = "NordicSemiconductor";
repo = "pc-ble-driver";
repo = pname;
rev = "v${version}";
sha256 = "1609x17sbfi668jfwyvnfk9z29w6cgzvgv67xcpvpx5jv0czpcdj";
hash = "sha256-srH7Gdiy9Lsv68fst/9jhifx03R2e+4kMia6pU/oCZg=";
};

patches = [
(fetchpatch {
name = "support-arm.patch";
url = "https://github.com/NordicSemiconductor/pc-ble-driver/commit/76a6b31dba7a13ceae40587494cbfa01a29192f4.patch";
hash = "sha256-bvK1BXjdlhIXV8R4PiCGaq8oSLzgjMmTgAwssm8N2sk=";
})
# Fix build with GCC 11
(fetchpatch {
url = "https://github.com/NordicSemiconductor/pc-ble-driver/commit/37258e65bdbcd0b4369ae448faf650dd181816ec.patch";
sha256 = "sha256-gOdzIW8YJQC+PE4FJd644I1+I7CMcBY8wpF6g02eI5g=";
hash = "sha256-gOdzIW8YJQC+PE4FJd644I1+I7CMcBY8wpF6g02eI5g=";
})
];

cmakeFlags = [
"-DNRF_BLE_DRIVER_VERSION=${version}"
] ++ lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [
"-DARCH=arm64"
];

nativeBuildInputs = [ cmake git ];
Expand Down
25 changes: 6 additions & 19 deletions pkgs/development/python-modules/pytest-astropy-header/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,21 @@
, pytest-cov
, pytestCheckHook
, numpy
, astropy
, scipy
, h5py
, scikitimage
, setuptools-scm
}:

buildPythonPackage rec {
pname = "pytest-astropy-header";
version = "0.1.2";
version = "0.2.2";
format = "pyproject";

src = fetchPypi {
inherit pname version;
sha256 = "1y87agr324p6x5gvhziymxjlw54pyn4gqnd49papbl941djpkp5g";
sha256 = "77891101c94b75a8ca305453b879b318ab6001b370df02be2c0b6d1bb322db10";
};
patches = [ (fetchpatch {
url = "https://github.com/astropy/pytest-astropy-header/pull/16.patch";
sha256 = "11ln63zq0kgsdx1jw3prlzpcdbxmc99p9cwr18s0x6apy0k6df31";
})
(fetchpatch {
url = "https://github.com/astropy/pytest-astropy-header/pull/29.patch";
sha256 = "18l434c926r5z1iq3b6lpnp0lrssszars9y1y9hs6216r60jgjpl";
})

nativeBuildInputs = [
setuptools-scm
];

buildInputs = [
Expand All @@ -37,12 +29,7 @@ buildPythonPackage rec {

checkInputs = [
pytestCheckHook
pytest-cov
numpy
scipy
h5py
scikitimage
astropy
];

meta = with lib; {
Expand Down
Loading

0 comments on commit 1d5f427

Please sign in to comment.