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:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
|
|
@ -0,0 +1,32 @@
|
|||
{ pkgs, nodejs, stdenv, fetchFromGitHub, lib, ... }:
|
||||
let
|
||||
src = fetchFromGitHub {
|
||||
owner = "matrix-org";
|
||||
repo = "matrix-appservice-slack";
|
||||
rev = "1.11.0";
|
||||
sha256 = "U1EHL1ZwcpCXA9sjya6ry/3Q+gwdQWPUDFN+wp1qjrg=";
|
||||
};
|
||||
|
||||
nodePackages = import ./node-composition.nix {
|
||||
inherit pkgs nodejs;
|
||||
inherit (stdenv.hostPlatform) system;
|
||||
};
|
||||
in
|
||||
nodePackages.package.override {
|
||||
pname = "matrix-appservice-slack";
|
||||
|
||||
inherit src;
|
||||
|
||||
nativeBuildInputs = [ pkgs.makeWrapper ];
|
||||
|
||||
postInstall = ''
|
||||
makeWrapper '${nodejs}/bin/node' "$out/bin/matrix-appservice-slack" \
|
||||
--add-flags "$out/lib/node_modules/matrix-appservice-slack/lib/app.js"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A Matrix <--> Slack bridge";
|
||||
maintainers = with maintainers; [ beardhatcode ];
|
||||
license = licenses.asl20;
|
||||
};
|
||||
}
|
||||
17
pkgs/servers/matrix-synapse/matrix-appservice-slack/generate-dependencies.sh
Executable file
17
pkgs/servers/matrix-synapse/matrix-appservice-slack/generate-dependencies.sh
Executable file
|
|
@ -0,0 +1,17 @@
|
|||
#!/usr/bin/env nix-shell
|
||||
#! nix-shell -i bash -p nodePackages.node2nix
|
||||
|
||||
# Download package.json and package-lock.json from the v1.11.0 release
|
||||
curl https://raw.githubusercontent.com/matrix-org/matrix-appservice-slack/1.11.0/package.json -o package.json
|
||||
curl https://raw.githubusercontent.com/matrix-org/matrix-appservice-slack/1.11.0/package-lock.json -o package-lock.json
|
||||
|
||||
node2nix \
|
||||
--nodejs-12 \
|
||||
--node-env ../../../development/node-packages/node-env.nix \
|
||||
--development \
|
||||
--input package.json \
|
||||
--lock package-lock.json \
|
||||
--output node-packages.nix \
|
||||
--composition node-composition.nix \
|
||||
|
||||
rm -f package.json package-lock.json
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
# This file has been generated by node2nix 1.9.0. Do not edit!
|
||||
|
||||
{pkgs ? import <nixpkgs> {
|
||||
inherit system;
|
||||
}, system ? builtins.currentSystem, nodejs ? pkgs."nodejs-12_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;
|
||||
}
|
||||
5484
pkgs/servers/matrix-synapse/matrix-appservice-slack/node-packages.nix
generated
Normal file
5484
pkgs/servers/matrix-synapse/matrix-appservice-slack/node-packages.nix
generated
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue