rdma-core: use finalAttrs pattern

This commit is contained in:
Pol Dellaiera 2023-07-29 11:03:16 +02:00
parent a428fcf79f
commit dfcd6a0c0d
No known key found for this signature in database
GPG key ID: D476DFE9C67467CA

View file

@ -1,22 +1,46 @@
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, docutils
, pandoc, ethtool, iproute2, libnl, udev, python3, perl
{ lib
, stdenv
, fetchFromGitHub
, cmake
, pkg-config
, docutils
, pandoc
, ethtool
, iproute2
, libnl
, udev
, python3
, perl
} :
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "rdma-core";
version = "46.1";
src = fetchFromGitHub {
owner = "linux-rdma";
repo = "rdma-core";
rev = "v${version}";
sha256 = "sha256-pVPWoLnWCGP+CZtG5bnOKUtjiuOa6Qic9wlGeY68w/8=";
rev = "v${finalAttrs.version}";
hash = "sha256-pVPWoLnWCGP+CZtG5bnOKUtjiuOa6Qic9wlGeY68w/8=";
};
strictDeps = true;
nativeBuildInputs = [ cmake pkg-config pandoc docutils python3 ];
buildInputs = [ libnl ethtool iproute2 udev perl ];
nativeBuildInputs = [
cmake
docutils
pandoc
pkg-config
python3
];
buildInputs = [
ethtool
iproute2
libnl
perl
udev
];
cmakeFlags = [
"-DCMAKE_INSTALL_RUNDIR=/run"
@ -42,11 +66,11 @@ stdenv.mkDerivation rec {
done
'';
meta = with lib; {
meta = {
description = "RDMA Core Userspace Libraries and Daemons";
homepage = "https://github.com/linux-rdma/rdma-core";
license = licenses.gpl2Only;
platforms = platforms.linux;
maintainers = with maintainers; [ markuskowa ];
license = lib.licenses.gpl2Only;
platforms = lib.platforms.linux;
maintainers = [ lib.maintainers.markuskowa ];
};
}
})