Compare commits

..

1 Commits

Author SHA1 Message Date
Jovan Krunić
8d0c2f6816 fix: enable starting the app without backend
Closes #223
2024-09-19 15:15:14 +00:00

View File

@@ -4,37 +4,22 @@
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs =
{
outputs = {
self,
nixpkgs,
flake-utils,
}:
let
}: let
aapt2buildToolsVersion = "33.0.2";
in
flake-utils.lib.eachDefaultSystem (
system:
let
flake-utils.lib.eachDefaultSystem (system: let
pkgs = import nixpkgs {
inherit system;
overlays = [
(final: prev: rec {
fontMin = prev.python311.withPackages (
ps:
with ps;
[
brotli
fonttools
]
++ (with fonttools.optional-dependencies; [ woff ])
);
fontMin = prev.python311.withPackages (ps: with ps; [brotli fonttools] ++ (with fonttools.optional-dependencies; [woff]));
android = prev.androidenv.composeAndroidPackages {
buildToolsVersions = [
"34.0.0"
aapt2buildToolsVersion
];
platformVersions = [ "34" ];
buildToolsVersions = ["30.0.3" aapt2buildToolsVersion];
platformVersions = ["33"];
};
cypress = prev.cypress.overrideAttrs (cyPrev: rec {
version = "13.2.0";
@@ -44,7 +29,6 @@
};
});
nodejs = prev.nodejs_18;
corepack = prev.corepack_18;
})
];
config = {
@@ -54,7 +38,7 @@
};
androidFhs = pkgs.buildFHSUserEnv {
name = "android-env";
targetPkgs = pkgs: with pkgs; [ ];
targetPkgs = pkgs: with pkgs; [];
runScript = "bash";
profile = ''
export ALLOW_NINJA_ENV=true
@@ -62,10 +46,9 @@
export LD_LIBRARY_PATH=/usr/lib:/usr/lib32
'';
};
in
{
in {
devShell = pkgs.mkShell rec {
nativeBuildInputs = [ androidFhs ];
nativeBuildInputs = [androidFhs];
buildInputs = with pkgs; [
nodejs
corepack
@@ -84,6 +67,5 @@
CYPRESS_INSTALL_BINARY = "0";
CYPRESS_RUN_BINARY = "${pkgs.cypress}/bin/Cypress";
};
}
);
});
}