diff options
author | Jörg Thalheim <joerg@thalheim.io> | 2017-09-10 12:01:40 +0100 |
---|---|---|
committer | Jörg Thalheim <joerg@thalheim.io> | 2017-09-10 12:01:40 +0100 |
commit | a26817b215b9df9e44f86282ed0b39005cd5603b (patch) | |
tree | 2230d6f39d20b3e0b988f8768f0df129756860a1 /pkgs/development/tools/profiling/oprofile | |
parent | 79f13f19f076df4b3f8e1d31b42449ee2c481353 (diff) | |
download | nixpkgs-a26817b215b9df9e44f86282ed0b39005cd5603b.tar nixpkgs-a26817b215b9df9e44f86282ed0b39005cd5603b.tar.gz nixpkgs-a26817b215b9df9e44f86282ed0b39005cd5603b.tar.bz2 nixpkgs-a26817b215b9df9e44f86282ed0b39005cd5603b.tar.lz nixpkgs-a26817b215b9df9e44f86282ed0b39005cd5603b.tar.xz nixpkgs-a26817b215b9df9e44f86282ed0b39005cd5603b.tar.zst nixpkgs-a26817b215b9df9e44f86282ed0b39005cd5603b.zip |
oprofile: fix hardcoded rm/cp paths
Diffstat (limited to 'pkgs/development/tools/profiling/oprofile')
-rw-r--r-- | pkgs/development/tools/profiling/oprofile/default.nix | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pkgs/development/tools/profiling/oprofile/default.nix b/pkgs/development/tools/profiling/oprofile/default.nix index 4c2a7b241b7..ac87870eb59 100644 --- a/pkgs/development/tools/profiling/oprofile/default.nix +++ b/pkgs/development/tools/profiling/oprofile/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, binutils, popt, zlib, pkgconfig, linuxHeaders +{ stdenv, fetchurl, binutils, popt, zlib, pkgconfig, linuxHeaders, coreutils , libiberty_static, withGUI ? false , qt4 ? null}: # libX11 is needed because the Qt build stuff automatically adds `-lX11'. @@ -12,6 +12,12 @@ stdenv.mkDerivation rec { sha256 = "0zd5ih6gmm1pkqavd9laa93iff7qv5jkbfjznhlyxl5p826gk5gb"; }; + postPatch = '' + substituteInPlace opjitconv/opjitconv.c \ + --replace "/bin/rm" "${coreutils}/bin/rm" \ + --replace "/bin/cp" "${coreutils}/bin/cp" + ''; + buildInputs = [ binutils zlib popt pkgconfig linuxHeaders libiberty_static ] ++ stdenv.lib.optionals withGUI [ qt4 ]; |