mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 07:31:26 +00:00
fatrace: fix power-usage-report
This commit is contained in:
parent
8ce7626dc7
commit
dbbc1b3379
@ -1,4 +1,4 @@
|
||||
{stdenv, fetchurl, python3}:
|
||||
{ stdenv, fetchurl, python3, which }:
|
||||
|
||||
let version = "0.10"; in
|
||||
stdenv.mkDerivation rec {
|
||||
@ -9,7 +9,12 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "0q0cv2bsgf76wypz18v2acgj1crcdqhrhlsij3r53glsyv86xyra";
|
||||
};
|
||||
|
||||
buildInputs = [ python3 ];
|
||||
buildInputs = [ python3 which ];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace power-usage-report \
|
||||
--replace "'which'" "'${which}/bin/which'"
|
||||
'';
|
||||
|
||||
makeFlagsArray = "PREFIX=$(out)";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user