diff options
Diffstat (limited to 'flake.nix')
-rw-r--r-- | flake.nix | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix new file mode 100644 index 00000000..8208b289 --- /dev/null +++ b/flake.nix @@ -0,0 +1,19 @@ +{ + description = "A post-modern text editor."; + + inputs = { + nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; + flake-utils.url = "github:numtide/flake-utils"; + rust-overlay.url = "github:oxalica/rust-overlay"; + }; + + outputs = { nixpkgs, rust-overlay, flake-utils, ... }: + flake-utils.lib.eachDefaultSystem (system: + let + pkgs = import nixpkgs { inherit system; overlays = [ rust-overlay.overlay ]; }; + in rec { + # packages.helix = pkgs.callPackage ./default.nix {}; + # defaultPackage = packages.helix; + devShell = pkgs.callPackage ./shell.nix {}; + }); +} |