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
33
pkgs/os-specific/linux/linuxptp/default.nix
Normal file
33
pkgs/os-specific/linux/linuxptp/default.nix
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
{ lib, stdenv, fetchurl, linuxHeaders } :
|
||||
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "linuxptp";
|
||||
version = "3.1.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/linuxptp/${pname}-${version}.tgz";
|
||||
sha256 = "1nf0w4xyzg884v8blb81zkk6q8p6zbiq9lx61jdqwbbzkdgqbmll";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace incdefs.sh --replace \
|
||||
'/usr/include/linux/' "${linuxHeaders}/include/linux/"
|
||||
'';
|
||||
|
||||
makeFlags = [ "prefix=" ];
|
||||
|
||||
preInstall = ''
|
||||
export DESTDIR=$out
|
||||
'';
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Implementation of the Precision Time Protocol (PTP) according to IEEE standard 1588 for Linux";
|
||||
homepage = "http://linuxptp.sourceforge.net/";
|
||||
maintainers = [ maintainers.markuskowa ];
|
||||
license = licenses.gpl2Only;
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue