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
37
pkgs/tools/system/opencl-info/default.nix
Normal file
37
pkgs/tools/system/opencl-info/default.nix
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
{ lib, stdenv, fetchFromGitHub, opencl-clhpp, ocl-icd }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "opencl-info";
|
||||
version = "unstable-2014-02-21";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "marchv";
|
||||
repo = "opencl-info";
|
||||
rev = "3e53d001a98978feb865650cf0e93b045400c0d7";
|
||||
sha256 = "114lxgnjg40ivjjszkv4n3f3yq2lbrvywryvbazf20kqmdz7315l";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# The cl.hpp header was removed from opencl-clhpp. This patch
|
||||
# updates opencl-info to use the new cp2.hpp header.
|
||||
#
|
||||
# Submitted upstream: https://github.com/marchv/opencl-info/pull/2
|
||||
./opencl-info-clhpp2.diff
|
||||
];
|
||||
|
||||
buildInputs = [ opencl-clhpp ocl-icd ];
|
||||
|
||||
NIX_LDFLAGS = "-lOpenCL";
|
||||
|
||||
installPhase = ''
|
||||
install -Dm755 opencl-info $out/bin/opencl-info
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A tool to dump OpenCL platform/device information";
|
||||
homepage = "https://github.com/marchv/opencl-info";
|
||||
license = licenses.mit;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ abbradar ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue