about summary refs log tree commit diff
path: root/pkgs/by-name/co/colorgrind/package.nix
blob: 1f89ad865583aeef4fbf9f04af66e746f9092f9a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{
  lib,
  stdenvNoCC,
  fetchFromGitHub,
  perl
}:
stdenvNoCC.mkDerivation {
  pname = "colorgrind";
  version = "0-unstable-2016-07-05";

  src = fetchFromGitHub {
    owner = "renatocf";
    repo = "colorgrind";
    rev = "6b68367c9713075a40c6719cb24217e9437ffa74";
    hash = "sha256-KVR2IeoAkaTXDjEndPvrKUzOf4Zkha20vcH4TTJqXfM=";
  };

  buildInputs = [ perl ];

  installPhase = ''
    runHook preInstall
    install -Dm755 -t $out/bin colorgrind
    runHook postInstall
  '';

  meta = {
    description = "Perl wrapper for Valgrind with ANSI escape code colored output";
    homepage = "http://renatocf.github.io/colorgrind/";
    license = with lib.licenses; [ mit ];
    maintainers = with lib.maintainers; [ pluiedev ];
    mainProgram = "colorgrind";
  };
}