Switch from shell.nix to flake.nix

This commit is contained in:
August 2026-10-11 17:36:55 +00:00
parent cdc5e45f99
commit b68a8ee612
Signed by: shibedrill
SSH Key Fingerprint: SHA256:M0m3JW1s38BgO2t0fG146Yxd9OJ2IOqkvCAsuRHQ6Pw
3 changed files with 57 additions and 1 deletions

View File

@ -61,7 +61,7 @@ install it before you can build an ISO automatically. To do so, you can run
### Dependencies ### Dependencies
If you use NixOS or the Nix package manager, simply run `nix-shell` in the root If you use NixOS or the Nix package manager, simply run `nix develop` in the root
directory. All necessary dependencies will be made available. directory. All necessary dependencies will be made available.
If not, the following dependencies will need to be manually installed: If not, the following dependencies will need to be manually installed:

27
flake.lock Normal file
View File

@ -0,0 +1,27 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1791739280,
"narHash": "sha256-1dwyb7Xh8eTR6ZP+C5u+DZatS7KROgozx8qo7CSZNMk=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "4c28db8c9abaf2a6a117f96cc16ddb17b8eb70cc",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "master",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

29
flake.nix Normal file
View File

@ -0,0 +1,29 @@
{
description = "Nix devshells!";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/master";
};
outputs = {nixpkgs, ...}: let
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
in {
devShells.${system}.default = pkgs.mkShell {
packages = with pkgs ; [
bash
limine-full
xorriso
rustup
qemu
cargo-make
cargo-binutils
];
shellHook = ''
rustup default nightly;
rustup target add x86_64-unknown-none;
export LIMINEDIR="${pkgs.limine-full}/share/limine"
'';
};
};
}