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-13 12:13:57 +02:00

36 lines
921 B
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];};
packages.default = pkgs.devkitNix.stdenvARM.mkDerivation {
name = "somding";
src = ./.;
buildInputs = [pkgs.imagemagick pkgs.which];
# makeFlags = ["TARGET=example"];
installPhase = ''
mkdir $out
cp 3ds.3dsx $out
'';
};
}
);
}