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