summary refs log tree commit diff
path: root/pkgs/applications/editors/vscode/extensions/python/extract-nuget.nix
blob: 1e70cabe0358d47e7e707423cc85bfe763068136 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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"
  '';
}