diff options
author | Emile <git@emile.space> | 2025-02-10 19:34:33 +0100 |
---|---|---|
committer | Emile <git@emile.space> | 2025-02-10 19:34:33 +0100 |
commit | 89af5d64e2bc74f4c9a41926f0366ed9e2f9a35b (patch) | |
tree | 1979027002fac743916999fef0ea56f4dab5e7dd /nix/pkgs | |
parent | c4d4ae7ad1c95051e8b9770eebd883fa3dd1e5f3 (diff) |
chaos: a bit collection of random changes
Diffstat (limited to 'nix/pkgs')
-rw-r--r-- | nix/pkgs/aarch64-darwin.nix | 1 | ||||
-rw-r--r-- | nix/pkgs/libc-database/default.nix | 34 | ||||
-rw-r--r-- | nix/pkgs/x86_64-linux.nix | 1 |
3 files changed, 36 insertions, 0 deletions
diff --git a/nix/pkgs/aarch64-darwin.nix b/nix/pkgs/aarch64-darwin.nix index 081eb59..f5e8b60 100644 --- a/nix/pkgs/aarch64-darwin.nix +++ b/nix/pkgs/aarch64-darwin.nix @@ -2,4 +2,5 @@ final: prev: { vokobe = final.callPackage ./vokobe { inherit (final) naersk; }; r2wars-web = final.callPackage ./r2wars-web { }; remarvin = final.callPackage ./remarvin { }; + libc-database = final.callPackage ./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 <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 ]; + }; +} diff --git a/nix/pkgs/x86_64-linux.nix b/nix/pkgs/x86_64-linux.nix index 081eb59..f5e8b60 100644 --- a/nix/pkgs/x86_64-linux.nix +++ b/nix/pkgs/x86_64-linux.nix @@ -2,4 +2,5 @@ final: prev: { vokobe = final.callPackage ./vokobe { inherit (final) naersk; }; r2wars-web = final.callPackage ./r2wars-web { }; remarvin = final.callPackage ./remarvin { }; + libc-database = final.callPackage ./libc-database {}; } |