openfpgaloader: use `finalAttrs pattern

This commit is contained in:
Pol Dellaiera 2023-08-06 19:32:47 +02:00
parent 2195e53f3f
commit 62d3dc7026
No known key found for this signature in database
GPG key ID: D476DFE9C67467CA

View file

@ -1,40 +1,46 @@
{ stdenv
, lib
{
cmake
, fetchFromGitHub
, cmake
, pkg-config
, hidapi
, lib
, libftdi1
, libusb1
, pkg-config
, stdenv
, udev
, hidapi
, zlib
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "openfpgaloader";
version = "0.11.0";
src = fetchFromGitHub {
owner = "trabucayre";
repo = "openFPGALoader";
rev = "v${version}";
sha256 = "sha256-OiyuhDrK4w13lRmgfmMlZ+1gvRZCJxsOF6MzLy3CFpg=";
rev = "v${finalAttrs.version}";
hash = "sha256-OiyuhDrK4w13lRmgfmMlZ+1gvRZCJxsOF6MzLy3CFpg=";
};
nativeBuildInputs = [ cmake pkg-config ];
nativeBuildInputs = [
cmake
pkg-config
];
buildInputs = [
hidapi
libftdi1
libusb1
udev
hidapi
zlib
];
meta = with lib; {
meta = {
broken = stdenv.isDarwin; # error: Package systemd-253.6 is not available on the requested Darwin platform.
description = "Universal utility for programming FPGAs";
homepage = "https://github.com/trabucayre/openFPGALoader";
license = licenses.agpl3Only;
maintainers = with maintainers; [ danderson ];
license = lib.licenses.agpl3Only;
maintainers = with lib.maintainers; [ danderson ];
platforms = lib.platforms.linux;
};
}
})