Skip to content

Commit

Permalink
Nix: Add dev shell for building using vcpkg
Browse files Browse the repository at this point in the history
  • Loading branch information
nadiaholmquist committed Sep 6, 2024
1 parent 277b151 commit d18524d
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,27 @@
apps.default = flake-utils.lib.mkApp {
drv = self.packages.${system}.default;
};
devShells.default = pkgs.mkShell {
inputsFrom = [ self.packages.${system}.default ];
devShells = {
default = pkgs.mkShell {
inputsFrom = [ self.packages.${system}.default ];
};

# Shell for building static melonDS release builds with vcpkg
# Use mkShellNoCC to ensure Nix's gcc/clang and stdlib isn't used
vcpkg = pkgs.mkShellNoCC {
packages = with pkgs; [
autoconf
autoconf-archive
automake
cmake
cups.dev # Needed by qtbase despite not enabling print support
git
iconv.dev
libtool
ninja
pkg-config
];
};
};
}
);
Expand Down

0 comments on commit d18524d

Please sign in to comment.