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