From 75a4674be1ff568646dde0bd23dca3d34d69378d Mon Sep 17 00:00:00 2001 From: oxalica Date: Fri, 25 Jun 2021 10:55:11 +0800 Subject: [PATCH] vscode-extensions.vadimcn.vscode-lldb: normalize name and version --- pkgs/misc/vscode-extensions/vscode-lldb/default.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkgs/misc/vscode-extensions/vscode-lldb/default.nix b/pkgs/misc/vscode-extensions/vscode-lldb/default.nix index 444f5a681216..f82a42886251 100644 --- a/pkgs/misc/vscode-extensions/vscode-lldb/default.nix +++ b/pkgs/misc/vscode-extensions/vscode-lldb/default.nix @@ -7,6 +7,8 @@ let pname = "vscode-lldb"; version = "1.6.4"; + vscodeExtUniqueId = "${publisher}.${pname}"; + src = fetchFromGitHub { owner = "vadimcn"; repo = "vscode-lldb"; @@ -41,10 +43,10 @@ let nodeDeps = nodePackages."vscode-lldb-build-deps-../../misc/vscode-extensions/vscode-lldb/build-deps"; -in stdenv.mkDerivation rec { - name = "vscode-extension-${pname}"; - inherit src; - vscodeExtUniqueId = "${publisher}.${pname}"; +in stdenv.mkDerivation { + pname = "vscode-extension-${publisher}-${pname}"; + inherit src version vscodeExtUniqueId; + installPrefix = "share/vscode/extensions/${vscodeExtUniqueId}"; nativeBuildInputs = [ cmake nodejs unzip makeWrapper ];