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
46
pkgs/development/libraries/libfaketime/default.nix
Normal file
46
pkgs/development/libraries/libfaketime/default.nix
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
{ lib, stdenv, fetchFromGitHub, perl, coreutils }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "libfaketime";
|
||||
version = "0.9.9";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "wolfcw";
|
||||
repo = "libfaketime";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-P1guVggteGtoq8+eeE966hDPkRwsn0m7oLCohyPrIb4=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
./no-date-in-gzip-man-page.patch
|
||||
./nix-store-date.patch
|
||||
] ++ (lib.optionals stdenv.cc.isClang [
|
||||
# https://github.com/wolfcw/libfaketime/issues/277
|
||||
./0001-Remove-unsupported-clang-flags.patch
|
||||
]);
|
||||
|
||||
postPatch = ''
|
||||
patchShebangs test src
|
||||
for a in test/functests/test_exclude_mono.sh src/faketime.c ; do
|
||||
substituteInPlace $a \
|
||||
--replace /bin/bash ${stdenv.shell}
|
||||
done
|
||||
substituteInPlace src/faketime.c --replace @DATE_CMD@ ${coreutils}/bin/date
|
||||
'';
|
||||
|
||||
PREFIX = placeholder "out";
|
||||
LIBDIRNAME = "/lib";
|
||||
|
||||
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=cast-function-type -Wno-error=format-truncation";
|
||||
|
||||
checkInputs = [ perl ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Report faked system time to programs without having to change the system-wide time";
|
||||
homepage = "https://github.com/wolfcw/libfaketime/";
|
||||
license = licenses.gpl2;
|
||||
platforms = platforms.all;
|
||||
maintainers = [ maintainers.bjornfor ];
|
||||
mainProgram = "faketime";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue