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