Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 48 lines 871 B view raw
1{ 2 cmake, 3 fetchFromGitHub, 4 hidapi, 5 lib, 6 libftdi1, 7 libusb1, 8 pkg-config, 9 stdenv, 10 udev, 11 zlib, 12}: 13 14stdenv.mkDerivation (finalAttrs: { 15 pname = "openfpgaloader"; 16 version = "0.13.1"; 17 18 src = fetchFromGitHub { 19 owner = "trabucayre"; 20 repo = "openFPGALoader"; 21 rev = "v${finalAttrs.version}"; 22 hash = "sha256-OC5IeA1gkaclLs0TPbrkaxH/D61SeyDcufkIvEDeuNw="; 23 }; 24 25 nativeBuildInputs = [ 26 cmake 27 pkg-config 28 ]; 29 30 buildInputs = [ 31 hidapi 32 libftdi1 33 libusb1 34 zlib 35 ] 36 ++ lib.optionals (lib.meta.availableOn stdenv.hostPlatform udev) [ 37 udev 38 ]; 39 40 meta = { 41 description = "Universal utility for programming FPGAs"; 42 mainProgram = "openFPGALoader"; 43 homepage = "https://github.com/trabucayre/openFPGALoader"; 44 license = lib.licenses.agpl3Only; 45 maintainers = [ ]; 46 platforms = lib.platforms.unix; 47 }; 48})