Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv 2, lib 3, fetchFromGitHub 4, cmake 5, pkg-config 6, libftdi1 7, libusb1 8, udev 9, hidapi 10, zlib 11}: 12 13stdenv.mkDerivation rec { 14 pname = "openfpgaloader"; 15 version = "0.10.0"; 16 17 src = fetchFromGitHub { 18 owner = "trabucayre"; 19 repo = "openFPGALoader"; 20 rev = "v${version}"; 21 sha256 = "sha256-MPIFD7/jUEotY/EhuzNhaz8C3LVMxUr++fhtCpbbz0o="; 22 }; 23 24 nativeBuildInputs = [ cmake pkg-config ]; 25 26 buildInputs = [ 27 libftdi1 28 libusb1 29 udev 30 hidapi 31 zlib 32 ]; 33 34 meta = with lib; { 35 description = "Universal utility for programming FPGAs"; 36 homepage = "https://github.com/trabucayre/openFPGALoader"; 37 license = licenses.agpl3Only; 38 maintainers = with maintainers; [ danderson ]; 39 }; 40}