2019-02-04 01:02:18 +00:00
|
|
|
{ stdenv, unzip }:
|
|
|
|
{ name, version, src, ... }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
inherit name version src;
|
|
|
|
|
2021-03-05 18:11:00 +00:00
|
|
|
nativeBuildInputs = [ unzip ];
|
2019-02-04 01:02:18 +00:00
|
|
|
dontBuild = true;
|
|
|
|
unpackPhase = "unzip $src";
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p "$out"
|
|
|
|
chmod -R +w .
|
|
|
|
find . -mindepth 1 -maxdepth 1 | xargs cp -a -t "$out"
|
|
|
|
'';
|
|
|
|
}
|