Files
2026-03-05 14:05:49 +00:00

45 lines
840 B
Nix

{
fetchFromGitHub,
lib,
libnl,
libpcap,
pkg-config,
stdenv,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "nmrpflash";
version = "0.9.27";
src = fetchFromGitHub {
owner = "jclehner";
repo = "nmrpflash";
rev = "v${finalAttrs.version}";
hash = "sha256-YkkDvr/wgUFpJ8kp15hlU9iHdfefxQCbyrpT2jAjJro=";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [
libnl
libpcap
];
env = {
PREFIX = "${placeholder "out"}";
STANDALONE_VERSION = finalAttrs.version;
};
preInstall = ''
mkdir -p $out/bin
'';
meta = {
description = "Netgear Unbrick Utility";
homepage = "https://github.com/jclehner/nmrpflash";
license = lib.licenses.gpl3;
maintainers = with lib.maintainers; [ dadada ];
mainProgram = "nmrpflash";
platforms = lib.platforms.unix;
};
})