diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2017-09-10 12:02:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-10 12:02:29 +0100 |
commit | ad4f798c0b87d40b43c2297397ba988c504ee5eb (patch) | |
tree | 11add59d6e07a91c3e6c0de003f7c4cee3173c44 | |
parent | 9b8f67969e816e1f37a736458f6fd3c3fd557685 (diff) | |
parent | a26817b215b9df9e44f86282ed0b39005cd5603b (diff) |
Merge pull request #29185 from markus2342/update-oprofile
oprofile: 1.1.0 -> 1.2.0
-rw-r--r-- | pkgs/development/tools/profiling/oprofile/default.nix | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/pkgs/development/tools/profiling/oprofile/default.nix b/pkgs/development/tools/profiling/oprofile/default.nix index 063b0375fc7d6..ac87870eb5906 100644 --- a/pkgs/development/tools/profiling/oprofile/default.nix +++ b/pkgs/development/tools/profiling/oprofile/default.nix @@ -1,17 +1,23 @@ -{ 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'. assert withGUI -> qt4 != null; stdenv.mkDerivation rec { - name = "oprofile-1.1.0"; + name = "oprofile-1.2.0"; src = fetchurl { url = "mirror://sourceforge/oprofile/${name}.tar.gz"; - sha256 = "0v1nn38h227bgxjwqf22rjp2iqgjm4ls3gckzifks0x6w5nrlxfg"; + 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 ]; |