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
58
pkgs/tools/misc/mongodb-tools/default.nix
Normal file
58
pkgs/tools/misc/mongodb-tools/default.nix
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
{ lib
|
||||
, buildGoPackage
|
||||
, fetchFromGitHub
|
||||
, openssl
|
||||
, pkg-config
|
||||
, libpcap
|
||||
}:
|
||||
|
||||
let
|
||||
tools = [
|
||||
"bsondump"
|
||||
"mongoimport"
|
||||
"mongoexport"
|
||||
"mongodump"
|
||||
"mongorestore"
|
||||
"mongostat"
|
||||
"mongofiles"
|
||||
"mongotop"
|
||||
];
|
||||
version = "100.5.2";
|
||||
|
||||
in buildGoPackage {
|
||||
pname = "mongo-tools";
|
||||
inherit version;
|
||||
|
||||
goPackagePath = "github.com/mongodb/mongo-tools";
|
||||
subPackages = tools;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
rev = version;
|
||||
owner = "mongodb";
|
||||
repo = "mongo-tools";
|
||||
sha256 = "sha256-qYTfC7+5XWDCyQQFKmuPmDmwsekDdY6OAerxZgzf8D0=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [ openssl libpcap ];
|
||||
|
||||
# Mongodb incorrectly names all of their binaries main
|
||||
# Let's work around this with our own installer
|
||||
buildPhase = ''
|
||||
# move vendored codes so nixpkgs go builder could find it
|
||||
runHook preBuild
|
||||
|
||||
${lib.concatMapStrings (t: ''
|
||||
go build -o "$out/bin/${t}" -tags ssl -ldflags "-s -w" $goPackagePath/${t}/main
|
||||
'') tools}
|
||||
|
||||
runHook postBuild
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/mongodb/mongo-tools";
|
||||
description = "Tools for the MongoDB";
|
||||
maintainers = with lib.maintainers; [ bryanasdev000 ];
|
||||
license = lib.licenses.asl20;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue