aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Kaiser2025-09-23 17:50:55 +0200
committerDominik Kaiser2025-09-23 17:50:55 +0200
commitd2f637e5e7d1c3c37a80dc2c86be2fc2023cad60 (patch)
tree5395b179119e75de1f4405ff743041334a4025b7
downloadSchroederReverb-d2f637e5e7d1c3c37a80dc2c86be2fc2023cad60.tar.gz
SchroederReverb-d2f637e5e7d1c3c37a80dc2c86be2fc2023cad60.zip
Setup flake
-rw-r--r--flake.lock25
-rw-r--r--flake.nix39
2 files changed, 64 insertions, 0 deletions
diff --git a/flake.lock b/flake.lock
new file mode 100644
index 0000000..9464e76
--- /dev/null
+++ b/flake.lock
@@ -0,0 +1,25 @@
+{
+ "nodes": {
+ "nixpkgs": {
+ "locked": {
+ "lastModified": 1746904237,
+ "narHash": "sha256-3e+AVBczosP5dCLQmMoMEogM57gmZ2qrVSrmq9aResQ=",
+ "rev": "d89fc19e405cb2d55ce7cc114356846a0ee5e956",
+ "revCount": 797896,
+ "type": "tarball",
+ "url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.797896%2Brev-d89fc19e405cb2d55ce7cc114356846a0ee5e956/0196c1a7-7ad3-74a9-9d50-1b854aca6d6c/source.tar.gz"
+ },
+ "original": {
+ "type": "tarball",
+ "url": "https://flakehub.com/f/NixOS/nixpkgs/0.1"
+ }
+ },
+ "root": {
+ "inputs": {
+ "nixpkgs": "nixpkgs"
+ }
+ }
+ },
+ "root": "root",
+ "version": 7
+}
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 ]);
+ };
+ });
+ };
+}
+