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/python-modules/gprof2dot/default.nix
Normal file
41
pkgs/development/python-modules/gprof2dot/default.nix
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
{ lib
|
||||
, fetchFromGitHub
|
||||
, buildPythonApplication
|
||||
, python
|
||||
, graphviz
|
||||
}:
|
||||
|
||||
buildPythonApplication rec {
|
||||
pname = "gprof2dot";
|
||||
version = "2021.02.21";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jrfonseca";
|
||||
repo = "gprof2dot";
|
||||
rev = version;
|
||||
sha256 = "1jjhsjf5fdi1fkn7mvhnzkh6cynl8gcjrygd3cya5mmda3akhzic";
|
||||
};
|
||||
|
||||
makeWrapperArgs = [
|
||||
"--prefix PATH : ${lib.makeBinPath [ graphviz ]}"
|
||||
];
|
||||
|
||||
# Needed so dot is on path of the test script
|
||||
checkInputs = [ graphviz ];
|
||||
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
|
||||
# if options not specified, will use unwrapped gprof2dot from original source
|
||||
${python.interpreter} tests/test.py --python bash --gprof2dot $out/bin/gprof2dot
|
||||
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/jrfonseca/gprof2dot";
|
||||
description = "Python script to convert the output from many profilers into a dot graph";
|
||||
license = licenses.lgpl3Plus;
|
||||
maintainers = [ maintainers.pmiddend ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue