Project init with hello world.
This commit is contained in:
commit
828c98ba34
6 changed files with 428 additions and 0 deletions
36
flake.nix
Normal file
36
flake.nix
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
{
|
||||
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
|
||||
'';
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
||||
Reference in a new issue