mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 02:03:01 +00:00
16 lines
302 B
Nix
16 lines
302 B
Nix
{ 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"
|
|
'';
|
|
}
|