summary refs log tree commit diff
path: root/pkgs/os-specific/linux/rdma-core
diff options
context:
space:
mode:
authorPol Dellaiera <pol.dellaiera@protonmail.com>2023-07-29 11:03:16 +0200
committerPol Dellaiera <pol.dellaiera@protonmail.com>2023-07-29 11:03:16 +0200
commitdfcd6a0c0df2560686ee20a69110424ea8be5d24 (patch)
tree618ee585830ce64bb4c6bdf3b1c619c6aa5ce186 /pkgs/os-specific/linux/rdma-core
parenta428fcf79fecafba3804ac06fc9cf0003cc910af (diff)
downloadnixpkgs-dfcd6a0c0df2560686ee20a69110424ea8be5d24.tar
nixpkgs-dfcd6a0c0df2560686ee20a69110424ea8be5d24.tar.gz
nixpkgs-dfcd6a0c0df2560686ee20a69110424ea8be5d24.tar.bz2
nixpkgs-dfcd6a0c0df2560686ee20a69110424ea8be5d24.tar.lz
nixpkgs-dfcd6a0c0df2560686ee20a69110424ea8be5d24.tar.xz
nixpkgs-dfcd6a0c0df2560686ee20a69110424ea8be5d24.tar.zst
nixpkgs-dfcd6a0c0df2560686ee20a69110424ea8be5d24.zip
rdma-core: use `finalAttrs` pattern
Diffstat (limited to 'pkgs/os-specific/linux/rdma-core')
-rw-r--r--pkgs/os-specific/linux/rdma-core/default.nix50
1 files changed, 37 insertions, 13 deletions
diff --git a/pkgs/os-specific/linux/rdma-core/default.nix b/pkgs/os-specific/linux/rdma-core/default.nix
index 59db37f59a1..d793e87c6f2 100644
--- a/pkgs/os-specific/linux/rdma-core/default.nix
+++ b/pkgs/os-specific/linux/rdma-core/default.nix
@@ -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 ];
   };
-}
+})