summary refs log tree commit diff
path: root/pkgs/misc/vscode-extensions/default.nix
diff options
context:
space:
mode:
authorRaymond Gauthier <jraygauthier@gmail.com>2017-08-23 21:24:57 -0400
committerRaymond Gauthier <jraygauthier@gmail.com>2017-08-23 21:31:57 -0400
commit763f7f75783a7c49140ccd703135bbbb244f1522 (patch)
tree842dfe0cf9ced6512409085956ab3294016dcf10 /pkgs/misc/vscode-extensions/default.nix
parentd3532906dad30bfdd267748aae85b4dbb031151d (diff)
downloadnixpkgs-763f7f75783a7c49140ccd703135bbbb244f1522.tar
nixpkgs-763f7f75783a7c49140ccd703135bbbb244f1522.tar.gz
nixpkgs-763f7f75783a7c49140ccd703135bbbb244f1522.tar.bz2
nixpkgs-763f7f75783a7c49140ccd703135bbbb244f1522.tar.lz
nixpkgs-763f7f75783a7c49140ccd703135bbbb244f1522.tar.xz
nixpkgs-763f7f75783a7c49140ccd703135bbbb244f1522.tar.zst
nixpkgs-763f7f75783a7c49140ccd703135bbbb244f1522.zip
vscode-with-extension: improvements
 -  Now simply let the default `unpackPhase` unzip the vsix file. This
    should allow users to retrieve the extension directly from github.
 -  Extensions now installed using their unique id as install folder.
 -  Extensions under `vscode-extensions` now use the unique id
    as extension name.
Diffstat (limited to 'pkgs/misc/vscode-extensions/default.nix')
-rw-r--r--pkgs/misc/vscode-extensions/default.nix17
1 files changed, 12 insertions, 5 deletions
diff --git a/pkgs/misc/vscode-extensions/default.nix b/pkgs/misc/vscode-extensions/default.nix
index 12900907c00..d357c43abd8 100644
--- a/pkgs/misc/vscode-extensions/default.nix
+++ b/pkgs/misc/vscode-extensions/default.nix
@@ -3,16 +3,23 @@
 let
   inherit (vscode-utils) buildVscodeExtension buildVscodeMarketplaceExtension;
 in
-
+#
+# Unless there is a good reason not to, we attemp to use the same name as the 
+# extension's unique identifier (the name the extension gets when installed
+# from vscode under `~/.vscode`) and found on the marketplace extension page.
+# So an extension's attribute name should be of the form: 
+# "${mktplcRef.publisher}.${mktplcRef.name}".
+#
 rec {
-  nix = buildVscodeMarketplaceExtension {
+  bbenoist.Nix = buildVscodeMarketplaceExtension {
     mktplcRef = {
-        name = "nix";
+        name = "Nix";
         publisher = "bbenoist";
         version = "1.0.1";
         sha256 = "0zd0n9f5z1f0ckzfjr38xw2zzmcxg1gjrava7yahg5cvdcw6l35b";
     };
-
-    # TODO: Fill meta with appropriate information.
+    meta = with stdenv.lib; {
+      license = licenses.mit;
+    };
   };
 }
\ No newline at end of file