3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/misc/vscode-extensions/python/extract-nuget.nix

16 lines
302 B
Nix
Raw Normal View History

{ 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"
'';
}