0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-17 15:40:12 +03:00
nixpkgs/pkgs/development/compilers/flutter/artifacts/prepare-artifacts.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
316 B
Nix
Raw Normal View History

{ stdenv
, lib
, autoPatchelfHook
, src
}:
stdenv.mkDerivation {
inherit (src) name;
inherit src;
nativeBuildInputs = lib.optional stdenv.hostPlatform.isLinux autoPatchelfHook;
installPhase = ''
runHook preInstall
mkdir -p "$out/bin"
cp -r . "$out/bin/cache"
runHook postInstall
'';
}