From 404329d2c6fb5879d03c5440f55e7206f6fb6f65 Mon Sep 17 00:00:00 2001 From: fidgetingbits Date: Wed, 13 Nov 2024 19:31:25 +0800 Subject: [PATCH] vmlinux-to-elf: init at unstable-2024-07-20 --- pkgs/by-name/vm/vmlinux-to-elf/package.nix | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 pkgs/by-name/vm/vmlinux-to-elf/package.nix diff --git a/pkgs/by-name/vm/vmlinux-to-elf/package.nix b/pkgs/by-name/vm/vmlinux-to-elf/package.nix new file mode 100644 index 000000000000..3fef7b3aa060 --- /dev/null +++ b/pkgs/by-name/vm/vmlinux-to-elf/package.nix @@ -0,0 +1,37 @@ +{ + lib, + fetchFromGitHub, + python3Packages, +}: +python3Packages.buildPythonApplication { + pname = "vmlinux-to-elf"; + version = "0-unstable-2024-07-20"; + pyproject = true; + + src = fetchFromGitHub { + owner = "marin-m"; + repo = "vmlinux-to-elf"; + rev = "da14e789596d493f305688e221e9e34ebf63cbb8"; + hash = "sha256-GVoUIeJeLWCEFzrwiLX2h627ygQ7lX1qMp3hHT5O8O0="; + }; + + build-system = with python3Packages; [ + setuptools + ]; + + dependencies = with python3Packages; [ + setuptools + python-lzo + zstandard + lz4 + ]; + + meta = { + homepage = "https://github.com/marin-m/vmlinux-to-elf"; + description = "Converts a vmlinux/vmlinuz/bzImage/zImage kernel image to an ELF file"; + mainProgram = "vmlinux-to-elf"; + + license = lib.licenses.gpl3; + maintainers = [ lib.maintainers.fidgetingbits ]; + }; +}