nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 21.11 15 lines 308 B view raw
1{ stdenv, unzip }: 2{ name, version, src, ... }: 3 4stdenv.mkDerivation { 5 inherit name version src; 6 7 nativeBuildInputs = [ unzip ]; 8 dontBuild = true; 9 unpackPhase = "unzip $src"; 10 installPhase = '' 11 mkdir -p "$out" 12 chmod -R +w . 13 find . -mindepth 1 -maxdepth 1 | xargs cp -a -t "$out" 14 ''; 15}