From 6cc22d4f179e8ffc77080677acd007d2487fc1b2 Mon Sep 17 00:00:00 2001 From: Jake Ginesin Date: Sun, 26 Oct 2025 16:12:56 -0400 Subject: [PATCH] init --- flake.nix | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 flake.nix 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" + ''; + }; + } + ); +}