mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-28 15:54:32 +00:00
6dc3672c15
Use autotools inspired extensions (as syntax sort of matches) to make clear that these are not Nix expressions yet and don't necessarily parse or evaluate.
31 lines
579 B
Nix
31 lines
579 B
Nix
{ flutterPackages
|
|
, stdenv
|
|
, cacert
|
|
,
|
|
}:
|
|
let
|
|
flutterCompactVersion = "@flutter_compact_version@";
|
|
inherit (flutterPackages."v${flutterCompactVersion}") dart;
|
|
in
|
|
stdenv.mkDerivation {
|
|
name = "pubspec-lock";
|
|
src = @flutter_src@;
|
|
|
|
nativeBuildInputs = [ dart ];
|
|
|
|
outputHashAlgo = "sha256";
|
|
outputHashMode = "recursive";
|
|
outputHash = "@hash@";
|
|
|
|
buildPhase = ''
|
|
cd ./packages/flutter_tools
|
|
|
|
export HOME="$(mktemp -d)"
|
|
dart --root-certs-file=${cacert}/etc/ssl/certs/ca-bundle.crt pub get -v
|
|
'';
|
|
|
|
installPhase = ''
|
|
cp -r ./pubspec.lock $out
|
|
'';
|
|
}
|