about summary refs log tree commit diff
path: root/nix/pkgs/libc-database/default.nix
blob: 4ddcf076016cd179e7c20e7c745f4132e1423044 (plain)
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
34
{
  pkgs ? import <nixpkgs> { },
  lib,
  fetchFromGitHub,
  ...
}:

pkgs.stdenv.mkDerivation rec {
  name = "libc-database-${version}";
  version = "master";

  src = fetchFromGitHub {
    owner = "niklasb";
    repo = "libc-database";
    rev = version;
    sha256 = "Zysjhr76TenMarnoKo+M8DrTNbsnaXSoFZO1puPVoxU=";
  };

  # not building, we just want to download the repo
  buildPhase = '''';

  installPhase = ''
		mkdir -p $out/bin
		ls -l
		cp add download dump find get identify $out/bin/
  '';

  meta = {
    description = "Build a database of libc offsets to simplify exploitation";
    homepage = "https://github.com/niklasb/libc-database";
    license = lib.license.mit;
    maintainers = with lib.maintainers; [ hanemile ];
  };
}