vuls: init at 0.27.0 (#348530)
[NixPkgs.git] / pkgs / tools / misc / hexdiff / default.nix
blob9ee711e7457ea3fef78ba45572a23f1766fc37ef
1 { lib, stdenv, fetchFromGitHub }:
3 stdenv.mkDerivation {
4   pname = "hexdiff";
5   version = "unstable-2018-01-24";
7   src = fetchFromGitHub {
8     owner = "ahroach";
9     repo = "hexdiff";
10     rev = "3e96f27e65167c619ede35ab04232163dc273e69";
11     sha256 = "sha256-G6Qi7e4o+0ahcslJ8UfJrdoc8NNkY+nl6kyDlkJCo9I=";
12   };
14   dontConfigure = true;
16   buildPhase = ''
17     runHook preBuild
19     $CC -o hexdiff hexdiff.c
21     runHook postBuild
22   '';
24   installPhase = ''
25     runHook preInstall
27     install -D hexdiff  -t $out/bin/
29     runHook postInstall
30   '';
32   meta = {
33     homepage = "https://github.com/ahroach/hexdiff";
34     description = "Terminal application for differencing two binary files, with color-coded output";
35     license = lib.licenses.gpl3Plus;
36     maintainers = with lib.maintainers; [ rogarb ];
37     platforms = lib.platforms.linux;
38     mainProgram = "hexdiff";
39   };