flake: a mixture of hotfixes and updates
This commit is contained in:
parent
8d95397e9a
commit
c7b445bac4
28
flake.nix
28
flake.nix
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
description = "Rust development environment for oxitoko using fenix";
|
description = "Rust development environment for rustboyadvance-ng";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
utils.url = "github:numtide/flake-utils";
|
utils.url = "github:numtide/flake-utils";
|
||||||
|
@ -16,29 +16,25 @@
|
||||||
(
|
(
|
||||||
system: let
|
system: let
|
||||||
pkgs = import nixpkgs-unstable { inherit system; };
|
pkgs = import nixpkgs-unstable { inherit system; };
|
||||||
toolchain = pkgs.fenix.complete;
|
|
||||||
dependencies = with pkgs; [ SDL2 SDL2_image ];
|
dependencies = with pkgs; [ SDL2 SDL2_image ];
|
||||||
in rec
|
in rec
|
||||||
{
|
{
|
||||||
# Executed by `nix build`
|
# Executed by `nix build`
|
||||||
packages.default =
|
packages.default = pkgs.rustPlatform.buildRustPackage {
|
||||||
(pkgs.makeRustPlatform.buildRustPackage {
|
pname = "rustboyadvance-ng";
|
||||||
pname = "rustboyadvance-ng";
|
name = "rustboyadvance-ng";
|
||||||
name = "rustboyadvance-ng";
|
src = ./.;
|
||||||
src = ./.;
|
meta.mainProgram = "rustboyadvance-sdl2";
|
||||||
meta.mainProgram = "rustboyadvance-sdl2";
|
cargoLock = {
|
||||||
cargoLock = {
|
lockFile = ./Cargo.lock;
|
||||||
lockFile = ./Cargo.lock;
|
outputHashes = {
|
||||||
outputHashes = {
|
"libretro-backend-0.2.1" = "sha256-qsJo7wP01zhRNv4XrZJbIvOQrSJfUaqve0fNOaR6aWs=";
|
||||||
"libretro-backend-0.2.1" = "sha256-qsJo7wP01zhRNv4XrZJbIvOQrSJfUaqve0fNOaR6aWs=";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
buildInputs = dependencies;
|
|
||||||
};
|
};
|
||||||
|
buildInputs = dependencies;
|
||||||
|
};
|
||||||
# Executed by `nix run`
|
# Executed by `nix run`
|
||||||
apps.default = utils.lib.mkApp {drv = packages.default;};
|
apps.default = utils.lib.mkApp {drv = packages.default;};
|
||||||
|
|
||||||
# Used by `nix develop`
|
# Used by `nix develop`
|
||||||
devShells.default = pkgs.mkShell rec { buildInputs = dependencies; };
|
devShells.default = pkgs.mkShell rec { buildInputs = dependencies; };
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue