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
35
pkgs/tools/filesystems/mhddfs/default.nix
Normal file
35
pkgs/tools/filesystems/mhddfs/default.nix
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{ lib, stdenv, fetchurl, fuse, pkg-config, attr, uthash }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "mhddfs";
|
||||
version = "0.1.39";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://mhddfs.uvw.ru/downloads/mhddfs_${version}.tar.gz";
|
||||
sha256 = "14ggmh91vv69fp2qpz0nxp0hprlw2wsijss2k2485hb0ci4cabvh";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [ fuse attr uthash ];
|
||||
|
||||
patches = [
|
||||
./fix-format-security-error.patch
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace src/main.c --replace "attr/xattr.h" "sys/xattr.h"
|
||||
substituteInPlace src/tools.c --replace "attr/xattr.h" "sys/xattr.h"
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp mhddfs $out/bin/
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = "http://mhddfs.uvw.ru/";
|
||||
description = "Combines a several mount points into the single one";
|
||||
license = lib.licenses.gpl3;
|
||||
maintainers = [ lib.maintainers.makefu ];
|
||||
};
|
||||
}
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
--- mhddfs-0.1.39/src/usage.c.old 2017-02-28 15:00:25.435438622 +0100
|
||||
+++ mhddfs-0.1.39/src/usage.c 2017-02-28 15:00:33.847454958 +0100
|
||||
@@ -43,7 +43,7 @@
|
||||
"\n"
|
||||
" see fusermount(1) for information about other options\n"
|
||||
"";
|
||||
- fprintf(to, usage);
|
||||
+ fputs(usage, to);
|
||||
if (to==stdout) exit(0);
|
||||
exit(-1);
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue