mirror of
https://github.com/rzuasti/oott.git
synced 2026-07-08 19:21:54 +02:00
Adding json lock file for flutter project
This commit is contained in:
+18
-2
@@ -1,4 +1,7 @@
|
||||
{pkgs}: let
|
||||
{
|
||||
lib,
|
||||
pkgs,
|
||||
}: let
|
||||
oott-backend = pkgs.rustPlatform.buildRustPackage rec {
|
||||
pname = "oott-backend";
|
||||
version = "0.0.1";
|
||||
@@ -10,12 +13,25 @@
|
||||
nativeBuildInputs = [pkgs.pkg-config];
|
||||
PKG_CONFIG_PATH = "${pkgs.openssl.dev}/lib/pkgconfig";
|
||||
};
|
||||
|
||||
oott-frontend = pkgs.flutter.buildFlutterApplication rec {
|
||||
pname = "oott-frontend";
|
||||
version = "0.0.1";
|
||||
src = ./../frontend;
|
||||
pubspecLock = lib.importJSON ./../frontend/pubspec.lock.json;
|
||||
|
||||
buildInputs = [pkgs.yj];
|
||||
preBuild = ''
|
||||
cat $src/pubspec.lock | yj > $src/pubspec.lock.json
|
||||
'';
|
||||
};
|
||||
in
|
||||
pkgs.stdenv.mkDerivation {
|
||||
name = "oott";
|
||||
buildInputs = [oott-backend];
|
||||
buildInputs = [oott-frontend oott-backend];
|
||||
src = ./../extras;
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp ${oott-backend}/bin/* $out/bin/
|
||||
'';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user