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
57
pkgs/tools/filesystems/moosefs/default.nix
Normal file
57
pkgs/tools/filesystems/moosefs/default.nix
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
{ lib, stdenv
|
||||
, fetchFromGitHub
|
||||
, python3
|
||||
, fuse
|
||||
, pkg-config
|
||||
, libpcap
|
||||
, zlib
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "moosefs";
|
||||
version = "3.0.116";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = pname;
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-/+l4BURvL1R6te6tlXRJx7YBDyYuMrGnzzhMc9XeXKc=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs =
|
||||
[ fuse libpcap zlib python3 ];
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
buildFlags = lib.optionals stdenv.isDarwin [ "CPPFLAGS=-UHAVE_STRUCT_STAT_ST_BIRTHTIME" ];
|
||||
|
||||
# Fix the build on macOS with macFUSE installed
|
||||
postPatch = lib.optionalString stdenv.isDarwin ''
|
||||
substituteInPlace configure --replace \
|
||||
"/usr/local/lib/pkgconfig" "/nonexistent"
|
||||
'';
|
||||
|
||||
preBuild = lib.optionalString stdenv.isDarwin ''
|
||||
substituteInPlace config.h --replace \
|
||||
"#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1" \
|
||||
"#undef HAVE_STRUCT_STAT_ST_BIRTHTIME"
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
substituteInPlace $out/sbin/mfscgiserv --replace "datapath=\"$out" "datapath=\""
|
||||
'';
|
||||
|
||||
doCheck = true;
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://moosefs.com";
|
||||
description = "Open Source, Petabyte, Fault-Tolerant, Highly Performing, Scalable Network Distributed File System";
|
||||
platforms = platforms.unix;
|
||||
license = licenses.gpl2;
|
||||
maintainers = [ maintainers.mfossen ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue