summary refs log tree commit diff
path: root/pkgs/applications/editors/vscode/extensions/python/extract-nuget.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/applications/editors/vscode/extensions/python/extract-nuget.nix')
-rw-r--r--pkgs/applications/editors/vscode/extensions/python/extract-nuget.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/pkgs/applications/editors/vscode/extensions/python/extract-nuget.nix b/pkgs/applications/editors/vscode/extensions/python/extract-nuget.nix
new file mode 100644
index 00000000000..1e70cabe035
--- /dev/null
+++ b/pkgs/applications/editors/vscode/extensions/python/extract-nuget.nix
@@ -0,0 +1,15 @@
+{ stdenv, unzip }:
+{ name, version, src, ... }:
+
+stdenv.mkDerivation {
+  inherit name version src;
+
+  nativeBuildInputs = [ unzip ];
+  dontBuild = true;
+  unpackPhase = "unzip $src";
+  installPhase = ''
+    mkdir -p "$out"
+    chmod -R +w .
+    find . -mindepth 1 -maxdepth 1 | xargs cp -a -t "$out"
+  '';
+}