flake: cleanup
Former-commit-id: 9129216d7c2e107146217c32390517bf338b3282 Former-commit-id: a963cadbf0b6d50b646e467d1c5c392a0cd72247
This commit is contained in:
parent
bdf412d469
commit
226da3bfc2
|
@ -25,6 +25,7 @@
|
||||||
overlays = [fenix.overlays.default];
|
overlays = [fenix.overlays.default];
|
||||||
};
|
};
|
||||||
toolchain = pkgs.fenix.complete;
|
toolchain = pkgs.fenix.complete;
|
||||||
|
dependencies = with pkgs; [ SDL2 SDL2_image ];
|
||||||
in rec
|
in rec
|
||||||
{
|
{
|
||||||
# Executed by `nix build`
|
# Executed by `nix build`
|
||||||
|
@ -36,12 +37,14 @@
|
||||||
pname = "rustboyadvance-ng";
|
pname = "rustboyadvance-ng";
|
||||||
name = "rustboyadvance-ng";
|
name = "rustboyadvance-ng";
|
||||||
src = ./.;
|
src = ./.;
|
||||||
|
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;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Executed by `nix run`
|
# Executed by `nix run`
|
||||||
|
@ -53,9 +56,7 @@
|
||||||
(with toolchain; [
|
(with toolchain; [
|
||||||
cargo rustc rust-src clippy rustfmt # rust components
|
cargo rustc rust-src clippy rustfmt # rust components
|
||||||
])
|
])
|
||||||
SDL2 SDL2_image
|
] ++ dependencies;
|
||||||
mold clang
|
|
||||||
];
|
|
||||||
RUST_SRC_PATH = "${toolchain.rust-src}/lib/rustlib/src/rust/library";
|
RUST_SRC_PATH = "${toolchain.rust-src}/lib/rustlib/src/rust/library";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue