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
49
pkgs/development/libraries/libxsmm/default.nix
Normal file
49
pkgs/development/libraries/libxsmm/default.nix
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
{ lib, stdenv, fetchFromGitHub, gfortran
|
||||
, python3, util-linux, which
|
||||
|
||||
, enableStatic ? stdenv.hostPlatform.isStatic
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "libxsmm";
|
||||
version = "1.16.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "hfp";
|
||||
repo = "libxsmm";
|
||||
rev = version;
|
||||
sha256 = "sha256-PpMiD/PeQ0pe5hqFG6VFHWpR8y3wnO2z1dJfHHeItlQ=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
gfortran
|
||||
python3
|
||||
util-linux
|
||||
which
|
||||
];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
dontConfigure = true;
|
||||
|
||||
makeFlags = let
|
||||
static = if enableStatic then "1" else "0";
|
||||
in [
|
||||
"OMP=1"
|
||||
"PREFIX=$(out)"
|
||||
"STATIC=${static}"
|
||||
];
|
||||
|
||||
prePatch = ''
|
||||
patchShebangs .
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
broken = (stdenv.isLinux && stdenv.isAarch64);
|
||||
description = "Library targeting Intel Architecture for specialized dense and sparse matrix operations, and deep learning primitives";
|
||||
license = licenses.bsd3;
|
||||
homepage = "https://github.com/hfp/libxsmm";
|
||||
platforms = platforms.linux;
|
||||
maintainers = with lib.maintainers; [ chessai ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue