uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead

https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948
this can do it nicely.

Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
Anton Arapov 2021-04-03 12:58:10 +02:00 committed by Alan Daniels
commit 56de2bcd43
30691 changed files with 3076956 additions and 0 deletions

View file

@ -0,0 +1,38 @@
{ pkgs, nodePackages, makeWrapper, nixosTests, nodejs, stdenv, lib, fetchFromGitHub }:
let
ourNodePackages = import ./node-composition.nix {
inherit pkgs nodejs;
inherit (stdenv.hostPlatform) system;
};
version = (lib.importJSON ./package.json).version;
srcInfo = lib.importJSON ./src.json;
in
ourNodePackages.package.override {
pname = "matrix-appservice-irc";
inherit version;
src = fetchFromGitHub {
owner = "matrix-org";
repo = "matrix-appservice-irc";
rev = version;
inherit (srcInfo) sha256;
};
nativeBuildInputs = [ makeWrapper nodePackages.node-gyp-build ];
postInstall = ''
makeWrapper '${nodejs}/bin/node' "$out/bin/matrix-appservice-irc" \
--add-flags "$out/lib/node_modules/matrix-appservice-irc/app.js"
'';
passthru.tests.matrix-appservice-irc = nixosTests.matrix-appservice-irc;
passthru.updateScript = ./update.sh;
meta = with lib; {
description = "Node.js IRC bridge for Matrix";
maintainers = with maintainers; [ ];
homepage = "https://github.com/matrix-org/matrix-appservice-irc";
license = licenses.asl20;
};
}

View file

@ -0,0 +1,11 @@
#!/usr/bin/env bash
ROOT="$(realpath "$(dirname -- "$(readlink -f -- "${BASH_SOURCE[0]}")")"/../../../..)"
$(nix-build $ROOT -A nodePackages.node2nix --no-out-link)/bin/node2nix \
--nodejs-14 \
--node-env ../../../development/node-packages/node-env.nix \
--development \
--lock ./package-lock-temp.json \
--output node-packages.nix \
--composition node-composition.nix

View file

@ -0,0 +1,17 @@
# This file has been generated by node2nix 1.11.1. Do not edit!
{pkgs ? import <nixpkgs> {
inherit system;
}, system ? builtins.currentSystem, nodejs ? pkgs."nodejs-14_x"}:
let
nodeEnv = import ../../../development/node-packages/node-env.nix {
inherit (pkgs) stdenv lib python2 runCommand writeTextFile writeShellScript;
inherit pkgs nodejs;
libtool = if pkgs.stdenv.isDarwin then pkgs.darwin.cctools else null;
};
in
import ./node-packages.nix {
inherit (pkgs) fetchurl nix-gitignore stdenv lib fetchgit;
inherit nodeEnv;
}

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,70 @@
{
"name": "matrix-appservice-irc",
"version": "0.34.0",
"description": "An IRC Bridge for Matrix",
"main": "app.js",
"bin": "./bin/matrix-appservice-irc",
"engines": {
"node": ">=14"
},
"scripts": {
"prepare": "npm run build",
"build": "tsc --project ./tsconfig.json",
"test": "BLUEBIRD_DEBUG=1 jasmine --stop-on-failure=true",
"lint": "eslint -c .eslintrc --max-warnings 0 'spec/**/*.js' 'src/**/*.ts'",
"check": "npm test && npm run lint",
"ci-test": "nyc --report text jasmine",
"ci": "npm run lint && npm run ci-test"
},
"repository": {
"type": "git",
"url": "https://github.com/matrix-org/matrix-appservice-irc.git"
},
"author": "",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/matrix-org/matrix-appservice-irc/issues"
},
"dependencies": {
"@sentry/node": "^6.17.9",
"bluebird": "^3.7.2",
"diff": "^5.0.0",
"escape-string-regexp": "^4.0.0",
"extend": "^3.0.2",
"he": "^1.2.0",
"logform": "^2.4.0",
"matrix-appservice-bridge": "^3.2.0",
"matrix-org-irc": "^1.2.1",
"matrix-bot-sdk": "0.5.19",
"nopt": "^3.0.1",
"p-queue": "^6.6.2",
"pg": "^8.7.3",
"quick-lru": "^5.1.1",
"request": "^2.54.0",
"sanitize-html": "^2.7.0",
"winston": "^3.6.0",
"winston-daily-rotate-file": "^4.6.1"
},
"devDependencies": {
"@tsconfig/node14": "^1.0.1",
"@types/bluebird": "^3.5.36",
"@types/diff": "^5.0.2",
"@types/express": "4.17.13",
"@types/express-serve-static-core": "4.17.28",
"@types/extend": "^3.0.1",
"@types/he": "^1.1.2",
"@types/nedb": "^1.8.12",
"@types/node": "^14",
"@types/nopt": "^3.0.29",
"@types/pg": "^8.6.4",
"@types/sanitize-html": "^2.6.2",
"@typescript-eslint/eslint-plugin": "^5.12.0",
"@typescript-eslint/parser": "^5.12.0",
"eslint": "^8.9.0",
"jasmine": "^3.99.0",
"proxyquire": "^2.1.3",
"nyc": "^15.1.0",
"request-promise-native": "^1.0.9",
"typescript": "^4.5.5"
}
}

View file

@ -0,0 +1,11 @@
{
"url": "https://github.com/matrix-org/matrix-appservice-irc",
"rev": "8faf9614e80073e3cf07c96dbd295379d80f4161",
"date": "2022-05-04T09:06:31+02:00",
"path": "/nix/store/sy3v3h9xf4zc9cggavfk720c1pv3hiz2-matrix-appservice-irc",
"sha256": "1ihhd1y6jsz98iwrza3fnfinpkpzkn0776wiz6jzdzz71hnb444l",
"fetchLFS": false,
"fetchSubmodules": false,
"deepClone": false,
"leaveDotGit": false
}

View file

@ -0,0 +1,26 @@
#!/usr/bin/env nix-shell
#! nix-shell -i bash -p nodePackages.node2nix curl jq nix nix-prefetch-git
set -euo pipefail
# cd to the folder containing this script
cd "$(dirname "$0")"
CURRENT_VERSION=$(nix-instantiate ../../../../. --eval --strict -A matrix-appservice-irc.version | tr -d '"')
TARGET_VERSION="$(curl https://api.github.com/repos/matrix-org/matrix-appservice-irc/releases/latest | jq --exit-status -r ".tag_name")"
if [[ "$CURRENT_VERSION" == "$TARGET_VERSION" ]]; then
echo "matrix-appservice-irc is up-to-date: ${CURRENT_VERSION}"
exit 0
fi
echo "matrix-appservice-irc: $CURRENT_VERSION -> $TARGET_VERSION"
rm -f package.json package-lock.json
wget https://github.com/matrix-org/matrix-appservice-irc/raw/$TARGET_VERSION/package.json
wget -O package-lock-temp.json https://github.com/matrix-org/matrix-appservice-irc/raw/$TARGET_VERSION/package-lock.json
./generate-dependencies.sh
rm ./package-lock-temp.json
nix-prefetch-git --rev "$TARGET_VERSION" --url "https://github.com/matrix-org/matrix-appservice-irc" > ./src.json