nixpkgs/pkgs/by-name/op/openfpgaloader/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

48 lines
859 B
Nix
Raw Normal View History

{
cmake
, fetchFromGitHub
, hidapi
, lib
, libftdi1
, libusb1
, pkg-config
, stdenv
, udev
, zlib
}:
stdenv.mkDerivation (finalAttrs: {
pname = "openfpgaloader";
2024-03-24 03:48:13 +00:00
version = "0.12.1";
src = fetchFromGitHub {
owner = "trabucayre";
repo = "openFPGALoader";
rev = "v${finalAttrs.version}";
2024-03-24 03:48:13 +00:00
hash = "sha256-iJSTiOcW15q3mWmMhe5wmO11cu2xfAI9zCsoB33ujWQ=";
};
nativeBuildInputs = [
cmake
pkg-config
];
buildInputs = [
hidapi
libftdi1
libusb1
zlib
2023-10-17 11:57:59 +01:00
] ++ lib.optionals (lib.meta.availableOn stdenv.hostPlatform udev) [
udev
];
meta = {
description = "Universal utility for programming FPGAs";
mainProgram = "openFPGALoader";
homepage = "https://github.com/trabucayre/openFPGALoader";
license = lib.licenses.agpl3Only;
maintainers = [ ];
2023-10-17 11:57:59 +01:00
platforms = lib.platforms.unix;
};
})