Add nix flake
This commit is contained in:
parent
0dbc3013e7
commit
7e242c8ed6
2 changed files with 88 additions and 0 deletions
62
flake.lock
generated
Normal file
62
flake.lock
generated
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
{
|
||||
"nodes": {
|
||||
"devkitnix": {
|
||||
"inputs": {
|
||||
"nixpkgs": "nixpkgs"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1710152610,
|
||||
"narHash": "sha256-ILu44UeJexY9+eyMqFaP1XxeRLTDDrLnZaE7tRRQNeg=",
|
||||
"owner": "toast003",
|
||||
"repo": "devkitnix",
|
||||
"rev": "18e219525b55eb6291c7bc278daa9594cf7b2af6",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "toast003",
|
||||
"repo": "devkitnix",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1709884566,
|
||||
"narHash": "sha256-NSYJg2sfdO/XS3L8XN/59Zhzn0dqWm7XtVnKI2mHq3w=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "2be119add7b37dc535da2dd4cba68e2cf8d1517e",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"ref": "nixos-23.11",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs_2": {
|
||||
"locked": {
|
||||
"lastModified": 1710021367,
|
||||
"narHash": "sha256-FuMVdWqXMT38u1lcySYyv93A7B8wU0EGzUr4t4jQu8g=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "b94a96839afcc56de3551aa7472b8d9a3e77e05d",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"ref": "nixos-23.11",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"devkitnix": "devkitnix",
|
||||
"nixpkgs": "nixpkgs_2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
"version": 7
|
||||
}
|
||||
26
flake.nix
Normal file
26
flake.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
description = "Nix flake for building and developing 3DS projects";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
|
||||
devkitnix.url = "github:toast003/devkitnix";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, devkitnix }:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
devkitARM = devkitnix.outputs.packages.${system}.devkitARM;
|
||||
in
|
||||
{
|
||||
devShells.${system}.default = nixpkgs.legacyPackages.${system}.mkShell {
|
||||
name = "3ds-devshell";
|
||||
packages = with nixpkgs.legacyPackages.${system}; [
|
||||
gnumake
|
||||
];
|
||||
shellHook = ''
|
||||
export DEVKITPRO=${devkitARM}
|
||||
export DEVKITARM=${devkitARM}/devkitARM
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue