update flake
This commit is contained in:
parent
9420d4d1b4
commit
9ba5b38c53
5 changed files with 33 additions and 116 deletions
68
flake.nix
68
flake.nix
|
|
@ -2,53 +2,37 @@
|
|||
description = "FabApp";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.05";
|
||||
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
||||
flake-parts.url = "github:hercules-ci/flake-parts";
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
||||
|
||||
};
|
||||
|
||||
outputs = inputs@{ flake-parts, nixpkgs, ... }:
|
||||
flake-parts.lib.mkFlake { inherit inputs; } {
|
||||
flake = { };
|
||||
outputs =
|
||||
inputs@{ nixpkgs, ... }:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
in
|
||||
{
|
||||
formatter.${system} = pkgs.nixfmt-rfc-style;
|
||||
|
||||
systems = [ "x86_64-linux" ];
|
||||
devShell.${system} =
|
||||
with pkgs;
|
||||
mkShell {
|
||||
LD_LIBRARY_PATH = lib.makeLibraryPath [ stdenv.cc.cc ]; # For libstdc++.so.6
|
||||
# ANDROID_HOME = "${androidenv.androidPkgs_9_0.androidsdk}/libexec/android-sdk";
|
||||
|
||||
# https://flake.parts/module-arguments.html#persystem-module-parameters
|
||||
perSystem = { pkgs, system, ... }: {
|
||||
nativeBuildInputs = [
|
||||
clang
|
||||
just
|
||||
|
||||
_module.args.pkgs = import inputs.nixpkgs-unstable {
|
||||
inherit system;
|
||||
# https://flake.parts/overlays
|
||||
# NOTE: zig overlay triggers issues with X11/GL libraries
|
||||
# This might be misconfiguration on my end
|
||||
overlays = [ ];
|
||||
config = {
|
||||
allowUnfree = true;
|
||||
android_sdk.accept_license = true;
|
||||
};
|
||||
godot_4
|
||||
|
||||
android-tools
|
||||
# androidenv.androidPkgs_9_0.androidsdk
|
||||
# androidenv.androidPkgs_9_0.platform-tools
|
||||
jre_headless
|
||||
];
|
||||
buildInputs = [ sqlite ];
|
||||
};
|
||||
|
||||
formatter = pkgs.nixfmt;
|
||||
|
||||
devShells.default = with pkgs;
|
||||
mkShell {
|
||||
LD_LIBRARY_PATH =
|
||||
lib.makeLibraryPath [ stdenv.cc.cc ]; # For libstdc++.so.6
|
||||
ANDROID_HOME = "${androidenv.androidPkgs_9_0.androidsdk}/libexec/android-sdk";
|
||||
|
||||
nativeBuildInputs = [
|
||||
clang
|
||||
just
|
||||
|
||||
godot_4
|
||||
|
||||
android-tools
|
||||
androidenv.androidPkgs_9_0.androidsdk
|
||||
androidenv.androidPkgs_9_0.platform-tools
|
||||
jre_headless
|
||||
];
|
||||
buildInputs = [ sqlite ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue