gnu: texlive: Add inputs fontforge and ruby.
[jackhill/guix/guix.git] / gnu / packages / valgrind.scm
CommitLineData
e78a0ae5 1;;; GNU Guix --- Functional package management for GNU
5f36ea03 2;;; Copyright © 2013, 2014 Ludovic Courtès <ludo@gnu.org>
e78a0ae5
LC
3;;;
4;;; This file is part of GNU Guix.
5;;;
6;;; GNU Guix is free software; you can redistribute it and/or modify it
7;;; under the terms of the GNU General Public License as published by
8;;; the Free Software Foundation; either version 3 of the License, or (at
9;;; your option) any later version.
10;;;
11;;; GNU Guix is distributed in the hope that it will be useful, but
12;;; WITHOUT ANY WARRANTY; without even the implied warranty of
13;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14;;; GNU General Public License for more details.
15;;;
16;;; You should have received a copy of the GNU General Public License
17;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
18
19(define-module (gnu packages valgrind)
20 #:use-module (guix packages)
21 #:use-module (guix download)
22 #:use-module (guix build-system gnu)
23 #:use-module (guix licenses)
24 #:use-module (gnu packages gdb)
25 #:use-module (gnu packages perl)
26 #:use-module (gnu packages))
27
28(define-public valgrind
29 (package
30 (name "valgrind")
5f36ea03 31 (version "3.10.0")
e78a0ae5
LC
32 (source (origin
33 (method url-fetch)
34 (uri (string-append "http://valgrind.org/downloads/valgrind-"
35 version ".tar.bz2"))
36 (sha256
37 (base32
5f36ea03 38 "1jgd42vsx0bcblp91bd61hd5wpy0gghh09wxgm65m666vy17y103"))))
e78a0ae5
LC
39 (build-system gnu-build-system)
40 (arguments
01eafd38 41 '(#:phases (alist-cons-after
e78a0ae5
LC
42 'install 'patch-suppression-files
43 (lambda* (#:key outputs #:allow-other-keys)
44 ;; Don't assume the FHS.
45 (let* ((out (assoc-ref outputs "out"))
46 (dir (string-append out "/lib/valgrind")))
47 (substitute* (find-files dir "\\.supp$")
48 (("obj:/lib") "obj:*/lib")
49 (("obj:/usr/X11R6/lib") "obj:*/lib")
50 (("obj:/usr/lib") "obj:*/lib"))
51 #t))
52 %standard-phases)))
53 (inputs `(;; GDB is needed to provide a sane default for `--db-command'.
01eafd38 54 ("gdb" ,gdb)))
e78a0ae5
LC
55 (native-inputs `(("perl" ,perl)))
56 (home-page "http://www.valgrind.org/")
57 (synopsis "Debugging and profiling tool suite")
58 (description
59 "Valgrind is an instrumentation framework for building dynamic analysis
60tools. There are Valgrind tools that can automatically detect many memory
35b9e423 61management and threading bugs, and profile your programs in detail. You can
e78a0ae5 62also use Valgrind to build new tools.")
67a86d3b
LC
63 (license gpl2+)
64
65 ;; Building VEX on mips64el-linux fails with "opcode not supported on this
66 ;; processor: mips3".
67 (supported-systems (delete "mips64el-linux" %supported-systems))))