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
40
pkgs/servers/search/meilisearch/default.nix
Normal file
40
pkgs/servers/search/meilisearch/default.nix
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
{ stdenv
|
||||
, lib
|
||||
, rustPlatform
|
||||
, fetchFromGitHub
|
||||
, Security
|
||||
, DiskArbitration
|
||||
, Foundation
|
||||
, nixosTests
|
||||
}:
|
||||
|
||||
let version = "0.23.1";
|
||||
in
|
||||
rustPlatform.buildRustPackage {
|
||||
pname = "meilisearch";
|
||||
inherit version;
|
||||
src = fetchFromGitHub {
|
||||
owner = "meilisearch";
|
||||
repo = "MeiliSearch";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-4F7noByC9ZgqYwPfkm8VE15QU2jbBvUAH4Idxa+J+Aw=";
|
||||
};
|
||||
cargoPatches = [
|
||||
# feature mini-dashboard tries to download a file from the internet
|
||||
# feature analitycs should be opt-in
|
||||
./remove-default-feature.patch
|
||||
];
|
||||
cargoSha256 = "sha256-dz+1IQZRSeMEagI2dnOtR3A8prg4UZ2Om0pd1BUhuhE=";
|
||||
buildInputs = lib.optionals stdenv.isDarwin [ Security DiskArbitration Foundation ];
|
||||
passthru.tests = {
|
||||
meilisearch = nixosTests.meilisearch;
|
||||
};
|
||||
meta = with lib; {
|
||||
broken = stdenv.isDarwin;
|
||||
description = "Powerful, fast, and an easy to use search engine ";
|
||||
homepage = "https://docs.meilisearch.com/";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ happysalada ];
|
||||
platforms = [ "x86_64-linux" "x86_64-darwin" ];
|
||||
};
|
||||
}
|
||||
13
pkgs/servers/search/meilisearch/remove-default-feature.patch
Normal file
13
pkgs/servers/search/meilisearch/remove-default-feature.patch
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
diff --git a/meilisearch-http/Cargo.toml b/meilisearch-http/Cargo.toml
|
||||
index de418cd4..ecc78d6f 100644
|
||||
--- a/meilisearch-http/Cargo.toml
|
||||
+++ b/meilisearch-http/Cargo.toml
|
||||
@@ -92,7 +92,7 @@ mini-dashboard = [
|
||||
"zip",
|
||||
]
|
||||
analytics = ["whoami", "reqwest"]
|
||||
-default = ["analytics", "mini-dashboard"]
|
||||
+default = []
|
||||
|
||||
[target.'cfg(target_os = "linux")'.dependencies]
|
||||
tikv-jemallocator = "0.4.1"
|
||||
Loading…
Add table
Add a link
Reference in a new issue