about summary refs log tree commit diff
path: root/pkgs/development
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2024-04-22 04:20:00 +0000
committerAdam Stephens <adam@valkor.net>2024-04-22 22:19:26 -0400
commitc1f5835e6ba8b2df709d51fa0e81b1f51fd7105c (patch)
tree1ac5cd3370544e0ee9d29b0bd206434d4d746ad8 /pkgs/development
parentd69a2737c485234f8f8cba94577fe43239fa533f (diff)
nixd: use finalAttrs pattern
Diffstat (limited to 'pkgs/development')
-rw-r--r--pkgs/development/tools/language-servers/nixd/default.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/development/tools/language-servers/nixd/default.nix b/pkgs/development/tools/language-servers/nixd/default.nix
index 98a0151ea258a..c4ba58dbe5cc9 100644
--- a/pkgs/development/tools/language-servers/nixd/default.nix
+++ b/pkgs/development/tools/language-servers/nixd/default.nix
@@ -17,14 +17,14 @@
 , pkg-config
 }:
 
-stdenv.mkDerivation rec {
+stdenv.mkDerivation (finalAttrs: {
   pname = "nixd";
   version = "2.0.2";
 
   src = fetchFromGitHub {
     owner = "nix-community";
     repo = "nixd";
-    rev = version;
+    rev = finalAttrs.version;
     hash = "sha256-K6atInl+/58nzMj4JJHds//HY7luBRmX79g+Arj6iUw=";
   };
 
@@ -83,10 +83,10 @@ stdenv.mkDerivation rec {
   meta = {
     description = "Nix language server";
     homepage = "https://github.com/nix-community/nixd";
-    changelog = "https://github.com/nix-community/nixd/releases/tag/${version}";
+    changelog = "https://github.com/nix-community/nixd/releases/tag/${finalAttrs.version}";
     license = lib.licenses.lgpl3Plus;
     maintainers = with lib.maintainers; [ inclyc Ruixi-rebirth marsam ];
     mainProgram = "nixd";
     platforms = lib.platforms.unix;
   };
-}
+})