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
42
pkgs/development/libraries/libeatmydata/default.nix
Normal file
42
pkgs/development/libraries/libeatmydata/default.nix
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{ lib, stdenv, fetchFromGitHub, autoreconfHook, strace, which }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "libeatmydata";
|
||||
version = "105";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "stewartsmith";
|
||||
repo = pname;
|
||||
rev = "${pname}-${version}";
|
||||
sha256 = "0sx803h46i81h67xbpd3c7ky0nhaw4gij214nsx4lqig70223v9r";
|
||||
};
|
||||
|
||||
patches = [ ./find-shell-lib.patch ];
|
||||
|
||||
patchFlags = "-p0";
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace eatmydata.in \
|
||||
--replace NIX_OUT_DIR $out
|
||||
|
||||
patchShebangs .
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoreconfHook
|
||||
] ++ lib.optionals doCheck [ strace which ];
|
||||
|
||||
# while we can *build* in parallel, the tests also run in parallel which does
|
||||
# not work with v105. Later versions (unreleased) have a fix for that. The
|
||||
# problem is that on hydra we cannot use strace, so the tests don't run there.
|
||||
enableParallelBuilding = true;
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Small LD_PRELOAD library to disable fsync and friends";
|
||||
homepage = "https://www.flamingspork.com/projects/libeatmydata/";
|
||||
license = licenses.gpl3Plus;
|
||||
mainProgram = "eatmydata";
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
20
pkgs/development/libraries/libeatmydata/find-shell-lib.patch
Normal file
20
pkgs/development/libraries/libeatmydata/find-shell-lib.patch
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
--- eatmydata.in 2020-02-01 18:10:59.618679823 -0800
|
||||
+++ eatmydata.in.new 2020-02-01 18:08:25.092620247 -0800
|
||||
@@ -15,15 +15,8 @@
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
-export `dpkg-architecture|grep DEB_BUILD_MULTIARCH`
|
||||
-
|
||||
-shlib="/usr/lib/$DEB_BUILD_MULTIARCH/eatmydata.sh"
|
||||
-if [ -f "$shlib" ]; then
|
||||
- . "$shlib"
|
||||
-else
|
||||
- echo "Unable to locate eatmydata shell library, it was not enabled" >&2
|
||||
- exec "$@"
|
||||
-fi
|
||||
+shlib="NIX_OUT_DIR/libexec/eatmydata.sh"
|
||||
+. "$shlib"
|
||||
|
||||
usage()
|
||||
{
|
||||
Loading…
Add table
Add a link
Reference in a new issue