commit 6cc22d4f179e8ffc77080677acd007d2487fc1b2 Author: Jake Ginesin Date: Sun Oct 26 16:12:56 2025 -0400 init diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..4512e49 --- /dev/null +++ b/flake.nix @@ -0,0 +1,35 @@ +{ + description = "korg flake"; + + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + flake-utils.url = "github:numtide/flake-utils"; + nixpkgs-spin.url = "github:NixOS/nixpkgs/893c51bda8b7502b43842f137258d0128097d7ea"; + }; + + outputs = { self, nixpkgs, flake-utils, nixpkgs-spin, ... } @ inputs: + flake-utils.lib.eachDefaultSystem (system: + let + pkgs = nixpkgs.legacyPackages.${system}; + pkgs-spin = nixpkgs-spin.legacyPackages.${system}; + in { + packages.default = pkgs.stdenv.mkDerivation { + pname = "korg"; + src = ./.; + }; + + devShells.default = pkgs.mkShellNoCC rec { + buildInputs = with pkgs; [ + # spin + python3 + ] ++ [ + pkgs-spin.spin + ]; + + shellHook = '' + echo "Switching to korg dev-shell... :D" + ''; + }; + } + ); +}