2022-06-16 17:23:12 +00:00
|
|
|
{ fetchFromGitHub
|
|
|
|
, lib
|
|
|
|
, libnl
|
|
|
|
, libpcap
|
|
|
|
, pkg-config
|
|
|
|
, stdenv
|
|
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "nmrpflash";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "0.9.22";
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2024-04-21 15:54:59 +00:00
|
|
|
owner = "jclehner";
|
|
|
|
repo = "nmrpflash";
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-gr/7tZYnuXFvfIUh2MmtgSbFoELTomQ4h05y/WFDhjo=";
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
|
|
|
buildInputs = [ libnl libpcap ];
|
|
|
|
|
|
|
|
PREFIX = "${placeholder "out"}";
|
2023-07-15 17:15:38 +00:00
|
|
|
STANDALONE_VERSION = version;
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Netgear Unbrick Utility";
|
|
|
|
homepage = "https://github.com/jclehner/nmrpflash";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ dadada ];
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "nmrpflash";
|
2022-06-16 17:23:12 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|