This repository has been archived on 2025-11-08. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
som3d/flake.nix
2025-07-14 10:11:30 +02:00

46 lines
1.3 KiB
Nix

{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
devkitNix.url = "github:bandithedoge/devkitNix";
};
outputs = {
self,
nixpkgs,
flake-utils,
devkitNix,
...
}:
flake-utils.lib.eachDefaultSystem (
system: let
pkgs = import nixpkgs {
inherit system;
overlays = [devkitNix.overlays.default];
};
in {
devShells.default =
pkgs.mkShell.override {
stdenv = pkgs.devkitNix.stdenvARM;
} {
packages = with pkgs; [imagemagick];
shellHook = ''
# export DEVKITARM=${pkgs.devkitNix.devkitARM}
# export C_INCLUDE_PATH=$(find $DEVKITARM -type d -name include | tr '\n' ':'):$C_INCLUDE_PATH
# export LIBRARY_PATH=$(find $DEVKITARM -type d -name lib | tr '\n' ':'):$LIBRARY_PATH
'';
};
packages.default = pkgs.devkitNix.stdenvARM.mkDerivation {
name = "somding";
src = ./.;
buildInputs = [pkgs.imagemagick pkgs.which];
# makeFlags = ["TARGET=example"];
installPhase = ''
mkdir $out
cp 3ds.3dsx $out
'';
};
}
);
}