mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 23:36:17 +01:00
15 lines
308 B
Nix
15 lines
308 B
Nix
{ 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"
|
|
'';
|
|
}
|