mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-12 03:56:17 +03:00
Merge master into staging-next
This commit is contained in:
commit
bb76194131
2
.github/workflows/editorconfig.yml
vendored
2
.github/workflows/editorconfig.yml
vendored
@ -11,7 +11,7 @@ on:
|
||||
jobs:
|
||||
tests:
|
||||
runs-on: ubuntu-latest
|
||||
if: "github.repository_owner == 'NixOS' && !contains(github.event.pull_request.title, '[skip editorconfig]')"
|
||||
if: "github.repository_owner == 'NixOS' && !contains(github.event.pull_request.title, '[skip treewide]')"
|
||||
steps:
|
||||
- name: Get list of changed files from PR
|
||||
env:
|
||||
|
2
.github/workflows/labels.yml
vendored
2
.github/workflows/labels.yml
vendored
@ -16,7 +16,7 @@ permissions:
|
||||
jobs:
|
||||
labels:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository_owner == 'NixOS'
|
||||
if: github.repository_owner == 'NixOS' && !contains(github.event.pull_request.title, '[skip treewide]')"
|
||||
steps:
|
||||
- uses: actions/labeler@v4
|
||||
with:
|
||||
|
@ -10,15 +10,15 @@
|
||||
}:
|
||||
|
||||
let
|
||||
openShiftVersion = "4.11.13";
|
||||
openShiftVersion = "4.11.18";
|
||||
okdVersion = "4.11.0-0.okd-2022-11-05-030711";
|
||||
podmanVersion = "4.2.0";
|
||||
writeKey = "cvpHsNcmGCJqVzf6YxrSnVlwFSAZaYtp";
|
||||
in
|
||||
buildGoModule rec {
|
||||
version = "2.11.0";
|
||||
version = "2.12.0";
|
||||
pname = "crc";
|
||||
gitCommit = "a5f90a25abcacd4aa334490f0d204329abeaa691";
|
||||
gitCommit = "ea98bb41e24ad81a319d0aa6c6e1286bc1334c1b";
|
||||
modRoot = "cmd/crc";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
@ -63,6 +63,7 @@ buildGoModule rec {
|
||||
crc version
|
||||
'';
|
||||
};
|
||||
passthru.updateScript = ./update.sh;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Manages a local OpenShift 4.x cluster or a Podman VM optimized for testing and development purposes";
|
||||
|
@ -2,13 +2,13 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "v2ray-geoip";
|
||||
version = "202301120046";
|
||||
version = "202301190046";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "v2fly";
|
||||
repo = "geoip";
|
||||
rev = "c308361f47373772d1a3b9d486cd7dded7165d8e";
|
||||
sha256 = "sha256-GhCEsMDeMapWpJckMWS+3azuNjMdiN4cjDyq8aSJINA=";
|
||||
rev = "83ea735314fbc2c3404cb4b9aa044b476e67bc8b";
|
||||
sha256 = "sha256-8u2xhpoA6BH9e+kgDwxPsjD4RSuUw05h39aUo7ivM3U=";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
|
@ -8,13 +8,13 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "s2n-tls";
|
||||
version = "1.3.32";
|
||||
version = "1.3.33";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "aws";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-LKJubTzV4B7aimKtnODUJJil3b55qKuDkCe7TLa8tjQ=";
|
||||
sha256 = "sha256-MfVRAv5Ss+QMjY3IhFJakUO05w6j5WaAM0cCdtLIgAk=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "doorbirdpy";
|
||||
version = "2.2.0";
|
||||
version = "2.2.1";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
@ -15,7 +15,7 @@ buildPythonPackage rec {
|
||||
src = fetchPypi {
|
||||
pname = "DoorBirdPy";
|
||||
inherit version;
|
||||
hash = "sha256-ZGIIko5Ac0Q4Jhz+z7FREJ4MhPF9ADDWgQFRtcZ+dWY=";
|
||||
hash = "sha256-o6d8xXF5OuiF0B/wwYhDAZr05D84MuxHBY96G2XHILU=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
@ -16,7 +16,7 @@
|
||||
|
||||
let
|
||||
pname = "hassil";
|
||||
version = "0.2.3";
|
||||
version = "0.2.4";
|
||||
in
|
||||
buildPythonPackage {
|
||||
inherit pname version;
|
||||
@ -24,7 +24,7 @@ buildPythonPackage {
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-YT8FgvM0mlB8ri9WHLau+e4m+wyEI4mHWxXbhiI60h0=";
|
||||
hash = "sha256-lgGo3zK1GN3MEOinXuvT5nCc8LBCxAHiW0CZfS8Yy7Y=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
@ -9,16 +9,16 @@
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "cargo-guppy";
|
||||
version = "unstable-2023-01-14";
|
||||
version = "unstable-2023-01-19";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "guppy-rs";
|
||||
repo = "guppy";
|
||||
rev = "d593660fbcbfe50569de5a8aad5bd1ac19885733";
|
||||
sha256 = "sha256-5kJTkVAklaSWqGIRjVJX56e8cjxyKAx/2E54OF0mIuw=";
|
||||
rev = "0f2e0627d430fa6488980f2808c472ae406d3603";
|
||||
sha256 = "sha256-7ADq5yDVpYn91K/rbXWxp0+34twQ8LArD+vVd48tee4=";
|
||||
};
|
||||
|
||||
cargoSha256 = "sha256-H2ta/eH2VzEzHbYs0ugzFseLh0S5lxhB7/wvJEFGj0M=";
|
||||
cargoSha256 = "sha256-oVG3x0yGTqNKMaqkOJhfhqRWNwAkUgfkGr7Vxr+nY4I=";
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
|
||||
|
@ -2,16 +2,16 @@
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "cargo-hakari";
|
||||
version = "0.9.21";
|
||||
version = "0.9.23";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "guppy-rs";
|
||||
repo = "guppy";
|
||||
rev = "cargo-hakari-${version}";
|
||||
sha256 = "sha256-wra3p3WAcGpsvW0DMMqWKFbAsrDTDnrYWQd6HS3sEls=";
|
||||
sha256 = "sha256-Ewki2Ux233WEW7x3jgpdeMH6xoMYJQ9X3vP8CqY+0hc=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-aNsG3ZmTMc5myOVs4h7uI5I5jjnjPd8AC2H7sSGmtHk=";
|
||||
cargoHash = "sha256-IpTWyp0o6OKS8h0U8ybC2Io3Tbs592UBzAWmd8zEm2I=";
|
||||
|
||||
cargoBuildFlags = [ "-p" "cargo-hakari" ];
|
||||
cargoTestFlags = [ "-p" "cargo-hakari" ];
|
||||
|
@ -17,15 +17,15 @@
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "deno";
|
||||
version = "1.29.3";
|
||||
version = "1.29.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "denoland";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-CH0uri8mnpcojuE8Pil/gsvEfDu/txjCevvGjqhiK1k=";
|
||||
sha256 = "sha256-oCBtqOm/d5dpIv70/Ht0M6izxdvm59LCiDHgcMcwLek=";
|
||||
};
|
||||
cargoSha256 = "sha256-I7MIcZeMQzgplza8YAqmuWaX4Gw3ZoDXHyzq/5opO4M=";
|
||||
cargoSha256 = "sha256-Y/1yfCeWleNrk5MgkIoAtkH8e6YSZWa+GF5RgLaZXQA=";
|
||||
|
||||
postPatch = ''
|
||||
# upstream uses lld on aarch64-darwin for faster builds
|
||||
@ -85,6 +85,7 @@ rustPlatform.buildRustPackage rec {
|
||||
'';
|
||||
|
||||
passthru.updateScript = ./update/update.ts;
|
||||
passthru.tests = callPackage ./tests { };
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://deno.land/";
|
||||
|
@ -11,11 +11,11 @@ let
|
||||
};
|
||||
in
|
||||
fetch_librusty_v8 {
|
||||
version = "0.60.0";
|
||||
version = "0.60.1";
|
||||
shas = {
|
||||
x86_64-linux = "sha256-2cq9fpKhx3ctZ5Lo2RofXD5bXfVUUN6bRtG453MQMW4=";
|
||||
aarch64-linux = "sha256-hjVUzCYdGkc3kMC/cSXDFOaqJmMBi83dqqASS5R2158=";
|
||||
x86_64-darwin = "sha256-EyYWfDU0eVFVzSVAHBFUbsppzpHtwe+Fd+z2ZmIub2c=";
|
||||
aarch64-darwin = "sha256-2VyEFqWsPZlkEDvNxkmrMCIKfsO7LAO+VvsjSMcyFUo=";
|
||||
x86_64-linux = "sha256-P8H+XJqrt9jdKM885L1epMldp+stwmEw+0Gtd2x3r4g=";
|
||||
aarch64-linux = "sha256-frHpBP2pL3o4efFLHP2r3zsWJrNT93yYu2Qkxv+7m8Y=";
|
||||
x86_64-darwin = "sha256-taewoYBkyikqWueLSD9dW1EDjzkV68Xplid1UaLZgRM=";
|
||||
aarch64-darwin = "sha256-s2YEVbuYpiT/qrmE37aXk13MetrnJo6l+s1Q2y6b5kU=";
|
||||
};
|
||||
}
|
||||
|
1
pkgs/development/web/deno/tests/basic.ts
Normal file
1
pkgs/development/web/deno/tests/basic.ts
Normal file
@ -0,0 +1 @@
|
||||
console.log(1 + 1)
|
68
pkgs/development/web/deno/tests/default.nix
Normal file
68
pkgs/development/web/deno/tests/default.nix
Normal file
@ -0,0 +1,68 @@
|
||||
{ deno, runCommand, lib, testers }:
|
||||
let
|
||||
testDenoRun =
|
||||
name:
|
||||
{ args ? ""
|
||||
, dir ? ./. + "/${name}"
|
||||
, file ? "index.ts"
|
||||
, expected ? ""
|
||||
, expectFailure ? false
|
||||
}:
|
||||
let
|
||||
command = "deno run ${args} ${dir}/${file}";
|
||||
in
|
||||
runCommand "deno-test-${name}" { nativeBuildInputs = [ deno ]; meta.timeout = 60; } ''
|
||||
HOME=$(mktemp -d)
|
||||
if output=$(${command} 2>&1); then
|
||||
if [[ $output =~ '${expected}' ]]; then
|
||||
echo "Test '${name}' passed"
|
||||
touch $out
|
||||
else
|
||||
echo -n ${lib.escapeShellArg command} >&2
|
||||
echo " output did not match what was expected." >&2
|
||||
echo "The expected was:" >&2
|
||||
echo '${expected}' >&2
|
||||
echo "The output was:" >&2
|
||||
echo "$output" >&2
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
if [[ "${toString expectFailure}" == "1" ]]; then
|
||||
echo "Test '${name}' failed as expected"
|
||||
touch $out
|
||||
exit 0
|
||||
fi
|
||||
echo -n ${lib.escapeShellArg command} >&2
|
||||
echo " returned a non-zero exit code." >&2
|
||||
echo "$output" >&2
|
||||
exit 1
|
||||
fi
|
||||
'';
|
||||
in
|
||||
(lib.mapAttrs testDenoRun {
|
||||
basic = {
|
||||
dir = ./.;
|
||||
file = "basic.ts";
|
||||
expected = "2";
|
||||
};
|
||||
import-json = {
|
||||
expected = "hello from JSON";
|
||||
};
|
||||
import-ts = {
|
||||
expected = "hello from ts";
|
||||
};
|
||||
read-file = {
|
||||
args = "--allow-read";
|
||||
expected = "hello from a file";
|
||||
};
|
||||
fail-read-file = {
|
||||
expectFailure = true;
|
||||
dir = ./read-file;
|
||||
};
|
||||
}) //
|
||||
{
|
||||
version = testers.testVersion {
|
||||
package = deno;
|
||||
command = "deno --version";
|
||||
};
|
||||
}
|
1
pkgs/development/web/deno/tests/import-json/data.json
Normal file
1
pkgs/development/web/deno/tests/import-json/data.json
Normal file
@ -0,0 +1 @@
|
||||
{ "msg": "hello from JSON" }
|
2
pkgs/development/web/deno/tests/import-json/index.ts
Normal file
2
pkgs/development/web/deno/tests/import-json/index.ts
Normal file
@ -0,0 +1,2 @@
|
||||
import file from "./data.json" assert { type: "json" };
|
||||
console.log(file.msg);
|
3
pkgs/development/web/deno/tests/import-ts/index.ts
Normal file
3
pkgs/development/web/deno/tests/import-ts/index.ts
Normal file
@ -0,0 +1,3 @@
|
||||
import { sayHello } from "./lib.ts"
|
||||
|
||||
sayHello("ts")
|
3
pkgs/development/web/deno/tests/import-ts/lib.ts
Normal file
3
pkgs/development/web/deno/tests/import-ts/lib.ts
Normal file
@ -0,0 +1,3 @@
|
||||
export function sayHello(thing: string) {
|
||||
console.log(`hello from ${thing}`);
|
||||
}
|
1
pkgs/development/web/deno/tests/read-file/data.txt
Normal file
1
pkgs/development/web/deno/tests/read-file/data.txt
Normal file
@ -0,0 +1 @@
|
||||
hello from a file
|
5
pkgs/development/web/deno/tests/read-file/index.ts
Normal file
5
pkgs/development/web/deno/tests/read-file/index.ts
Normal file
@ -0,0 +1,5 @@
|
||||
// trim 'file://' prefix
|
||||
const thisDir = Deno.mainModule.substring(7, Deno.mainModule.length);
|
||||
const getParent = (path: string) => path.substring(0, path.lastIndexOf("/"))
|
||||
const text = await Deno.readTextFile(getParent(thisDir) + "/data.txt");
|
||||
console.log(text);
|
@ -2,16 +2,16 @@
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "eksctl";
|
||||
version = "0.125.0";
|
||||
version = "0.126.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "weaveworks";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-3hyhb1/vWIKFSw6rmdiszux+WFeMvUE79NkzyazClEg=";
|
||||
sha256 = "sha256-ul02G6FULaSFMtQfmqrSRSAgAxx5/cpG6qeDrGB2m5g=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-PufNlNG3Ixkq1OPnEeod8BvWF1Ee0AdpzJIxsvLPOA4=";
|
||||
vendorHash = "sha256-Z6elKuSGvXPjMk8upqJ2Z0I5Cu3s3LeGUkQFcUKheH0=";
|
||||
|
||||
doCheck = false;
|
||||
|
||||
|
@ -2,16 +2,16 @@
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "sic-image-cli";
|
||||
version = "0.20.1";
|
||||
version = "0.21.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "foresterre";
|
||||
repo = "sic";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-VSBOmE5xdAS15z/KgQ54KfxM2/plEKtpmjOB+T9kLt4=";
|
||||
sha256 = "sha256-mXBiEicybtMilqXxPg8JDN0vPWT2KOFvyV+Ffo5AvlI=";
|
||||
};
|
||||
|
||||
cargoSha256 = "sha256-hkK22c7Z/Wj8ebQkjcdK7H6dms6MI9Sm9yrpqfCCxGA=";
|
||||
cargoSha256 = "sha256-XuQnh+hww7/6htrYwZAF0Jl7+7lXUCDRT5/e5YwVEIo=";
|
||||
|
||||
nativeBuildInputs = [ installShellFiles nasm ];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user