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
6
pkgs/servers/matrix-synapse/tools/default.nix
Normal file
6
pkgs/servers/matrix-synapse/tools/default.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{ callPackage }:
|
||||
{
|
||||
rust-synapse-compress-state = callPackage ./rust-synapse-compress-state.nix { };
|
||||
|
||||
synadm = callPackage ./synadm.nix { };
|
||||
}
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
{ lib, rustPlatform, python3, fetchFromGitHub, pkg-config, openssl }:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "rust-synapse-compress-state";
|
||||
version = "0.1.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "matrix-org";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-uL7uoJPvZoTbrmEFY7jiBphvjWSRpH9pyk3x7s3Yvrs=";
|
||||
};
|
||||
|
||||
cargoSha256 = "sha256-3w5RyVrpCnetXnxnzgVl94kUZa+1i9bU2O8vp7sb3lY=";
|
||||
|
||||
cargoBuildFlags = [
|
||||
"--all"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ python3 pkg-config ];
|
||||
|
||||
buildInputs = [ openssl ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A tool to compress some state in a Synapse instance's database";
|
||||
homepage = "https://github.com/matrix-org/rust-synapse-compress-state";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ hexa maralorn ];
|
||||
};
|
||||
}
|
||||
46
pkgs/servers/matrix-synapse/tools/synadm.nix
Normal file
46
pkgs/servers/matrix-synapse/tools/synadm.nix
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
{ lib
|
||||
, python3Packages
|
||||
}:
|
||||
|
||||
with python3Packages; buildPythonApplication rec {
|
||||
pname = "synadm";
|
||||
version = "0.34";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-pM1nY8j7W1aeWv7/H+9Sz9jo4u1sax/fuKPtx0JKtL8=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "Click>=7.0,<8.0" "Click"
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
click
|
||||
click-option-group
|
||||
tabulate
|
||||
pyyaml
|
||||
requests
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
export HOME=$TMPDIR
|
||||
$out/bin/synadm -h > /dev/null
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Command line admin tool for Synapse";
|
||||
longDescription = ''
|
||||
A CLI tool to help admins of Matrix Synapse homeservers
|
||||
conveniently issue commands available via its admin API's
|
||||
(matrix-org/synapse@master/docs/admin_api)
|
||||
'';
|
||||
homepage = "https://github.com/JOJ0/synadm";
|
||||
license = licenses.gpl3Plus;
|
||||
maintainers = with maintainers; [ hexa ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue