aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/misc/vscode-extensions/python/extract-nuget.nix
blob: e4d3b6a0ed1b5602d42a48c474ccca0b68456f7b (plain)
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;

  buildInputs = [ unzip ];
  dontBuild = true;
  unpackPhase = "unzip $src";
  installPhase = ''
    mkdir -p "$out"
    chmod -R +w .
    find . -mindepth 1 -maxdepth 1 | xargs cp -a -t "$out"
  '';
}