aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorDominik Kaiser2025-09-23 17:50:55 +0200
committerDominik Kaiser2025-09-23 17:50:55 +0200
commitd2f637e5e7d1c3c37a80dc2c86be2fc2023cad60 (patch)
tree5395b179119e75de1f4405ff743041334a4025b7 /flake.nix
downloadSchroederReverb-d2f637e5e7d1c3c37a80dc2c86be2fc2023cad60.tar.gz
SchroederReverb-d2f637e5e7d1c3c37a80dc2c86be2fc2023cad60.zip
Setup flake
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix39
1 files changed, 39 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 0000000..96800b6
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,39 @@
+{
+ description = "Dev environment for developing the Schroeder Reverb plugin";
+
+ inputs.nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1";
+
+ outputs = inputs:
+ let
+ supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
+ forEachSupportedSystem = f: inputs.nixpkgs.lib.genAttrs supportedSystems (system: f {
+ pkgs = import inputs.nixpkgs { inherit system; };
+ });
+ in
+ {
+ devShells = forEachSupportedSystem ({ pkgs }: {
+ default = pkgs.mkShell.override
+ {
+ # Override stdenv in order to change compiler:
+ # stdenv = pkgs.clangStdenv;
+ }
+ {
+ packages = with pkgs; [
+ clang-tools
+ cmake
+ codespell
+ conan
+ cppcheck
+ doxygen
+ gtest
+ lcov
+ vcpkg
+ vcpkg-tool
+
+ juce
+ ] ++ (if system == "aarch64-darwin" then [ ] else [ gdb ]);
+ };
+ });
+ };
+}
+