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
41
pkgs/development/tools/misc/gpuvis/default.nix
Normal file
41
pkgs/development/tools/misc/gpuvis/default.nix
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
{ fetchFromGitHub
|
||||
, freetype
|
||||
, gtk3
|
||||
, lib
|
||||
, meson
|
||||
, ninja
|
||||
, pkg-config
|
||||
, SDL2
|
||||
, stdenv
|
||||
, wrapGAppsHook
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "gpuvis";
|
||||
version = "20211204";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mikesart";
|
||||
repo = pname;
|
||||
rev = "7f47419470687c7ecbdf086b81f5bafdb05d1bef";
|
||||
sha256 = "sha256-29Bv+y0zWzn7QtpsjRV6hr19bCeyVJusPcYiAIEIluk=";
|
||||
};
|
||||
|
||||
# patch dlopen path for gtk3
|
||||
postPatch = ''
|
||||
substituteInPlace src/hook_gtk3.h \
|
||||
--replace "libgtk-3.so" "${lib.getLib gtk3}/lib/libgtk-3.so"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ pkg-config meson ninja wrapGAppsHook ];
|
||||
|
||||
buildInputs = [ SDL2 gtk3 freetype ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "GPU Trace Visualizer";
|
||||
homepage = "https://github.com/mikesart/gpuvis";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ emantor ];
|
||||
platforms = with platforms; linux;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue