Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 fetchFromGitHub, 3 lib, 4 libnl, 5 libpcap, 6 pkg-config, 7 stdenv, 8}: 9stdenv.mkDerivation rec { 10 pname = "nmrpflash"; 11 version = "0.9.25"; 12 13 src = fetchFromGitHub { 14 owner = "jclehner"; 15 repo = "nmrpflash"; 16 rev = "v${version}"; 17 hash = "sha256-5oj+sIrVNAbLmmKHiBSDSVdJFrobK41UfWBmU0WRG3c="; 18 }; 19 20 nativeBuildInputs = [ pkg-config ]; 21 22 buildInputs = [ 23 libnl 24 libpcap 25 ]; 26 27 PREFIX = "${placeholder "out"}"; 28 STANDALONE_VERSION = version; 29 30 preInstall = '' 31 mkdir -p $out/bin 32 ''; 33 34 meta = with lib; { 35 description = "Netgear Unbrick Utility"; 36 homepage = "https://github.com/jclehner/nmrpflash"; 37 license = licenses.gpl3; 38 maintainers = with maintainers; [ dadada ]; 39 mainProgram = "nmrpflash"; 40 platforms = platforms.unix; 41 }; 42}