From 89af5d64e2bc74f4c9a41926f0366ed9e2f9a35b Mon Sep 17 00:00:00 2001 From: Emile Date: Mon, 10 Feb 2025 19:34:33 +0100 Subject: chaos: a bit collection of random changes --- nix/pkgs/libc-database/default.nix | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 nix/pkgs/libc-database/default.nix (limited to 'nix/pkgs/libc-database') diff --git a/nix/pkgs/libc-database/default.nix b/nix/pkgs/libc-database/default.nix new file mode 100644 index 0000000..4ddcf07 --- /dev/null +++ b/nix/pkgs/libc-database/default.nix @@ -0,0 +1,34 @@ +{ + pkgs ? import { }, + 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 ]; + }; +} -- cgit 1.4.1